123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*
- * Copyright (C) 2009-2010 Felipe Contreras
- *
- * Author: Felipe Contreras <felipe.contreras@gmail.com>
- *
- * This file may be used under the terms of the GNU Lesser General Public
- * License version 2.1, a copy of which is found in LICENSE included in the
- * packaging of this file.
- */
- #ifndef GST_DSP_VDEC_H
- #define GST_DSP_VDEC_H
- #include <gst/gst.h>
- G_BEGIN_DECLS
- #define GST_DSP_VDEC(obj) (GstDspVDec *)(obj)
- #define GST_DSP_VDEC_TYPE (gst_dsp_vdec_get_type())
- #define GST_DSP_VDEC_CLASS(obj) (GstDspVDecClass *)(obj)
- typedef struct _GstDspVDec GstDspVDec;
- typedef struct _GstDspVDecClass GstDspVDecClass;
- #include "gstdspbase.h"
- enum {
- GSTDSP_MPEG4VDEC,
- GSTDSP_H264DEC,
- GSTDSP_H263DEC,
- GSTDSP_WMVDEC,
- GSTDSP_JPEGDEC,
- };
- union vdec_priv_data {
- struct {
- gint lol;
- gboolean is_avc;
- } h264;
- struct {
- gboolean is_divx;
- } mpeg4;
- };
- struct _GstDspVDec {
- GstDspBase element;
- gint width, height;
- gint crop_width, crop_height;
- gint frame_index;
- gboolean wmv_is_vc1;
- gboolean jpeg_is_interlaced;
- gboolean codec_data_sent;
- guint32 color_format;
- union vdec_priv_data priv;
- };
- struct _GstDspVDecClass {
- GstDspBaseClass parent_class;
- };
- void gstdsp_vdec_len_fixup(GstDspVDec *self, dmm_buffer_t *b);
- GType gst_dsp_vdec_get_type(void);
- G_END_DECLS
- #endif /* GST_DSP_VDEC_H */
|