wmaenc.c File Reference
#include "avcodec.h"
#include "internal.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 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 void apply_window_and_mdct ( AVCodecContext avctx,
const AVFrame frame 
)
static

Definition at line 100 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 169 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 143 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 334 of file wmaenc.c.

Referenced by encode_superframe().

static int encode_init ( AVCodecContext avctx)
static

Definition at line 30 of file wmaenc.c.

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

Definition at line 349 of file wmaenc.c.

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

Definition at line 122 of file wmaenc.c.

Referenced by encode_block().

Variable Documentation

AVCodec ff_wmav1_encoder
Initial value:
= {
.name = "wmav1",
.priv_data_size = sizeof(WMACodecContext),
.encode2 = encode_superframe,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
}
static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: wmaenc.c:349
static int encode_init(AVCodecContext *avctx)
Definition: wmaenc.c:30
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:335
float, planar
Definition: samplefmt.h:60
sample_fmts
Definition: avconv_filter.c:63
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:88
int ff_wma_end(AVCodecContext *avctx)
Definition: wma.c:369
AV_SAMPLE_FMT_NONE
Definition: avconv_filter.c:63
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:326
struct WMACodecContext WMACodecContext
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:49

Definition at line 421 of file wmaenc.c.

AVCodec ff_wmav2_encoder
Initial value:
= {
.name = "wmav2",
.priv_data_size = sizeof(WMACodecContext),
.encode2 = encode_superframe,
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
}
static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: wmaenc.c:349
static int encode_init(AVCodecContext *avctx)
Definition: wmaenc.c:30
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:335
float, planar
Definition: samplefmt.h:60
sample_fmts
Definition: avconv_filter.c:63
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:88
int ff_wma_end(AVCodecContext *avctx)
Definition: wma.c:369
AV_SAMPLE_FMT_NONE
Definition: avconv_filter.c:63
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:326
struct WMACodecContext WMACodecContext
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:49

Definition at line 434 of file wmaenc.c.