libavcodec/wmaenc.c File Reference
#include "avcodec.h"
#include "wma.h"
#include <assert.h>
Go to the source code of this file.
|
Functions |
static int | encode_init (AVCodecContext *avctx) |
static void | apply_window_and_mdct (AVCodecContext *avctx, signed short *audio, int len) |
static void | init_exp (WMACodecContext *s, int ch, const int *exp_param) |
static void | encode_exp_vlc (WMACodecContext *s, int ch, const int *exp_param) |
static int | encode_block (WMACodecContext *s, float(*src_coefs)[BLOCK_MAX_SIZE], int total_gain) |
static int | encode_frame (WMACodecContext *s, float(*src_coefs)[BLOCK_MAX_SIZE], uint8_t *buf, int buf_size, int total_gain) |
static int | encode_superframe (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
Variables |
AVCodec | wmav1_encoder |
AVCodec | wmav2_encoder |
Function Documentation
static void apply_window_and_mdct |
( |
AVCodecContext * |
avctx, |
|
|
signed short * |
audio, |
|
|
int |
len | |
|
) |
| | [static] |
static int encode_block |
( |
WMACodecContext * |
s, |
|
|
float(*) |
src_coefs[BLOCK_MAX_SIZE], |
|
|
int |
total_gain | |
|
) |
| | [static] |
static void encode_exp_vlc |
( |
WMACodecContext * |
s, |
|
|
int |
ch, |
|
|
const int * |
exp_param | |
|
) |
| | [static] |
static int encode_frame |
( |
WMACodecContext * |
s, |
|
|
float(*) |
src_coefs[BLOCK_MAX_SIZE], |
|
|
uint8_t * |
buf, |
|
|
int |
buf_size, |
|
|
int |
total_gain | |
|
) |
| | [static] |
static int encode_superframe |
( |
AVCodecContext * |
avctx, |
|
|
unsigned char * |
buf, |
|
|
int |
buf_size, |
|
|
void * |
data | |
|
) |
| | [static] |
static void init_exp |
( |
WMACodecContext * |
s, |
|
|
int |
ch, |
|
|
const int * |
exp_param | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
"wmav1",
CODEC_TYPE_AUDIO,
CODEC_ID_WMAV1,
sizeof(WMACodecContext),
encode_init,
encode_superframe,
ff_wma_end,
.sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
}
Definition at line 386 of file wmaenc.c.
Initial value:
{
"wmav2",
CODEC_TYPE_AUDIO,
CODEC_ID_WMAV2,
sizeof(WMACodecContext),
encode_init,
encode_superframe,
ff_wma_end,
.sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
}
Definition at line 399 of file wmaenc.c.