vpx: fix build against older libvpx versions

Such as 1.3.0 as on raspbian.
This commit is contained in:
Tim-Philipp Müller 2017-05-08 15:05:45 +00:00
parent 2d44b53ff6
commit 55c7e77d2c

View file

@ -147,38 +147,46 @@ gst_vp9_dec_get_valid_format (GstVPXDec * dec, vpx_image_t * img,
case VPX_IMG_FMT_I444:
*fmt = GST_VIDEO_FORMAT_Y444;
return TRUE;
#ifdef VPX_IMG_FMT_I440
case VPX_IMG_FMT_I440:
/* Planar, half height, full width U/V */
GST_FIXME_OBJECT (dec, "Please add a 4:4:0 planar frame format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 4:4:0 planar"));
return FALSE;
#endif
#ifdef VPX_IMG_FMT_I42016
case VPX_IMG_FMT_I42016:
/* VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit I420 format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:2:0 planar"));
return FALSE;
#endif
#ifdef VPX_IMG_FMT_I42216
case VPX_IMG_FMT_I42216:
/* VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit Y42B format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:2:2 planar"));
return FALSE;
#endif
#ifdef VPX_IMG_FMT_I44416
case VPX_IMG_FMT_I44416:
/* VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit Y444 format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:4:4 planar"));
return FALSE;
#endif
#ifdef VPX_IMG_FMT_I44016
case VPX_IMG_FMT_I44016:
/* VPX_IMG_FMT_I440 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit 4:4:0 planar frame format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:4:0 planar"));
return FALSE;
#endif
default:
return FALSE;
}