Libav
Functions | Variables
wmaenc.c File Reference
#include "libavutil/attributes.h"
#include "avcodec.h"
#include "internal.h"
#include "wma.h"
#include <assert.h>

Go to the source code of this file.

Functions

static av_cold int encode_init (AVCodecContext *avctx)
static void apply_window_and_mdct (AVCodecContext *avctx, const AVFrame *frame)
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, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)

Variables

AVCodec ff_wmav1_encoder
AVCodec ff_wmav2_encoder

Function Documentation

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 31 of file wmaenc.c.

static void apply_window_and_mdct ( AVCodecContext avctx,
const AVFrame frame 
)
static

Definition at line 97 of file wmaenc.c.

Referenced by encode_superframe().

static void init_exp ( WMACodecContext s,
int  ch,
const int *  exp_param 
)
static

Definition at line 119 of file wmaenc.c.

Referenced by encode_block().

static void encode_exp_vlc ( WMACodecContext s,
int  ch,
const int *  exp_param 
)
static

Definition at line 140 of file wmaenc.c.

Referenced by encode_block().

static int encode_block ( WMACodecContext s,
float(*)  src_coefs[BLOCK_MAX_SIZE],
int  total_gain 
)
static

Definition at line 166 of file wmaenc.c.

Referenced by encode_frame().

static int encode_frame ( WMACodecContext s,
float(*)  src_coefs[BLOCK_MAX_SIZE],
uint8_t buf,
int  buf_size,
int  total_gain 
)
static

Definition at line 331 of file wmaenc.c.

static int encode_superframe ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)
static

Definition at line 346 of file wmaenc.c.

Variable Documentation

AVCodec ff_wmav1_encoder
Initial value:
{
.name = "wmav1",
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
.priv_data_size = sizeof(WMACodecContext),
.encode2 = encode_superframe,
}

Definition at line 418 of file wmaenc.c.

AVCodec ff_wmav2_encoder
Initial value:
{
.name = "wmav2",
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
.priv_data_size = sizeof(WMACodecContext),
.encode2 = encode_superframe,
}

Definition at line 431 of file wmaenc.c.