Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
cfcce49d
Commit
cfcce49d
authored
Aug 10, 2011
by
Henrik Gramner
Committed by
Fiona Glaser
Aug 24, 2011
Browse files
Another 4:4:4 chroma weightp bug fix
parent
51821635
Changes
1
Show whitespace changes
Inline
Side-by-side
encoder/slicetype.c
View file @
cfcce49d
...
@@ -145,7 +145,7 @@ static NOINLINE pixel *x264_weight_cost_init_chroma444( x264_t *h, x264_frame_t
...
@@ -145,7 +145,7 @@ static NOINLINE pixel *x264_weight_cost_init_chroma444( x264_t *h, x264_frame_t
for
(
int
x
=
0
,
pel_offset_x
=
0
;
x
<
i_width
;
x
+=
16
,
mb_xy
++
,
pel_offset_x
+=
16
)
for
(
int
x
=
0
,
pel_offset_x
=
0
;
x
<
i_width
;
x
+=
16
,
mb_xy
++
,
pel_offset_x
+=
16
)
{
{
pixel
*
pix
=
dst
+
pel_offset_y
+
pel_offset_x
;
pixel
*
pix
=
dst
+
pel_offset_y
+
pel_offset_x
;
pixel
*
src
=
fenc
->
plane
[
p
]
+
pel_offset_y
+
pel_offset_x
;
pixel
*
src
=
ref
->
plane
[
p
]
+
pel_offset_y
+
pel_offset_x
;
int
mvx
=
fenc
->
lowres_mvs
[
0
][
ref0_distance
][
mb_xy
][
0
]
/
2
;
int
mvx
=
fenc
->
lowres_mvs
[
0
][
ref0_distance
][
mb_xy
][
0
]
/
2
;
int
mvy
=
fenc
->
lowres_mvs
[
0
][
ref0_distance
][
mb_xy
][
1
]
/
2
;
int
mvy
=
fenc
->
lowres_mvs
[
0
][
ref0_distance
][
mb_xy
][
1
]
/
2
;
/* We don't want to calculate hpels for fenc frames, so we round the motion
/* We don't want to calculate hpels for fenc frames, so we round the motion
...
@@ -156,7 +156,7 @@ static NOINLINE pixel *x264_weight_cost_init_chroma444( x264_t *h, x264_frame_t
...
@@ -156,7 +156,7 @@ static NOINLINE pixel *x264_weight_cost_init_chroma444( x264_t *h, x264_frame_t
return
dst
;
return
dst
;
}
}
x264_emms
();
x264_emms
();
return
fenc
->
plane
[
p
];
return
ref
->
plane
[
p
];
}
}
static
int
x264_weight_slice_header_cost
(
x264_t
*
h
,
x264_weight_t
*
w
,
int
b_chroma
)
static
int
x264_weight_slice_header_cost
(
x264_t
*
h
,
x264_weight_t
*
w
,
int
b_chroma
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment