wmaenc.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "wma.h"
#include "libavutil/avassert.h"
Include dependency graph for wmaenc.c:

Go to the source code of this file.

Functions

static 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)
 

Function Documentation

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

Definition at line 92 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 161 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 135 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

Definition at line 326 of file wmaenc.c.

Referenced by encode_superframe().

static int encode_init ( AVCodecContext avctx)
static

Definition at line 28 of file wmaenc.c.

Referenced by encode_superframe().

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

Definition at line 341 of file wmaenc.c.

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

Definition at line 114 of file wmaenc.c.

Referenced by encode_block().