isomp4: Exclude unused elements 73/323173/2
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 23 Apr 2025 23:52:48 +0000 (08:52 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 24 Apr 2025 05:17:41 +0000 (14:17 +0900)
Elements below have been excluded.
 : qtmoovrecover, rtpxqtdepay, ismlmux, mj2mux

[Version] 1.24.11-13
[Issue Type] lightweighting

Change-Id: Iec1feb8064edb49a8368631041ff85830217e50c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/gstreamer.spec
subprojects/gst-plugins-good/gst/isomp4/gstqtmuxmap.c
subprojects/gst-plugins-good/gst/isomp4/isomp4-plugin.c
subprojects/gst-plugins-good/gst/isomp4/meson.build

index f4a9bacdcb80575d89c52cf470784c247371a56c..cf63514d03ee9eae78dedb4acaece13b765ce430 100644 (file)
@@ -61,7 +61,7 @@
 
 Name:           %{_name}
 Version:        1.24.11
-Release:        12
+Release:        13
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 88bc6da2ba5b7dcf3994cfc9b513b53aa6ec4263..3ab13d5d211ae35ee12ca74b51223531795d7668 100644 (file)
  * SOFTWARE.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gstqtmuxmap.h"
 #include "fourcc.h"
 
@@ -239,6 +243,7 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = {
         GST_STATIC_CAPS (TEXT_UTF8),
       GST_STATIC_CAPS_NONE}
   ,
+#ifndef TIZEN_FEATURE_EXCLUDE_UNUSED_ELEMENTS
   /* Microsoft Smooth Streaming fmp4/isml */
   /* TODO add WMV/WMA support */
   {
@@ -253,6 +258,7 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = {
         GST_STATIC_CAPS_NONE,
       GST_STATIC_CAPS_NONE}
   ,
+#endif
   /* 3GPP Technical Specification 26.244 V7.3.0
    * (extended in 3GPP2 File Formats for Multimedia Services) */
   {
@@ -267,6 +273,7 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = {
         GST_STATIC_CAPS (TEXT_UTF8),
       GST_STATIC_CAPS_NONE}
   ,
+#ifndef TIZEN_FEATURE_EXCLUDE_UNUSED_ELEMENTS
   /* ISO 15444-3: Motion-JPEG-2000 (also ISO base media extension) */
   {
         GST_QT_MUX_FORMAT_MJ2,
@@ -281,6 +288,7 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = {
         GST_STATIC_CAPS_NONE,
       GST_STATIC_CAPS_NONE}
   ,
+#endif
   {
         GST_QT_MUX_FORMAT_NONE,
       }
index c401c5a8c7ba3afe94dcfc5128042b1b4ffe07e1..f5213d12eb2913da8bc292dab59f6b09c45c1098 100644 (file)
@@ -33,9 +33,13 @@ plugin_init (GstPlugin * plugin)
   gboolean ret = FALSE;
 
   ret |= GST_ELEMENT_REGISTER (qtdemux, plugin);
+#ifndef TIZEN_FEATURE_EXCLUDE_UNUSED_ELEMENTS
   ret |= GST_ELEMENT_REGISTER (rtpxqtdepay, plugin);
+#endif
   ret |= GST_ELEMENT_REGISTER (qtmux, plugin);
+#ifndef TIZEN_FEATURE_EXCLUDE_UNUSED_ELEMENTS
   ret |= GST_ELEMENT_REGISTER (qtmoovrecover, plugin);
+#endif
 
   return ret;
 }
index 19137be4e3a8d450680b0e4d8879aec9bf28a9e5..afe48b69a3164972bc0cd9dc7cf85f64ab8e3804 100644 (file)
@@ -1,3 +1,24 @@
+if get_option('exclude-unused-elements') # Not using the method of adding list to make it easy to upgrade opensource codes
+# remove unused 'gstrtpxqtdepay.c', 'gstqtmoovrecover.c' from the original sources
+mp4_sources = [
+  'isomp4-plugin.c',
+  'gstisomp4element.c',
+  'qtdemux.c',
+  'qtdemux_types.c',
+  'qtdemux_dump.c',
+  'qtdemux_lang.c',
+  'qtdemux_tags.c',
+  'qtdemux_tree.c',
+  'qtdemux-webvtt.c',
+  'gstisoff.c',
+  'gstqtmux.c',
+  'atoms.c',
+  'atomsrecovery.c',
+  'descriptors.c',
+  'properties.c',
+  'gstqtmuxmap.c'
+]
+else
 mp4_sources = [
   'isomp4-plugin.c',
   'gstisomp4element.c',
@@ -18,6 +39,7 @@ mp4_sources = [
   'properties.c',
   'gstqtmuxmap.c'
 ]
+endif
 
 gstisomp4 = library('gstisomp4',
   mp4_sources,