From: John Koleszar Date: Thu, 9 May 2013 03:42:58 +0000 (-0700) Subject: Change test image format to VPX_IMG_FMT_I420 X-Git-Tag: v1.3.0~1106^2~16^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e327dbb76540f128cde7367b85bca05aa5863e6;p=libvpx Change test image format to VPX_IMG_FMT_I420 Code was previously using VPX_IMG_FMT_VPXI420, which was intended to be the "vpx" non-YUV colorspace variant. Change-Id: Icf8771eeefeb574055ed638a93450c3d0ed5b9f5 --- diff --git a/test/i420_video_source.h b/test/i420_video_source.h index 219bd3393..12a6ab1d3 100644 --- a/test/i420_video_source.h +++ b/test/i420_video_source.h @@ -83,7 +83,7 @@ class I420VideoSource : public VideoSource { void SetSize(unsigned int width, unsigned int height) { if (width != width_ || height != height_) { vpx_img_free(img_); - img_ = vpx_img_alloc(NULL, VPX_IMG_FMT_VPXI420, width, height, 1); + img_ = vpx_img_alloc(NULL, VPX_IMG_FMT_I420, width, height, 1); ASSERT_TRUE(img_ != NULL); width_ = width; height_ = height; diff --git a/test/video_source.h b/test/video_source.h index 9772657d6..26d53282f 100644 --- a/test/video_source.h +++ b/test/video_source.h @@ -103,7 +103,7 @@ class DummyVideoSource : public VideoSource { if (width != width_ || height != height_) { vpx_img_free(img_); raw_sz_ = ((width + 31)&~31) * height * 3 / 2; - img_ = vpx_img_alloc(NULL, VPX_IMG_FMT_VPXI420, width, height, 32); + img_ = vpx_img_alloc(NULL, VPX_IMG_FMT_I420, width, height, 32); width_ = width; height_ = height; }