wmv2enc.c File Reference
#include "avcodec.h"
#include "mpegvideo.h"
#include "msmpeg4.h"
#include "msmpeg4data.h"
#include "h263.h"
#include "wmv2.h"
Include dependency graph for wmv2enc.c:

Go to the source code of this file.

Functions

static int encode_ext_header (Wmv2Context *w)
 
static av_cold int wmv2_encode_init (AVCodecContext *avctx)
 
int ff_wmv2_encode_picture_header (MpegEncContext *s, int picture_number)
 
void ff_wmv2_encode_mb (MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y)
 

Variables

AVCodec ff_wmv2_encoder
 

Function Documentation

static int encode_ext_header ( Wmv2Context w)
static

Definition at line 29 of file wmv2enc.c.

Referenced by wmv2_encode_init().

void ff_wmv2_encode_mb ( MpegEncContext s,
int16_t  block[6][64],
int  motion_x,
int  motion_y 
)

Definition at line 149 of file wmv2enc.c.

Referenced by encode_mb_internal(), and ff_h263_round_chroma().

int ff_wmv2_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 69 of file wmv2enc.c.

Referenced by encode_picture(), and ff_h263_round_chroma().

static av_cold int wmv2_encode_init ( AVCodecContext avctx)
static

Definition at line 54 of file wmv2enc.c.

Variable Documentation

AVCodec ff_wmv2_encoder
Initial value:
= {
.name = "wmv2",
.priv_data_size = sizeof(Wmv2Context),
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
int ff_MPV_encode_end(AVCodecContext *avctx)
static av_cold int wmv2_encode_init(AVCodecContext *avctx)
Definition: wmv2enc.c:54
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
struct Wmv2Context Wmv2Context
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:68
AVPixelFormat
Pixel format.
Definition: pixfmt.h:66
int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt, AVFrame *frame, int *got_packet)

Definition at line 213 of file wmv2enc.c.