#include "avcodec.h"#include <gsm.h>

Go to the source code of this file.
Defines | |
| #define | GSM_BLOCK_SIZE 33 |
| #define | GSM_FRAME_SIZE 160 |
Functions | |
| static int | libgsm_init (AVCodecContext *avctx) |
| static int | libgsm_close (AVCodecContext *avctx) |
| static int | libgsm_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) |
| static int | libgsm_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
Variables | |
| AVCodec | libgsm_encoder |
| AVCodec | libgsm_decoder |
Definition in file libgsm.c.
| #define GSM_BLOCK_SIZE 33 |
Definition at line 29 of file libgsm.c.
Referenced by libgsm_decode_frame(), libgsm_encode_frame(), and libgsm_init().
| #define GSM_FRAME_SIZE 160 |
| static int libgsm_close | ( | AVCodecContext * | avctx | ) | [static] |
| static int libgsm_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 74 of file libgsm.c.
References GSM_BLOCK_SIZE, GSM_FRAME_SIZE, and AVCodecContext::priv_data.
| static int libgsm_encode_frame | ( | AVCodecContext * | avctx, | |
| unsigned char * | frame, | |||
| int | buf_size, | |||
| void * | data | |||
| ) | [static] |
| static int libgsm_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 32 of file libgsm.c.
References avcodec_alloc_frame(), AVCodecContext::block_align, AVCodecContext::channels, AVCodecContext::coded_frame, AVCodecContext::frame_size, GSM_BLOCK_SIZE, GSM_FRAME_SIZE, AVCodecContext::priv_data, and AVCodecContext::sample_rate.

Initial value:
{
"gsm",
CODEC_TYPE_AUDIO,
CODEC_ID_GSM,
0,
libgsm_init,
NULL,
libgsm_close,
libgsm_decode_frame,
}
Definition at line 86 of file libgsm.c.
Referenced by avcodec_register_all().
Initial value:
{
"gsm",
CODEC_TYPE_AUDIO,
CODEC_ID_GSM,
0,
libgsm_init,
libgsm_encode_frame,
libgsm_close,
}
Definition at line 64 of file libgsm.c.
Referenced by avcodec_register_all().
1.5.5