74 gsm_option(avctx->
priv_data, GSM_OPT_WAV49, &one);
90 const AVFrame *frame,
int *got_packet_ptr)
93 gsm_signal *samples = (gsm_signal *)frame->
data[0];
This structure describes decoded (raw) audio or video data.
AVCodec ff_libgsm_encoder
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. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
int bit_rate
the average bitrate
int ff_alloc_packet(AVPacket *avpkt, int size)
Check AVPacket size and/or allocate data.
AVCodec ff_libgsm_ms_encoder
if(ac->has_optimized_func)
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.
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 (MPEG4, ...).
static av_cold int libgsm_encode_close(AVCodecContext *avctx)