summaryrefslogtreecommitdiff
path: root/recipes-multimedia/libgstomx-1.0/files
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/libgstomx-1.0/files')
-rw-r--r--recipes-multimedia/libgstomx-1.0/files/gstomx-1.0.patch12
-rw-r--r--recipes-multimedia/libgstomx-1.0/files/r21.6.0-sources-gstomx1_src.patch90
-rw-r--r--recipes-multimedia/libgstomx-1.0/files/r21.7.0-sources-gstomx1_src.patch71
3 files changed, 0 insertions, 173 deletions
diff --git a/recipes-multimedia/libgstomx-1.0/files/gstomx-1.0.patch b/recipes-multimedia/libgstomx-1.0/files/gstomx-1.0.patch
deleted file mode 100644
index 9e5a702..0000000
--- a/recipes-multimedia/libgstomx-1.0/files/gstomx-1.0.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
---- a/omx/gstomxvideoenc.c 2016-06-08 06:17:32.000000000 +0200
-+++ b/omx/gstomxvideoenc.c 2017-01-08 23:54:18.217242233 +0100
-@@ -2440,7 +2440,7 @@
-
- err =
- gst_omx_component_get_index (self->enc,
-- NVX_INDEX_CONFIG_VIDEO_ENCODE_TEMPORALTRADEOFF, &eIndex);
-+ (char *) NVX_INDEX_CONFIG_VIDEO_ENCODE_TEMPORALTRADEOFF, &eIndex);
- if (err != OMX_ErrorNone) {
- return FALSE;
- }
diff --git a/recipes-multimedia/libgstomx-1.0/files/r21.6.0-sources-gstomx1_src.patch b/recipes-multimedia/libgstomx-1.0/files/r21.6.0-sources-gstomx1_src.patch
deleted file mode 100644
index f74f278..0000000
--- a/recipes-multimedia/libgstomx-1.0/files/r21.6.0-sources-gstomx1_src.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-diff -Naur r21.5.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.c r21.6.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.c
---- r21.5.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.c 2016-06-08 06:17:32.000000000 +0200
-+++ r21.6.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.c 2017-10-14 03:23:25.000000000 +0200
-@@ -48,13 +48,15 @@
- {
- PROP_0,
- PROP_INSERT_SPS_PPS,
-- PROP_NO_BFRAMES,
-+ PROP_NUM_BFRAMES,
- PROP_SLICE_HEADER_SPACING,
- PROP_PROFILE
- };
-
- #define DEFAULT_SLICE_HEADER_SPACING 0
- #define DEFAULT_PROFILE OMX_VIDEO_AVCProfileBaseline
-+#define DEFAULT_NUM_B_FRAMES 0
-+#define MAX_NUM_B_FRAMES 2
-
-
- #define GST_TYPE_OMX_VID_ENC_PROFILE (gst_omx_videnc_profile_get_type ())
-@@ -132,11 +134,12 @@
- "Insert H.264 SPS, PPS at every IDR frame",
- FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
-
-- g_object_class_install_property (gobject_class, PROP_NO_BFRAMES,
-- g_param_spec_boolean ("no-B-Frames",
-- "Do not encode B Frames",
-- "Do not use B Frames while encoding",
-- FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
-+ g_object_class_install_property (gobject_class, PROP_NUM_BFRAMES,
-+ g_param_spec_uint ("num-B-Frames",
-+ "B Frames between two reference frames",
-+ "Number of B Frames between two reference frames (not recommended)",
-+ 0, MAX_NUM_B_FRAMES, DEFAULT_NUM_B_FRAMES,
-+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
- GST_PARAM_MUTABLE_READY));
-
- g_object_class_install_property (gobject_class, PROP_PROFILE,
-@@ -151,7 +154,7 @@
- gst_omx_h264_enc_init (GstOMXH264Enc * self)
- {
- self->insert_sps_pps = FALSE;
-- self->no_BFrames = FALSE;
-+ self->nBFrames = 0;
- self->slice_header_spacing = DEFAULT_SLICE_HEADER_SPACING;
- self->profile = DEFAULT_PROFILE;
- }
-@@ -679,8 +682,8 @@
- case PROP_INSERT_SPS_PPS:
- self->insert_sps_pps = g_value_get_boolean (value);
- break;
-- case PROP_NO_BFRAMES:
-- self->no_BFrames = g_value_get_boolean (value);
-+ case PROP_NUM_BFRAMES:
-+ self->nBFrames = g_value_get_uint (value);
- break;
- case PROP_SLICE_HEADER_SPACING:
- self->slice_header_spacing = g_value_get_ulong (value);
-@@ -704,8 +707,8 @@
- case PROP_INSERT_SPS_PPS:
- g_value_set_boolean (value, self->insert_sps_pps);
- break;
-- case PROP_NO_BFRAMES:
-- g_value_set_boolean (value, self->no_BFrames);
-+ case PROP_NUM_BFRAMES:
-+ g_value_set_uint (value, self->nBFrames);
- break;
- case PROP_SLICE_HEADER_SPACING:
- g_value_set_ulong (value, self->slice_header_spacing);
-@@ -734,7 +737,7 @@
- gst_omx_component_get_parameter (GST_OMX_VIDEO_ENC (self)->enc,
- OMX_IndexParamVideoAvc, &oH264Type);
- if (eError == OMX_ErrorNone) {
-- oH264Type.nBFrames = self->no_BFrames;
-+ oH264Type.nBFrames = self->nBFrames;
- oH264Type.nSliceHeaderSpacing = self->slice_header_spacing;
- oH264Type.eProfile = self->profile;
-
-diff -Naur r21.5.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.h r21.6.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.h
---- r21.5.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.h 2016-06-08 06:17:32.000000000 +0200
-+++ r21.6.0-sources-gstomx1_src-gst-omx1/omx/gstomxh264enc.h 2017-10-14 03:23:25.000000000 +0200
-@@ -56,7 +56,7 @@
- GstOMXVideoEnc parent;
- h264_sf stream_format;
- gboolean insert_sps_pps;
-- gboolean no_BFrames;
-+ gboolean nBFrames;
- glong slice_header_spacing;
- guint profile;
- };
diff --git a/recipes-multimedia/libgstomx-1.0/files/r21.7.0-sources-gstomx1_src.patch b/recipes-multimedia/libgstomx-1.0/files/r21.7.0-sources-gstomx1_src.patch
deleted file mode 100644
index aa4c6d5..0000000
--- a/recipes-multimedia/libgstomx-1.0/files/r21.7.0-sources-gstomx1_src.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-diff -Naur r21.6.0-sources-gstomx1_src-gst-omx1/omx/gstomxvideosink.c r21.7.0-sources-gstomx1_src-gst-omx1/omx/gstomxvideosink.c
---- r21.6.0-sources-gstomx1_src-gst-omx1/omx/gstomxvideosink.c 2017-10-14 03:23:25.000000000 +0200
-+++ r21.7.0-sources-gstomx1_src-gst-omx1/omx/gstomxvideosink.c 2018-05-29 22:13:29.000000000 +0200
-@@ -942,6 +942,32 @@
- return TRUE;
- }
-
-+static OMX_ERRORTYPE
-+gst_omx_set_stride_alignment (GstOmxVideoSink * self,
-+ guint32 align)
-+{
-+ OMX_INDEXTYPE eIndex;
-+ OMX_ERRORTYPE eError;
-+
-+ eError = gst_omx_component_get_index (self->sink,
-+ (char *) NVX_INDEX_CONFIG_VIDEOSTRIDEALIGN,
-+ &eIndex);
-+
-+ if (eError == OMX_ErrorNone) {
-+ NVX_CONFIG_VIDEO_STRIDEALIGN oStride;
-+
-+ GST_OMX_INIT_STRUCT (&oStride);
-+
-+ eError = gst_omx_component_get_config (self->sink, eIndex, &oStride);
-+
-+ if (eError == OMX_ErrorNone) {
-+ oStride.nAlign = (unsigned long) align;
-+ eError = gst_omx_component_set_config (self->sink, eIndex, &oStride);
-+ }
-+ }
-+ return eError;
-+}
-+
- static void
- gst_omx_video_sink_check_nvfeatures (GstOmxVideoSink * self, GstCaps * caps)
- {
-@@ -950,6 +976,13 @@
- if (gst_caps_features_contains (feature, "memory:NVMM")) {
- self->hw_path = TRUE;
- }
-+
-+ if (!self->hw_path) {
-+ if (gst_omx_set_stride_alignment (self, 4)
-+ != OMX_ErrorNone) {
-+ g_warning ("Failed to set stride alignment.\n");
-+ }
-+ }
- }
-
- static OMX_ERRORTYPE
-@@ -1087,6 +1120,20 @@
- min = MAX (port_def.nBufferCountMin, 4);
- port_def.nBufferCountActual = min;
-
-+ switch (info.finfo->format) {
-+ case GST_VIDEO_FORMAT_I420:
-+ port_def.format.video.eColorFormat = OMX_COLOR_FormatYUV420Planar;
-+ break;
-+ case GST_VIDEO_FORMAT_NV12:
-+ port_def.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar;
-+ break;
-+ default:
-+ GST_ERROR_OBJECT (self, "Unsupported format %s",
-+ gst_video_format_to_string (info.finfo->format));
-+ return FALSE;
-+ break;
-+ }
-+
- GST_DEBUG_OBJECT (self, "Setting inport port definition");
-
- if (gst_omx_port_update_port_definition (self->sink_in_port,