libmimic  1.0.4
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 {
46 } MimicResEnum;
47 
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 
Definition: mimic.h:45
Definition: mimic.h:44
gboolean mimic_encode_frame(MimCtx *ctx, const guchar *input_buffer, guchar *output_buffer, gint *output_length, gboolean make_keyframe)
Definition: encode.c:40
gboolean mimic_get_property(MimCtx *ctx, const gchar *name, gpointer data)
Definition: mimic.c:239
void mimic_close(MimCtx *ctx)
Definition: mimic.c:48
MimCtx * mimic_open()
Definition: mimic.c:31
MimicResEnum
Definition: mimic.h:43
gboolean mimic_decoder_init(MimCtx *ctx, const guchar *frame_buffer)
Definition: mimic.c:182
Definition: mimic-private.h:28
gboolean mimic_set_property(MimCtx *ctx, const gchar *name, gpointer data)
Definition: mimic.c:292
gboolean mimic_decode_frame(MimCtx *ctx, const guchar *input_buffer, guchar *output_buffer)
Definition: decode.c:32
gboolean mimic_encoder_init(MimCtx *ctx, const MimicResEnum resolution)
Definition: mimic.c:135