Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
0e59dad0
Commit
0e59dad0
authored
May 10, 2013
by
John Koleszar
Committed by
Gerrit Code Review
May 10, 2013
Browse files
Merge "Fix 4:2:0 assumptions in debug plane output" into experimental
parents
cf793a32
6dab4d20
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_onyx_if.c
View file @
0e59dad0
...
...
@@ -1949,8 +1949,8 @@ static void generate_psnr_packet(VP9_COMP *cpi) {
pkt
.
data
.
psnr
.
samples
[
0
]
=
width
*
height
;
pkt
.
data
.
psnr
.
samples
[
1
]
=
width
*
height
;
width
=
(
width
+
1
)
/
2
;
height
=
(
height
+
1
)
/
2
;
width
=
orig
->
uv_width
;
height
=
orig
->
uv_height
;
sse
=
calc_plane_error
(
orig
->
u_buffer
,
orig
->
uv_stride
,
recon
->
u_buffer
,
recon
->
uv_stride
,
...
...
@@ -2104,7 +2104,7 @@ void vp9_write_yuv_rec_frame(VP9_COMMON *cm) {
}
while
(
--
h
);
src
=
s
->
u_buffer
;
h
=
(
cm
->
height
+
1
)
/
2
;
h
=
s
->
uv_height
;
do
{
fwrite
(
src
,
s
->
uv_width
,
1
,
yuv_rec_file
);
...
...
@@ -2112,7 +2112,7 @@ void vp9_write_yuv_rec_frame(VP9_COMMON *cm) {
}
while
(
--
h
);
src
=
s
->
v_buffer
;
h
=
(
cm
->
height
+
1
)
/
2
;
h
=
s
->
uv_height
;
do
{
fwrite
(
src
,
s
->
uv_width
,
1
,
yuv_rec_file
);
...
...
Write
Preview
Markdown
is supported
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