82 gsm_option(avctx->
priv_data, GSM_OPT_WAV49, &one);
98 gsm_signal *samples = (gsm_signal *)
frame->
data[0];
122 #if CONFIG_LIBGSM_ENCODER
135 .wrapper_name =
"libgsm",
138 #if CONFIG_LIBGSM_MS_ENCODER
151 .wrapper_name =
"libgsm",
AVCodec ff_libgsm_encoder
AVCodec ff_libgsm_ms_encoder
Libavcodec external API header.
#define FF_COMPLIANCE_UNOFFICIAL
Allow unofficial extensions.
common internal and external API header
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size)
Check AVPacket size and/or allocate data.
#define AV_CH_LAYOUT_MONO
@ AV_CODEC_ID_GSM
as in Berlin toast format
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVSampleFormat
Audio sample formats.
@ AV_SAMPLE_FMT_S16
signed 16 bits
#define GSM_MS_BLOCK_SIZE
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
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 AVCodecDefault 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 channels
number of audio channels
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.
const char * name
Name of the codec implementation.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
This structure stores compressed data.
static void error(const char *err)