%define gst_branch 1.0
%define _lib_gstreamer_dir %{_libdir}/gstreamer-%{gst_branch}
%define _lib_girepository %{_libdir}/girepository-%{gst_branch}
+%define _enable_v4l2h264enc 0
#######################################################################
## how to build each plugin :
Name: %{_name}
Version: 1.20.0
-Release: 15
+Release: 16
Summary: Streaming-Media Framework Runtime
License: LGPL-2.0+
Group: Multimedia/Framework
-D %{_good_opt}soup=enabled \
-D %{_good_opt}vpx=enabled \
-D %{_good_opt}tbm=true \
+ %if "%{_enable_v4l2h264enc}" == "1"
+ -D %{_good_opt}v4l2h264enc=enabled \
+ %endif
%if "%{tizen_profile_name}" == "tv"
-D %{_good_opt}tv-profile=true \
%ifnarch %{arm} aarch64
option('v4l2-probe', type : 'boolean', value : true, description : 'Probe v4l2 devices when the v4l2 plugin is loaded')
option('v4l2-libv4l2', type : 'feature', value : 'auto', description : 'Use libv4l2 for some obscure format conversions')
option('v4l2-gudev', type : 'feature', value : 'auto', description : 'Use libgudev for probing v4l2 devices')
+option('v4l2h264enc', type : 'feature', value : 'disabled', description : 'Build video4linux2 H.264 encoder plugin')
# Common feature options
option('examples', type : 'feature', value : 'auto', yield : true)
gst_v4l2_fwht_enc_register (plugin, basename, it->device_path,
sink_caps, src_caps);
+#ifdef TIZEN_FEATURE_ENABLE_V4L2H264ENC
if (gst_v4l2_is_h264_enc (sink_caps, src_caps))
gst_v4l2_h264_enc_register (plugin, basename, it->device_path,
video_fd, sink_caps, src_caps);
+#endif
if (gst_v4l2_is_h265_enc (sink_caps, src_caps))
gst_v4l2_h265_enc_register (plugin, basename, it->device_path,
'gstv4l2fwhtenc.c',
'gstv4l2h263enc.c',
'gstv4l2h264codec.c',
- 'gstv4l2h264enc.c',
'gstv4l2h265codec.c',
'gstv4l2h265enc.c',
'gstv4l2jpegenc.c',
'tunernorm.c'
]
+v4l2h264enc = get_option('v4l2h264enc')
+if v4l2h264enc.enabled()
+ v4l2_sources += [ 'gstv4l2h264enc.c' ]
+ cdata.set('TIZEN_FEATURE_ENABLE_V4L2H264ENC', true)
+endif
+
v4l2 = get_option('v4l2')
if v4l2.disabled()
have_v4l2 = false