libmimic
1.0.4
Main Page
Modules
Classes
Files
File List
src
mimic.h
1
/* Copyright (C) 2005 Ole André Vadla Ravnås <oleavr@gmail.com>
2
*
3
* This library is free software; you can redistribute it and/or
4
* modify it under the terms of the GNU Lesser General Public
5
* License as published by the Free Software Foundation; either
6
* version 2.1 of the License, or (at your option) any later version.
7
*
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*/
17
18
#ifndef MIMIC_H
19
#define MIMIC_H
20
21
#include <glib.h>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
41
typedef
struct
_MimCtx
MimCtx
;
42
43
typedef
enum
{
44
MIMIC_RES_LOW
,
45
MIMIC_RES_HIGH
46
}
MimicResEnum
;
47
48
MimCtx
*
mimic_open
();
49
void
mimic_close
(
MimCtx
*ctx);
50
51
gboolean
mimic_encoder_init
(
MimCtx
*ctx,
const
MimicResEnum
resolution);
52
gboolean
mimic_decoder_init
(
MimCtx
*ctx,
const
guchar *frame_buffer);
53
54
gboolean
mimic_get_property
(
MimCtx
*ctx,
const
gchar *name, gpointer data);
55
gboolean
mimic_set_property
(
MimCtx
*ctx,
const
gchar *name, gpointer data);
56
57
gboolean
mimic_encode_frame
(
MimCtx
*ctx,
58
const
guchar *input_buffer,
59
guchar *output_buffer,
60
gint *output_length,
61
gboolean make_keyframe);
62
gboolean
mimic_decode_frame
(
MimCtx
*ctx,
63
const
guchar *input_buffer,
64
guchar *output_buffer);
65
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif // MIMIC_H
73
Generated on Tue Apr 2 2013 10:02:52 for libmimic by
1.8.2