diff options
author | Yaowu Xu <yaowu@google.com> | 2015-01-09 13:04:48 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-01-13 15:13:19 -0800 |
commit | 6b223fcb588c865ae6f5abfd3d9de3ba2ae0540f (patch) | |
tree | 19820283e55dc33a0dd5e07ac4341a75c5fb9d86 /vpx_scale | |
parent | 6f6fbf9175a7969574c7c4b1b855cc6df6641f20 (diff) | |
download | libvpx-6b223fcb588c865ae6f5abfd3d9de3ba2ae0540f.tar libvpx-6b223fcb588c865ae6f5abfd3d9de3ba2ae0540f.tar.gz libvpx-6b223fcb588c865ae6f5abfd3d9de3ba2ae0540f.tar.bz2 libvpx-6b223fcb588c865ae6f5abfd3d9de3ba2ae0540f.zip |
Enable decoder to pass through color space info
This commit added a field to vpx_image_t for indicating color space,
the field is also added to YUV_BUFFER_CONFIG. This allows the color
space information pass through the decoder from input stream to the
output buffer.
The commit also updated compare_img() function with added verification
of matching color space to ensure the color space information to be
correctly passed from encode to decoder in compressed vp9 streams.
Change-Id: I412776ec83defd8a09d76759aeb057b8fa690371
Diffstat (limited to 'vpx_scale')
-rw-r--r-- | vpx_scale/yv12config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vpx_scale/yv12config.h b/vpx_scale/yv12config.h index f04dee1e8..6cdc235fe 100644 --- a/vpx_scale/yv12config.h +++ b/vpx_scale/yv12config.h @@ -55,6 +55,7 @@ typedef struct yv12_buffer_config { int subsampling_x; int subsampling_y; unsigned int bit_depth; + vpx_color_space_t color_space; int corrupted; int flags; |