FFmpeg
Data Structures | Macros | Functions | Variables
wmv2enc.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "h263.h"
#include "mpegvideo.h"
#include "mpegvideoenc.h"
#include "msmpeg4.h"
#include "msmpeg4enc.h"
#include "msmpeg4data.h"
#include "msmpeg4_vc1_data.h"
#include "wmv2.h"
#include "wmv2enc.h"

Go to the source code of this file.

Data Structures

struct  WMV2EncContext
 

Macros

#define WMV2_EXTRADATA_SIZE   4
 

Functions

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

Variables

const FFCodec ff_wmv2_encoder
 

Macro Definition Documentation

◆ WMV2_EXTRADATA_SIZE

#define WMV2_EXTRADATA_SIZE   4

Definition at line 33 of file wmv2enc.c.

Function Documentation

◆ encode_ext_header()

static int encode_ext_header ( WMV2EncContext w)
static

Definition at line 49 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 75 of file wmv2enc.c.

◆ ff_wmv2_encode_picture_header()

int ff_wmv2_encode_picture_header ( MpegEncContext s)

Definition at line 96 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 169 of file wmv2enc.c.

Referenced by encode_mb_internal().

Variable Documentation

◆ ff_wmv2_encoder

const FFCodec ff_wmv2_encoder
Initial value:
= {
.p.name = "wmv2",
CODEC_LONG_NAME("Windows Media Video 8"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.priv_class = &ff_mpv_enc_class,
.priv_data_size = sizeof(WMV2EncContext),
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
}

Definition at line 239 of file wmv2enc.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
ff_mpv_enc_class
const AVClass ff_mpv_enc_class
Definition: mpegvideo_enc.c:101
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: codec_internal.h:42
wmv2_encode_init
static av_cold int wmv2_encode_init(AVCodecContext *avctx)
Definition: wmv2enc.c:75
ff_mpv_encode_picture
int ff_mpv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet)
Definition: mpegvideo_enc.c:1747
FF_CODEC_ENCODE_CB
#define FF_CODEC_ENCODE_CB(func)
Definition: codec_internal.h:315
WMV2EncContext
Definition: wmv2enc.c:35
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition: codec.h:156
AV_CODEC_ID_WMV2
@ AV_CODEC_ID_WMV2
Definition: codec_id.h:70
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
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
ff_mpv_encode_end
av_cold int ff_mpv_encode_end(AVCodecContext *avctx)
Definition: mpegvideo_enc.c:980
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201