summaryrefslogtreecommitdiff
path: root/tools_common.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-07-16 09:37:13 -0700
committerDeb Mukherjee <debargha@google.com>2014-07-16 09:44:30 -0700
commit090f4d4b5ac7f78ac29f95d440168c989ad89ed7 (patch)
treeaea88ee405a89b8ad6dfcb7b457a05001e025ae5 /tools_common.c
parentca752e3320274621c1a2f38bafc33a2669f07bba (diff)
downloadlibvpx-090f4d4b5ac7f78ac29f95d440168c989ad89ed7.tar
libvpx-090f4d4b5ac7f78ac29f95d440168c989ad89ed7.tar.gz
libvpx-090f4d4b5ac7f78ac29f95d440168c989ad89ed7.tar.bz2
libvpx-090f4d4b5ac7f78ac29f95d440168c989ad89ed7.zip
Adds support for raw yuv files for 422/444
Adds support for raw yuv inputs in 422/444 sampling for use in profiles 1 and 3. New options added to vpxenc are: --i422 and --i444, which are to be used in conjunction with --width, --height, and --fps for proper raw yuv handling. A new option is added to vpxdec: --rawvideo, which enforces raw yuv video output for the bit-stream decoded irrespective of 420, 422 or 444 sampling. The existing options --i420 and --yv12 are specialized for use only for 420 content. Change-Id: I2e3028380709afa673bf2e2c25ad5e271a626055
Diffstat (limited to 'tools_common.c')
-rw-r--r--tools_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools_common.c b/tools_common.c
index 8825528a5..b481579b4 100644
--- a/tools_common.c
+++ b/tools_common.c
@@ -83,7 +83,7 @@ int read_yuv_frame(struct VpxInputContext *input_ctx, vpx_image_t *yuv_frame) {
struct FileTypeDetectionBuffer *detect = &input_ctx->detect;
int plane = 0;
int shortread = 0;
- const int bytespp = (input_ctx->fmt & VPX_IMG_FMT_HIGH) ? 2 : 1;
+ const int bytespp = (yuv_frame->fmt & VPX_IMG_FMT_HIGH) ? 2 : 1;
for (plane = 0; plane < 3; ++plane) {
uint8_t *ptr;