mimic.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MIMIC_H
00019 #define MIMIC_H
00020
00021 #include <glib.h>
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00041 typedef struct _MimCtx MimCtx;
00042
00043 typedef enum {
00044 MIMIC_RES_LOW,
00045 MIMIC_RES_HIGH
00046 } MimicResEnum;
00047
00048 MimCtx *mimic_open();
00049 void mimic_close(MimCtx *ctx);
00050
00051 gboolean mimic_encoder_init(MimCtx *ctx, const MimicResEnum resolution);
00052 gboolean mimic_decoder_init(MimCtx *ctx, const guchar *frame_buffer);
00053
00054 gboolean mimic_get_property(MimCtx *ctx, const gchar *name, gpointer data);
00055 gboolean mimic_set_property(MimCtx *ctx, const gchar *name, gpointer data);
00056
00057 gboolean mimic_encode_frame(MimCtx *ctx,
00058 const guchar *input_buffer,
00059 guchar *output_buffer,
00060 gint *output_length,
00061 gboolean make_keyframe);
00062 gboolean mimic_decode_frame(MimCtx *ctx,
00063 const guchar *input_buffer,
00064 guchar *output_buffer);
00065
00068 #ifdef __cplusplus
00069 }
00070 #endif
00071
00072 #endif // MIMIC_H
00073