#include "avcodec.h"
#include <gsm/gsm.h>
Go to the source code of this file.
Data Structures | |
| struct | LibGSMDecodeContext |
Defines | |
| #define | GSM_BLOCK_SIZE 33 |
| #define | GSM_MS_BLOCK_SIZE 65 |
| #define | GSM_FRAME_SIZE 160 |
Functions | |
| static av_cold int | libgsm_encode_init (AVCodecContext *avctx) |
| static av_cold int | libgsm_encode_close (AVCodecContext *avctx) |
| static int | libgsm_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) |
| static av_cold int | libgsm_decode_init (AVCodecContext *avctx) |
| static av_cold int | libgsm_decode_close (AVCodecContext *avctx) |
| static int | libgsm_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
| static void | libgsm_flush (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_libgsm_encoder |
| AVCodec | ff_libgsm_ms_encoder |
| AVCodec | ff_libgsm_decoder |
| AVCodec | ff_libgsm_ms_decoder |
Definition in file libgsm.c.
| static av_cold int libgsm_decode_close | ( | AVCodecContext * | avctx | ) | [static] |
| static int libgsm_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | got_frame_ptr, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
| static av_cold int libgsm_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static av_cold int libgsm_encode_close | ( | AVCodecContext * | avctx | ) | [static] |
| static int libgsm_encode_frame | ( | AVCodecContext * | avctx, | |
| unsigned char * | frame, | |||
| int | buf_size, | |||
| void * | data | |||
| ) | [static] |
| static av_cold int libgsm_encode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static void libgsm_flush | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{
.name = "libgsm",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_GSM,
.priv_data_size = sizeof(LibGSMDecodeContext),
.init = libgsm_decode_init,
.close = libgsm_decode_close,
.decode = libgsm_decode_frame,
.flush = libgsm_flush,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"),
}
Initial value:
{
.name = "libgsm",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_GSM,
.init = libgsm_encode_init,
.encode = libgsm_encode_frame,
.close = libgsm_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"),
}
Initial value:
{
.name = "libgsm_ms",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_GSM_MS,
.priv_data_size = sizeof(LibGSMDecodeContext),
.init = libgsm_decode_init,
.close = libgsm_decode_close,
.decode = libgsm_decode_frame,
.flush = libgsm_flush,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"),
}
Initial value:
{
.name = "libgsm_ms",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_GSM_MS,
.init = libgsm_encode_init,
.encode = libgsm_encode_frame,
.close = libgsm_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"),
}
1.5.8