diff options
Diffstat (limited to 'omx/gstomxvideoenc.h')
-rw-r--r-- | omx/gstomxvideoenc.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/omx/gstomxvideoenc.h b/omx/gstomxvideoenc.h index e266537..7eab91f 100644 --- a/omx/gstomxvideoenc.h +++ b/omx/gstomxvideoenc.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 @@ -28,7 +29,6 @@ #include "gstomx.h" G_BEGIN_DECLS - #define GST_TYPE_OMX_VIDEO_ENC \ (gst_omx_video_enc_get_type()) #define GST_OMX_VIDEO_ENC(obj) \ @@ -41,7 +41,6 @@ G_BEGIN_DECLS (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OMX_VIDEO_ENC)) #define GST_IS_OMX_VIDEO_ENC_CLASS(obj) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OMX_VIDEO_ENC)) - typedef struct _GstOMXVideoEnc GstOMXVideoEnc; typedef struct _GstOMXVideoEncClass GstOMXVideoEncClass; @@ -49,6 +48,8 @@ struct _GstOMXVideoEnc { GstVideoEncoder parent; + GstBuffer *codec_data; + /* < protected > */ GstOMXComponent *enc; GstOMXPort *enc_in_port, *enc_out_port; @@ -69,13 +70,15 @@ struct _GstOMXVideoEnc /* TRUE if upstream is EOS */ gboolean eos; + gboolean hw_path; /* properties */ - guint32 control_rate; - guint32 target_bitrate; + guint32 rc_mode; + guint32 bitrate; guint32 quant_i_frames; guint32 quant_p_frames; guint32 quant_b_frames; + guint32 iframeinterval; GstFlowReturn downstream_flow_ret; }; @@ -86,13 +89,15 @@ struct _GstOMXVideoEncClass GstOMXClassData cdata; - gboolean (*set_format) (GstOMXVideoEnc * self, GstOMXPort * port, GstVideoCodecState * state); - GstCaps *(*get_caps) (GstOMXVideoEnc * self, GstOMXPort * port, GstVideoCodecState * state); - GstFlowReturn (*handle_output_frame) (GstOMXVideoEnc * self, GstOMXPort * port, GstOMXBuffer * buffer, GstVideoCodecFrame * frame); + gboolean (*set_format) (GstOMXVideoEnc * self, GstOMXPort * port, + GstVideoCodecState * state); + GstCaps *(*get_caps) (GstOMXVideoEnc * self, GstOMXPort * port, + GstVideoCodecState * state); + GstFlowReturn (*handle_output_frame) (GstOMXVideoEnc * self, + GstOMXPort * port, GstOMXBuffer * buffer, GstVideoCodecFrame * frame); }; GType gst_omx_video_enc_get_type (void); G_END_DECLS - #endif /* __GST_OMX_VIDEO_ENC_H__ */ |