#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, const 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 | ff_wmav1_encoder |
| AVCodec | ff_wmav2_encoder |
| static void apply_window_and_mdct | ( | AVCodecContext * | avctx, | |
| const signed short * | audio, | |||
| int | len | |||
| ) | [static] |
Definition at line 95 of file wmaenc.c.
Referenced by encode_superframe().
| static int encode_block | ( | WMACodecContext * | s, | |
| float(*) | src_coefs[BLOCK_MAX_SIZE], | |||
| int | total_gain | |||
| ) | [static] |
Definition at line 163 of file wmaenc.c.
Referenced by encode_frame().
| static void encode_exp_vlc | ( | WMACodecContext * | s, | |
| int | ch, | |||
| const int * | exp_param | |||
| ) | [static] |
Definition at line 137 of file wmaenc.c.
Referenced by encode_block().
| 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_init | ( | AVCodecContext * | avctx | ) | [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] |
Definition at line 116 of file wmaenc.c.
Referenced by encode_block().
{
.name = "wmav1",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_WMAV1,
.priv_data_size = sizeof(WMACodecContext),
.init = encode_init,
.encode = encode_superframe,
.close = ff_wma_end,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
}
{
.name = "wmav2",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_WMAV2,
.priv_data_size = sizeof(WMACodecContext),
.init = encode_init,
.encode = encode_superframe,
.close = ff_wma_end,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
}