summaryrefslogtreecommitdiff
path: root/omx/gstomxh264enc.h
diff options
context:
space:
mode:
Diffstat (limited to 'omx/gstomxh264enc.h')
-rw-r--r--omx/gstomxh264enc.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/omx/gstomxh264enc.h b/omx/gstomxh264enc.h
index 5d43e5b..119f5b2 100644
--- a/omx/gstomxh264enc.h
+++ b/omx/gstomxh264enc.h
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2011, Hewlett-Packard Development Company, L.P.
* Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd.
+ * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -25,7 +26,6 @@
#include "gstomxvideoenc.h"
G_BEGIN_DECLS
-
#define GST_TYPE_OMX_H264_ENC \
(gst_omx_h264_enc_get_type())
#define GST_OMX_H264_ENC(obj) \
@@ -38,13 +38,24 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OMX_H264_ENC))
#define GST_IS_OMX_H264_ENC_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OMX_H264_ENC))
-
+#define ADDITIONAL_LENGTH 3
+#define HEADER_DATA_LENGTH 6
+#define ENCODER_NAL_LENGTH_INDICATOR 4
+#define DOWNSTREAM_NAL_LENGTH_INDICATOR 2
typedef struct _GstOMXH264Enc GstOMXH264Enc;
typedef struct _GstOMXH264EncClass GstOMXH264EncClass;
+typedef enum
+{
+ H264_AVC,
+ H264_BTS
+} h264_sf;
+
struct _GstOMXH264Enc
{
GstOMXVideoEnc parent;
+ h264_sf stream_format;
+ gboolean insert_sps_pps;
};
struct _GstOMXH264EncClass
@@ -55,6 +66,4 @@ struct _GstOMXH264EncClass
GType gst_omx_h264_enc_get_type (void);
G_END_DECLS
-
#endif /* __GST_OMX_H264_ENC_H__ */
-