1
/* Copyright (C) 2005 Ole André Vadla Ravnås <oleavr@gmail.com>
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.
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.
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
22
#include "glib_replacement.h"
26
* @defgroup libmimic libmimic public API
27
* @brief The public API of the libmimic library
29
* libmimic provides the API required for encoding and decoding
30
* MIMIC v2.x-encoded content.
36
#define EXTERN extern "C"
42
* The mimic encoding/decoding context returned by #mimic_open
43
* and used for all further API calls until #mimic_close.
45
typedef struct _MimCtx MimCtx;
48
MIMIC_RES_LOW, /**< 160x120 resolution */
49
MIMIC_RES_HIGH /**< 320x240 resolution */
52
EXTERN MimCtx *mimic_open();
53
EXTERN void mimic_close(MimCtx *ctx);
55
EXTERN gboolean mimic_encoder_init(MimCtx *ctx, const MimicResEnum resolution);
56
EXTERN gboolean mimic_decoder_init(MimCtx *ctx, const guchar *frame_buffer);
58
EXTERN gboolean mimic_get_property(MimCtx *ctx, const gchar *name, gpointer data);
59
EXTERN gboolean mimic_set_property(MimCtx *ctx, const gchar *name, gpointer data);
61
EXTERN gboolean mimic_encode_frame(MimCtx *ctx,
62
const guchar *input_buffer,
63
guchar *output_buffer,
65
gboolean make_keyframe);
66
EXTERN gboolean mimic_decode_frame(MimCtx *ctx,
67
const guchar *input_buffer,
68
guchar *output_buffer);