Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
2dc6acc0
Commit
2dc6acc0
authored
Apr 11, 2013
by
John Koleszar
Committed by
Gerrit Code Review
Apr 11, 2013
Browse files
Merge "vp8: set y_crop_{width,height}" into experimental
parents
8bf6de72
f800085e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
vp8/vp8_cx_iface.c
vp8/vp8_cx_iface.c
+2
-0
vp8/vp8_dx_iface.c
vp8/vp8_dx_iface.c
+2
-0
vpx_scale/generic/yv12extend.c
vpx_scale/generic/yv12extend.c
+5
-0
No files found.
vp8/vp8_cx_iface.c
View file @
2dc6acc0
...
@@ -684,6 +684,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img,
...
@@ -684,6 +684,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img,
yv12
->
u_buffer
=
img
->
planes
[
VPX_PLANE_U
];
yv12
->
u_buffer
=
img
->
planes
[
VPX_PLANE_U
];
yv12
->
v_buffer
=
img
->
planes
[
VPX_PLANE_V
];
yv12
->
v_buffer
=
img
->
planes
[
VPX_PLANE_V
];
yv12
->
y_crop_width
=
img
->
d_w
;
yv12
->
y_crop_height
=
img
->
d_h
;
yv12
->
y_width
=
img
->
d_w
;
yv12
->
y_width
=
img
->
d_w
;
yv12
->
y_height
=
img
->
d_h
;
yv12
->
y_height
=
img
->
d_h
;
yv12
->
uv_width
=
(
1
+
yv12
->
y_width
)
/
2
;
yv12
->
uv_width
=
(
1
+
yv12
->
y_width
)
/
2
;
...
...
vp8/vp8_dx_iface.c
View file @
2dc6acc0
...
@@ -790,6 +790,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img,
...
@@ -790,6 +790,8 @@ static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img,
yv12
->
u_buffer
=
img
->
planes
[
VPX_PLANE_U
];
yv12
->
u_buffer
=
img
->
planes
[
VPX_PLANE_U
];
yv12
->
v_buffer
=
img
->
planes
[
VPX_PLANE_V
];
yv12
->
v_buffer
=
img
->
planes
[
VPX_PLANE_V
];
yv12
->
y_crop_width
=
img
->
d_w
;
yv12
->
y_crop_height
=
img
->
d_h
;
yv12
->
y_width
=
img
->
d_w
;
yv12
->
y_width
=
img
->
d_w
;
yv12
->
y_height
=
img
->
d_h
;
yv12
->
y_height
=
img
->
d_h
;
yv12
->
uv_width
=
yv12
->
y_width
/
2
;
yv12
->
uv_width
=
yv12
->
y_width
/
2
;
...
...
vpx_scale/generic/yv12extend.c
View file @
2dc6acc0
...
@@ -117,8 +117,13 @@ vp8_yv12_copy_frame_c(YV12_BUFFER_CONFIG *src_ybc,
...
@@ -117,8 +117,13 @@ vp8_yv12_copy_frame_c(YV12_BUFFER_CONFIG *src_ybc,
int
row
;
int
row
;
unsigned
char
*
source
,
*
dest
;
unsigned
char
*
source
,
*
dest
;
#if 0
/* These assertions are valid in the codec, but the libvpx-tester uses
* this code slightly differently.
*/
assert(src_ybc->y_width == dst_ybc->y_width);
assert(src_ybc->y_width == dst_ybc->y_width);
assert(src_ybc->y_height == dst_ybc->y_height);
assert(src_ybc->y_height == dst_ybc->y_height);
#endif
source
=
src_ybc
->
y_buffer
;
source
=
src_ybc
->
y_buffer
;
dest
=
dst_ybc
->
y_buffer
;
dest
=
dst_ybc
->
y_buffer
;
...
...
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