FFmpeg
Macros | Functions | Variables
h261enc.c File Reference

H.261 encoder. More...

#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "h263.h"
#include "h261.h"
#include "mpegvideodata.h"

Macros

#define UNI_ENC_INDEX(last, run, level)   ((last)*128*64 + (run)*128 + (level))
 

Functions

int ff_h261_get_picture_format (int width, int height)
 
void ff_h261_encode_picture_header (MpegEncContext *s, int picture_number)
 
void ff_h261_reorder_mb_index (MpegEncContext *s)
 
void ff_h261_encode_mb (MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y)
 
av_cold void ff_h261_encode_init (MpegEncContext *s)
 

Variables

AVCodec ff_h261_encoder
 

Detailed Description

H.261 encoder.

Variable Documentation

§ ff_h261_encoder

AVCodec ff_h261_encoder
Initial value:
= {
.name = "h261",
.long_name = NULL_IF_CONFIG_SMALL("H.261"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_H261,
.priv_data_size = sizeof(H261Context),
.init = ff_mpv_encode_init,
.encode2 = ff_mpv_encode_picture,
.close = ff_mpv_encode_end,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
AV_PIX_FMT_NONE },
.priv_class = &h261_class,
}
struct H261Context H261Context
H261Context.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:62
AVPixelFormat
Pixel format.
Definition: pixfmt.h:60