31#include "config_components.h"
79 gsm_option(avctx->
priv_data, GSM_OPT_WAV49, &one);
95 gsm_signal *samples = (gsm_signal *)
frame->data[0];
119#if CONFIG_LIBGSM_ENCODER
132 .p.wrapper_name =
"libgsm",
136#if CONFIG_LIBGSM_MS_ENCODER
138 .p.name =
"libgsm_ms",
149 .p.wrapper_name =
"libgsm",
const FFCodec ff_libgsm_ms_encoder
const FFCodec ff_libgsm_encoder
Libavcodec external API header.
Public libavutil channel layout APIs header.
#define CODEC_CH_LAYOUTS(...)
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define CODEC_SAMPLEFMTS(...)
common internal and external API header
#define FF_COMPLIANCE_UNOFFICIAL
Allow unofficial extensions.
int ff_get_encode_buffer(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int flags)
Get a buffer for a packet.
static struct @346255127015250356166251341105367306144006377143 state
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
@ AV_CODEC_ID_GSM
as in Berlin toast format
#define AV_CHANNEL_LAYOUT_MONO
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
@ AV_SAMPLE_FMT_S16
signed 16 bits
#define GSM_MS_BLOCK_SIZE
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, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static const FFCodecDefault libgsm_defaults[]
main external API structure.
int strict_std_compliance
strictly follow the standard (MPEG-4, ...).
int64_t bit_rate
the average bitrate
int sample_rate
samples per second
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs.
int frame_size
Number of samples per channel in an audio frame.
This structure describes decoded (raw) audio or video data.
This structure stores compressed data.
static void error(const char *err)