gst_event_new_tag (list));
}
-#ifdef HAVE_VPX_1_4
struct Frame
{
GstMapInfo info;
return 0;
}
-#endif
static void
gst_vpx_dec_image_to_buffer (GstVPXDec * dec, const vpx_image_t * img,
gst_vpx_error_name (status));
}
}
-#ifdef HAVE_VPX_1_4
vpx_codec_set_frame_buffer_functions (&dec->decoder,
gst_vpx_dec_get_buffer_cb, gst_vpx_dec_release_buffer_cb, dec);
-#endif
dec->decoder_inited = TRUE;
gst_video_decoder_drop_frame (decoder, frame);
} else {
gst_vpx_dec_handle_resolution_change (dec, img, fmt);
-#ifdef HAVE_VPX_1_4
if (img->fb_priv && dec->have_video_meta) {
frame->output_buffer = gst_vpx_dec_prepare_image (dec, img);
ret = gst_video_decoder_finish_frame (decoder, frame);
- } else
-#endif
- {
+ } else {
ret = gst_video_decoder_allocate_output_frame (decoder, frame);
if (ret == GST_FLOW_OK) {
[ 'vpx/vp8dx.h', 'vpx_codec_vp9_dx_algo', '-DHAVE_VP9_DECODER', 'VP9 decoder' ],
]
-vpx_dep = dependency('vpx', version : '>=1.3.0', required : get_option('vpx'))
+vpx_dep = dependency('vpx', version : '>=1.5.0', required : get_option('vpx'))
if vpx_dep.found()
vpx_args = []
message('WARNING: libvpx was built without any encoder or decoder features!')
endif
- if vpx_dep.version().version_compare('>= 1.4.0')
- message('Found vpx >= 1.4.0')
- vpx_args += '-DHAVE_VPX_1_4'
- endif
-
if vpx_dep.version().version_compare('>= 1.8.0')
message('Found vpx >= 1.8.0')
vpx_args += '-DHAVE_VPX_1_8'