]> granicus.if.org Git - libvpx/commitdiff
Change test image format to VPX_IMG_FMT_I420
authorJohn Koleszar <jkoleszar@google.com>
Thu, 9 May 2013 03:42:58 +0000 (20:42 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 9 May 2013 03:48:37 +0000 (20:48 -0700)
Code was previously using VPX_IMG_FMT_VPXI420, which was intended to be the
"vpx" non-YUV colorspace variant.

Change-Id: Icf8771eeefeb574055ed638a93450c3d0ed5b9f5

test/i420_video_source.h
test/video_source.h

index 219bd3393c864567b3ce58fbbd55cec45edfdc3f..12a6ab1d3ff896af12a2487f5a7e5ca96a11b318 100644 (file)
@@ -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;
index 9772657d6861e8dbb437c4d499c97fafcef7cc33..26d53282ff536b9c3192652ba3dc606776e803fb 100644 (file)
@@ -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;
     }