diff options
Diffstat (limited to 'src/gstducatividdec.h')
-rw-r--r-- | src/gstducatividdec.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/gstducatividdec.h b/src/gstducatividdec.h index ea69e59..92d44b5 100644 --- a/src/gstducatividdec.h +++ b/src/gstducatividdec.h @@ -26,11 +26,10 @@ #include <omap_drmif.h> #include "gstducati.h" -#include "gstducatibufferpriv.h" +#include "gstducatiprivmeta.h" -#include <gst/drm/gstdrmbufferpool.h> +#include "gstdrmbufferpool.h" #include <gst/video/video.h> -#include <gst/video/video-crop.h> G_BEGIN_DECLS @@ -44,13 +43,18 @@ G_BEGIN_DECLS typedef struct _GstDucatiVidDec GstDucatiVidDec; typedef struct _GstDucatiVidDecClass GstDucatiVidDecClass; +typedef struct _PrivateCrop PrivateCrop; +struct _PrivateCrop { + gint top, left, width, height; +}; + struct _GstDucatiVidDec { GstElement parent; GstPad *sinkpad, *srcpad; - GstDRMBufferPool *pool; + GstBufferPool *pool; /* minimum output size required by the codec: */ gint outsize; @@ -82,14 +86,15 @@ struct _GstDucatiVidDec gint in_size; /* the crop to attach to output buffers: */ - GstVideoCrop *crop; + gboolean need_crop; + PrivateCrop crop; /* on first output buffer, we need to send crop info to sink.. and some * operations like flushing should be avoided if we haven't sent any * input buffers: */ gboolean first_out_buffer, first_in_buffer; - gboolean send_crop_event; + gboolean calculate_crop; GstSegment segment; gdouble qos_proportion; |