FFmpeg
Functions | Variables
wmv2enc.c File Reference
#include "avcodec.h"
#include "h263.h"
#include "mpegvideo.h"
#include "msmpeg4.h"
#include "msmpeg4data.h"
#include "wmv2.h"

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

const AVCodec ff_wmv2_encoder
 

Function Documentation

◆ encode_ext_header()

static int encode_ext_header ( Wmv2Context w)
static

Definition at line 29 of file wmv2enc.c.

Referenced by wmv2_encode_init().

◆ wmv2_encode_init()

static av_cold int wmv2_encode_init ( AVCodecContext avctx)
static

Definition at line 55 of file wmv2enc.c.

◆ ff_wmv2_encode_picture_header()

int ff_wmv2_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 74 of file wmv2enc.c.

Referenced by encode_picture().

◆ ff_wmv2_encode_mb()

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

Definition at line 147 of file wmv2enc.c.

Referenced by encode_mb_internal().

Variable Documentation

◆ ff_wmv2_encoder

const AVCodec ff_wmv2_encoder
Initial value:
= {
.name = "wmv2",
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
.priv_class = &ff_mpv_enc_class,
.priv_data_size = sizeof(Wmv2Context),
}

Definition at line 217 of file wmv2enc.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
init
static int init
Definition: av_tx.c:47
wmv2_encode_init
static av_cold int wmv2_encode_init(AVCodecContext *avctx)
Definition: wmv2enc.c:55
AV_CODEC_ID_WMV2
@ AV_CODEC_ID_WMV2
Definition: codec_id.h:68
ff_mpv_encode_picture
int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: mpegvideo_enc.c:1712
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:296
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:50
ff_mpv_encode_end
int ff_mpv_encode_end(AVCodecContext *avctx)
Definition: mpegvideo_enc.c:965
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
Wmv2Context
Definition: wmv2.h:36
ff_mpv_enc_class
const AVClass ff_mpv_enc_class
Definition: mpegvideo_enc.c:99