summaryrefslogtreecommitdiffstats
path: root/ext/x264/gstx264enc.h
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2008-08-08 10:13:36 +0000
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2008-08-08 10:13:36 +0000
commitf6d9b82fb839ed9fb88ad0ae74dff3a21bf54b6d (patch)
treee5a3c3124f6bbe9a93dc5dcbd7bc8de19ed16fcd /ext/x264/gstx264enc.h
parent106b2a7a379d6ce02610ab2b8f1f54e487cf54a6 (diff)
downloadgst-plugins-bad-f6d9b82fb839ed9fb88ad0ae74dff3a21bf54b6d.tar.gz
gst-plugins-bad-f6d9b82fb839ed9fb88ad0ae74dff3a21bf54b6d.tar.bz2
gst-plugins-bad-f6d9b82fb839ed9fb88ad0ae74dff3a21bf54b6d.zip
ext/x264/: Use video format library and GST_WRITE_*_BE macros where applicable.
Original commit message from CVS: * ext/x264/Makefile.am: * ext/x264/gstx264enc.c: (gst_x264_enc_header_buf), (gst_x264_enc_sink_set_caps), (gst_x264_enc_base_init), (gst_x264_enc_class_init), (gst_x264_enc_log_callback), (gst_x264_enc_init), (gst_x264_enc_init_encoder), (gst_x264_enc_finalize), (gst_x264_enc_chain), (gst_x264_enc_encode_frame), (plugin_init): * ext/x264/gstx264enc.h: Use video format library and GST_WRITE_*_BE macros where applicable. Use finalize in stead of dispose. Set up debug category and log callback.
Diffstat (limited to 'ext/x264/gstx264enc.h')
-rw-r--r--ext/x264/gstx264enc.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/ext/x264/gstx264enc.h b/ext/x264/gstx264enc.h
index 412cfa36..771d0afa 100644
--- a/ext/x264/gstx264enc.h
+++ b/ext/x264/gstx264enc.h
@@ -22,7 +22,8 @@
#define __GST_X264_ENC_H__
#include <gst/gst.h>
-#include <_stdint.h>
+#include <gst/video/video.h>
+#include <stdint.h>
#include <x264.h>
G_BEGIN_DECLS
@@ -40,7 +41,7 @@ G_BEGIN_DECLS
typedef struct _GstX264Enc GstX264Enc;
typedef struct _GstX264EncClass GstX264EncClass;
-
+
struct _GstX264Enc
{
GstElement element;
@@ -52,6 +53,7 @@ struct _GstX264Enc
x264_t *x264enc;
x264_param_t x264param;
+ /* properties */
guint threads;
guint pass;
gchar *stats_file;
@@ -71,10 +73,14 @@ struct _GstX264Enc
guint keyint_max;
gboolean cabac;
+ /* input description */
+ GstVideoFormat format;
gint width, height;
- guint stride, luma_plane_size;
- gint framerate_num, framerate_den;
+ gint fps_num, fps_den;
gint par_num, par_den;
+ /* cache some format properties */
+ gint stride[4], offset[4];
+ gint image_size;
GstClockTime last_timestamp;
GstClockTime *timestamp_queue;