2009-06-30 21:55:13 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright (C) 2009 Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_VDP_VIDEO_POST_PROCESS_H__
|
|
|
|
#define __GST_VDP_VIDEO_POST_PROCESS_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2009-10-08 18:25:40 +00:00
|
|
|
|
2010-06-09 13:43:43 +00:00
|
|
|
#include "gstvdp/gstvdpdevice.h"
|
|
|
|
#include "gstvdp/gstvdpvideobuffer.h"
|
2010-07-30 09:27:27 +00:00
|
|
|
#include "gstvdp/gstvdpvideobufferpool.h"
|
2009-06-30 21:55:13 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2009-07-04 11:59:36 +00:00
|
|
|
#define MAX_PICTURES 6
|
|
|
|
|
|
|
|
typedef struct _GstVdpPicture GstVdpPicture;
|
|
|
|
|
|
|
|
struct _GstVdpPicture
|
|
|
|
{
|
|
|
|
GstVdpVideoBuffer *buf;
|
|
|
|
VdpVideoMixerPictureStructure structure;
|
|
|
|
GstClockTime timestamp;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_VDP_DEINTERLACE_MODE_AUTO,
|
|
|
|
GST_VDP_DEINTERLACE_MODE_INTERLACED,
|
|
|
|
GST_VDP_DEINTERLACE_MODE_DISABLED
|
|
|
|
} GstVdpDeinterlaceModes;
|
2010-03-17 19:59:08 +00:00
|
|
|
|
2009-07-04 11:59:36 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_VDP_DEINTERLACE_METHOD_BOB,
|
|
|
|
GST_VDP_DEINTERLACE_METHOD_TEMPORAL,
|
|
|
|
GST_VDP_DEINTERLACE_METHOD_TEMPORAL_SPATIAL
|
|
|
|
} GstVdpDeinterlaceMethods;
|
|
|
|
|
2009-06-30 21:55:13 +00:00
|
|
|
#define GST_TYPE_VDP_VIDEO_POST_PROCESS (gst_vdp_vpp_get_type())
|
|
|
|
#define GST_VDP_VIDEO_POST_PROCESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VDP_VIDEO_POST_PROCESS,GstVdpVideoPostProcess))
|
|
|
|
#define GST_VDP_VIDEO_POST_PROCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VDP_VIDEO_POST_PROCESS,GstVdpVideoPostProcessClass))
|
|
|
|
#define GST_IS_VDP_VIDEO_POST_PROCESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VDP_VIDEO_POST_PROCESS))
|
|
|
|
#define GST_IS_VDP_VIDEO_POST_PROCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VDP_VIDEO_POST_PROCESS))
|
|
|
|
|
|
|
|
typedef struct _GstVdpVideoPostProcess GstVdpVideoPostProcess;
|
|
|
|
typedef struct _GstVdpVideoPostProcessClass GstVdpVideoPostProcessClass;
|
|
|
|
|
|
|
|
struct _GstVdpVideoPostProcess
|
|
|
|
{
|
|
|
|
GstElement element;
|
|
|
|
|
|
|
|
GstPad *sinkpad, *srcpad;
|
2009-10-08 18:13:04 +00:00
|
|
|
|
|
|
|
gboolean native_input;
|
|
|
|
VdpChromaType chroma_type;
|
|
|
|
gint width, height;
|
|
|
|
guint32 fourcc;
|
2010-07-30 09:27:27 +00:00
|
|
|
GstVdpBufferPool *vpool;
|
2009-06-30 21:55:13 +00:00
|
|
|
|
2009-10-08 18:13:04 +00:00
|
|
|
gboolean got_par;
|
|
|
|
gint par_n, par_d;
|
|
|
|
|
2009-07-04 11:59:36 +00:00
|
|
|
gboolean interlaced;
|
|
|
|
GstClockTime field_duration;
|
2009-10-27 19:57:05 +00:00
|
|
|
|
|
|
|
GstSegment segment;
|
|
|
|
GstClockTime earliest_time;
|
|
|
|
gboolean discont;
|
2009-11-22 21:30:19 +00:00
|
|
|
|
2009-06-30 21:55:13 +00:00
|
|
|
GstVdpDevice *device;
|
|
|
|
VdpVideoMixer mixer;
|
|
|
|
|
2009-07-04 11:59:36 +00:00
|
|
|
GstVdpPicture future_pictures[MAX_PICTURES];
|
|
|
|
guint n_future_pictures;
|
|
|
|
|
|
|
|
GstVdpPicture past_pictures[MAX_PICTURES];
|
|
|
|
guint n_past_pictures;
|
|
|
|
|
2009-06-30 21:55:13 +00:00
|
|
|
gboolean force_aspect_ratio;
|
2009-07-04 11:59:36 +00:00
|
|
|
GstVdpDeinterlaceModes mode;
|
|
|
|
GstVdpDeinterlaceMethods method;
|
2009-07-04 13:46:02 +00:00
|
|
|
|
2009-10-08 18:13:04 +00:00
|
|
|
/* properties */
|
2009-10-08 18:19:57 +00:00
|
|
|
gchar *display;
|
2009-07-04 17:48:42 +00:00
|
|
|
gfloat noise_reduction;
|
2009-08-19 20:02:19 +00:00
|
|
|
gfloat sharpening;
|
2009-08-19 20:23:17 +00:00
|
|
|
gboolean inverse_telecine;
|
2009-06-30 21:55:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstVdpVideoPostProcessClass
|
|
|
|
{
|
|
|
|
GstElementClass element_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
GType gst_vdp_vpp_get_type (void);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_VDP_VIDEO_POST_PROCESS_H__ */
|