82 gsm_option(avctx->
priv_data, GSM_OPT_WAV49, &one);
98 gsm_signal *samples = (gsm_signal *)frame->
data[0];
118 #if CONFIG_LIBGSM_ENCODER
131 #if CONFIG_LIBGSM_MS_ENCODER
132 AVCodec ff_libgsm_ms_encoder = {
This structure describes decoded (raw) audio or video data.
int64_t bit_rate
the average bitrate
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
#define GSM_MS_BLOCK_SIZE
static av_cold int libgsm_encode_init(AVCodecContext *avctx)
#define FF_COMPLIANCE_UNOFFICIAL
Allow unofficial extensions.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const char * name
Name of the codec implementation.
int frame_size
Number of samples per channel in an audio frame.
Libavcodec external API header.
AVSampleFormat
Audio sample formats.
int sample_rate
samples per second
main external API structure.
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size)
Check AVPacket size and/or allocate data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
common internal api header.
common internal and external API header
as in Berlin toast format
int channels
number of audio channels
This structure stores compressed data.
int strict_std_compliance
strictly follow the standard (MPEG-4, ...).
static av_cold int libgsm_encode_close(AVCodecContext *avctx)