Commit 55c7e77d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

vpx: fix build against older libvpx versions

Such as 1.3.0 as on raspbian.
parent 2d44b53f
...@@ -147,38 +147,46 @@ gst_vp9_dec_get_valid_format (GstVPXDec * dec, vpx_image_t * img, ...@@ -147,38 +147,46 @@ gst_vp9_dec_get_valid_format (GstVPXDec * dec, vpx_image_t * img,
case VPX_IMG_FMT_I444: case VPX_IMG_FMT_I444:
*fmt = GST_VIDEO_FORMAT_Y444; *fmt = GST_VIDEO_FORMAT_Y444;
return TRUE; return TRUE;
#ifdef VPX_IMG_FMT_I440
case VPX_IMG_FMT_I440: case VPX_IMG_FMT_I440:
/* Planar, half height, full width U/V */ /* Planar, half height, full width U/V */
GST_FIXME_OBJECT (dec, "Please add a 4:4:0 planar frame format"); GST_FIXME_OBJECT (dec, "Please add a 4:4:0 planar frame format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 4:4:0 planar")); (NULL), ("Unsupported frame format - 4:4:0 planar"));
return FALSE; return FALSE;
#endif
#ifdef VPX_IMG_FMT_I42016
case VPX_IMG_FMT_I42016: case VPX_IMG_FMT_I42016:
/* VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH */ /* VPX_IMG_FMT_I420 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit I420 format"); GST_FIXME_OBJECT (dec, "Please add 16-bit I420 format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:2:0 planar")); (NULL), ("Unsupported frame format - 16-bit 4:2:0 planar"));
return FALSE; return FALSE;
#endif
#ifdef VPX_IMG_FMT_I42216
case VPX_IMG_FMT_I42216: case VPX_IMG_FMT_I42216:
/* VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH */ /* VPX_IMG_FMT_I422 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit Y42B format"); GST_FIXME_OBJECT (dec, "Please add 16-bit Y42B format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:2:2 planar")); (NULL), ("Unsupported frame format - 16-bit 4:2:2 planar"));
return FALSE; return FALSE;
#endif
#ifdef VPX_IMG_FMT_I44416
case VPX_IMG_FMT_I44416: case VPX_IMG_FMT_I44416:
/* VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH */ /* VPX_IMG_FMT_I444 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit Y444 format"); GST_FIXME_OBJECT (dec, "Please add 16-bit Y444 format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:4:4 planar")); (NULL), ("Unsupported frame format - 16-bit 4:4:4 planar"));
return FALSE; return FALSE;
#endif
#ifdef VPX_IMG_FMT_I44016
case VPX_IMG_FMT_I44016: case VPX_IMG_FMT_I44016:
/* VPX_IMG_FMT_I440 | VPX_IMG_FMT_HIGHBITDEPTH */ /* VPX_IMG_FMT_I440 | VPX_IMG_FMT_HIGHBITDEPTH */
GST_FIXME_OBJECT (dec, "Please add 16-bit 4:4:0 planar frame format"); GST_FIXME_OBJECT (dec, "Please add 16-bit 4:4:0 planar frame format");
GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED, GST_ELEMENT_WARNING (dec, STREAM, NOT_IMPLEMENTED,
(NULL), ("Unsupported frame format - 16-bit 4:4:0 planar")); (NULL), ("Unsupported frame format - 16-bit 4:4:0 planar"));
return FALSE; return FALSE;
#endif
default: default:
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment