diff options
author | Frank Galligan <fgalligan@google.com> | 2014-11-13 12:28:34 -0800 |
---|---|---|
committer | Frank Galligan <fgalligan@google.com> | 2014-12-12 13:34:36 -0800 |
commit | 399823b6f50fb7465f62822d1395e2192e7b07fc (patch) | |
tree | 7281955780751d0dd691130ea54f7587746c7d5b /vpx_scale/yv12config.h | |
parent | 6d1a63a02a1e75f73a304dab23a0cf807523232d (diff) | |
download | libvpx-399823b6f50fb7465f62822d1395e2192e7b07fc.tar libvpx-399823b6f50fb7465f62822d1395e2192e7b07fc.tar.gz libvpx-399823b6f50fb7465f62822d1395e2192e7b07fc.tar.bz2 libvpx-399823b6f50fb7465f62822d1395e2192e7b07fc.zip |
Add support for setting byte alignment.
Add support for setting byte alignment on the Y, U, and V plane of the
reference buffers. The byte alignment must be a power of 2, from 32 to
1024. A value of 0 sets legacy alignment.
Change-Id: I7c1399622f7aa68e123646369216b32047dda73d
Diffstat (limited to 'vpx_scale/yv12config.h')
-rw-r--r-- | vpx_scale/yv12config.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vpx_scale/yv12config.h b/vpx_scale/yv12config.h index b9f13fd89..f04dee1e8 100644 --- a/vpx_scale/yv12config.h +++ b/vpx_scale/yv12config.h @@ -73,9 +73,10 @@ int vp9_alloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, #if CONFIG_VP9_HIGHBITDEPTH int use_highbitdepth, #endif - int border); + int border, int byte_alignment); -// Updates the yv12 buffer config with the frame buffer. If cb is not +// Updates the yv12 buffer config with the frame buffer. |byte_alignment| must +// be a power of 2, from 32 to 1024. 0 sets legacy alignment. If cb is not // NULL, then libvpx is using the frame buffer callbacks to handle memory. // If cb is not NULL, libvpx will call cb with minimum size in bytes needed // to decode the current frame. If cb is NULL, libvpx will allocate memory @@ -87,6 +88,7 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int use_highbitdepth, #endif int border, + int byte_alignment, vpx_codec_frame_buffer_t *fb, vpx_get_frame_buffer_cb_fn_t cb, void *cb_priv); |