Seperate decode and picture_copy if no pix_fmt is specified
[platform/adaptation/emulator/gst-plugins-emulator.git] / src / gstmarumem.h
1 /*
2  * GStreamer codec plugin for Tizen Emulator.
3  *
4  * Copyright (C) 2013 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  * KiTae Kim <kt920.kim@samsung.com>
8  * SeokYeon Hwang <syeon.hwang@samsung.com>
9  * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the
23  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24  * Boston, MA 02111-1307, USA.
25  *
26  * Contributors:
27  * - S-Core Co., Ltd
28  *
29  */
30
31 #ifndef __GST_MARU_MEM_H__
32 #define __GST_MARU_MEM_H__
33
34 #include "gstmaru.h"
35
36 void codec_init_data_to (CodecContext *, CodecElement *, gpointer);
37
38 int codec_init_data_from (CodecContext *, int, gpointer);
39
40 void codec_decode_video_data_to (int, int, int64_t, uint8_t *, gpointer);
41
42 int codec_decode_video_data_from (int *, VideoData *, gpointer);
43
44 void codec_decode_audio_data_to (int, uint8_t *, gpointer);
45
46 int codec_decode_audio_data_from (int *, int16_t *, AudioData *, gpointer);
47
48 void codec_encode_video_data_to (int, int64_t, uint8_t *, gpointer);
49
50 int codec_encode_video_data_from (uint8_t *, int *, int *, gpointer);
51
52 void codec_encode_audio_data_to (int, int, uint8_t *, int64_t, gpointer);
53
54 int codec_encode_audio_data_from (uint8_t *, gpointer);
55
56 #endif