summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-09-11 16:35:30 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-09-22 13:42:27 +0200
commit20a8be7f68e1edb14cf0fe943cc670710b0d7da6 (patch)
treed2e5c3f29f60e88c3a5c196f03052ef3e61428f9
parentf26a9a7a4bbaa9d6d585b997f6cd0d3293e406f9 (diff)
downloadgst-vaapi-20a8be7f68e1edb14cf0fe943cc670710b0d7da6.tar.gz
build: verify for H264 MVC and H265 SPS
Currently the H264 and H265 parsers look for MVC and SPS respectively, and the required symbols for those were added in GStreamer 1.5 If we try to compile in GStreamer < 1.4, without enabling the builtin codec parsers, the compilation fails, because the lack of those symbols. This patch verifies if the installed H264 and H265 parsers have those symbols. If they do not, the specific built in codec parsers are enabled and used. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=754845
-rw-r--r--configure.ac11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 24014d42..7c5c8c17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -320,7 +320,11 @@ AC_CACHE_CHECK([for H.264 parser],
GstH264Profile profile = GST_H264_PROFILE_HIGH;
slice_hdr.n_emulation_prevention_bytes = 0;
vui_params.par_n = 0;
- vui_params.par_d = 0;]])],
+ vui_params.par_d = 0;
+ GstH264SPS sps;
+ sps.extension.mvc.num_views_minus1 = 1;
+ GstH264NalUnit nalu;
+ nalu.extension_type = GST_H264_NAL_EXTENSION_MVC;]])],
[ac_cv_have_gst_h264_parser="yes"],
[ac_cv_have_gst_h264_parser="no"]
)
@@ -389,7 +393,10 @@ AC_CACHE_CHECK([for H.265 parser],
GstH265Profile profile = GST_H265_PROFILE_MAIN_STILL_PICTURE;
slice_hdr.n_emulation_prevention_bytes = 0;
vui_params.par_n = 0;
- vui_params.par_d = 0;]])],
+ vui_params.par_d = 0;
+ GstH265SPS sps;
+ sps.crop_rect_x = 0;
+ sps.crop_rect_width = 0;]])],
[ac_cv_have_gst_h265_parser="yes"],
[ac_cv_have_gst_h265_parser="no"]
)