summaryrefslogtreecommitdiff
path: root/omx/gstomx.h
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2017-03-14 03:00:49 +1100
committerJan Schmidt <thaytan@noraisin.net>2017-03-14 03:00:49 +1100
commit413f05269c8d28375f4c3b9e0adf14a274e161a6 (patch)
treecf2d45c3b5af6b058bf4be47f10eaeba7c2be2d2 /omx/gstomx.h
parentf3a7bce4429e774d0ace1b2d72c29f73ae0a9673 (diff)
downloadgst-omx-413f05269c8d28375f4c3b9e0adf14a274e161a6.tar.gz
omxvideoenc: Add GST_OMX_HACK_HEIGHT_MULTIPLE_16 for Rpi
The Raspberry Pi encoder produces corrupt output unless the input height is a multiple of 16. Add a hack that adds zero padding when needed.
Diffstat (limited to 'omx/gstomx.h')
-rw-r--r--omx/gstomx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/omx/gstomx.h b/omx/gstomx.h
index 60a315b..cafed89 100644
--- a/omx/gstomx.h
+++ b/omx/gstomx.h
@@ -134,6 +134,11 @@ G_BEGIN_DECLS
*/
#define GST_OMX_HACK_NO_DISABLE_OUTPORT G_GUINT64_CONSTANT (0x0000000000000100)
+/* If the encoder requires input buffers that have a height
+ * which is a multiple of 16 pixels
+ */
+#define GST_OMX_HACK_HEIGHT_MULTIPLE_16 G_GUINT64_CONSTANT (0x0000000000000200)
+
typedef struct _GstOMXCore GstOMXCore;
typedef struct _GstOMXPort GstOMXPort;
typedef enum _GstOMXPortDirection GstOMXPortDirection;