diff options
author | Deb Mukherjee <debargha@google.com> | 2014-09-25 15:46:50 -0700 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2014-09-29 11:27:45 -0700 |
commit | 9ed23de13f0ddfebea2a7ff6caa370126dd84979 (patch) | |
tree | 2ac02213e8561d9ca919f3cb715e220ca4d3bf57 /tools_common.c | |
parent | 8b4dd536a53623f27a5dde7a4e4bd4cae485ba1c (diff) | |
download | libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.tar libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.tar.gz libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.tar.bz2 libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.zip |
Miscellaneous decoder changes for high bitdepth
Also includes yv12 config changes.
Change-Id: Iacf40d8bf486815b54c32a127ce3cd4516b7e44f
Diffstat (limited to 'tools_common.c')
-rw-r--r-- | tools_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools_common.c b/tools_common.c index 2ec17117c..0d4774f1a 100644 --- a/tools_common.c +++ b/tools_common.c @@ -224,7 +224,8 @@ void vpx_img_write(const vpx_image_t *img, FILE *file) { for (plane = 0; plane < 3; ++plane) { const unsigned char *buf = img->planes[plane]; const int stride = img->stride[plane]; - const int w = vpx_img_plane_width(img, plane); + const int w = vpx_img_plane_width(img, plane) * + ((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1); const int h = vpx_img_plane_height(img, plane); int y; |