2 * Copyright (C) 2007-2009 Nokia Corporation.
4 * Author: Felipe Contreras <felipe.contreras@nokia.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation
9 * version 2.1 of the License.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef GSTOMX_MPEG4DEC_H
23 #define GSTOMX_MPEG4DEC_H
31 #define GST_OMX_MPEG4DEC(obj) (GstOmxMpeg4Dec *) (obj)
32 #define GST_OMX_MPEG4DEC_TYPE (gst_omx_mpeg4dec_get_type ())
33 typedef struct DivXSymbolTable DivXSymbolTable;
34 typedef struct GstOmxMpeg4Dec GstOmxMpeg4Dec;
35 typedef struct GstOmxMpeg4DecClass GstOmxMpeg4DecClass;
37 #include "gstomx_base_videodec.h"
39 #define DIVX_SDK_PLUGIN_NAME "libmm_divxsdk.so"
41 typedef enum drmErrorCodes
51 struct DivXSymbolTable
53 uint8_t* (*init_decrypt) (int*);
54 int (*commit) (uint8_t *);
55 int (*decrypt_video) (uint8_t *, uint8_t *, uint32_t);
56 int (*prepare_video_bitstream) (uint8_t *, uint8_t * , uint32_t , uint8_t * , uint32_t * );
57 int (*finalize) (uint8_t *);
62 GstOmxBaseVideoDec omx_base;
65 DivXSymbolTable divx_sym_table;
68 struct GstOmxMpeg4DecClass
70 GstOmxBaseVideoDecClass parent_class;
73 GType gst_omx_mpeg4dec_get_type (void);
76 #endif /* GSTOMX_MPEG4DEC_H */