h261enc.c File Reference

H.261 encoder. More...

#include "libavutil/avassert.h"
#include "avcodec.h"
#include "mpegvideo.h"
#include "h263.h"
#include "h261.h"
Include dependency graph for h261enc.c:

Go to the source code of this file.

Functions

int ff_h261_get_picture_format (int width, int height)
 
void ff_h261_encode_picture_header (MpegEncContext *s, int picture_number)
 
static void h261_encode_gob_header (MpegEncContext *s, int mb_line)
 Encode a group of blocks header. More...
 
void ff_h261_reorder_mb_index (MpegEncContext *s)
 
static void h261_encode_motion (H261Context *h, int val)
 
static int get_cbp (MpegEncContext *s, int16_t block[6][64])
 
static void h261_encode_block (H261Context *h, int16_t *block, int n)
 Encode an 8x8 block. More...
 
void ff_h261_encode_mb (MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y)
 
void ff_h261_encode_init (MpegEncContext *s)
 

Variables

AVCodec ff_h261_encoder
 

Detailed Description

H.261 encoder.

Definition in file h261enc.c.

Function Documentation

void ff_h261_encode_init ( MpegEncContext s)

Definition at line 315 of file h261enc.c.

Referenced by ff_MPV_encode_init().

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

Definition at line 228 of file h261enc.c.

Referenced by encode_mb_internal().

void ff_h261_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 47 of file h261enc.c.

Referenced by encode_picture().

int ff_h261_get_picture_format ( int  width,
int  height 
)
void ff_h261_reorder_mb_index ( MpegEncContext s)

Definition at line 103 of file h261enc.c.

Referenced by encode_thread().

static int get_cbp ( MpegEncContext s,
int16_t  block[6][64] 
)
inlinestatic

Definition at line 145 of file h261enc.c.

Referenced by ff_h261_encode_mb().

static void h261_encode_block ( H261Context h,
int16_t *  block,
int  n 
)
static

Encode an 8x8 block.

Parameters
blockthe 8x8 block
nblock index (0-3 are luma, 4-5 are chroma)

Definition at line 160 of file h261enc.c.

Referenced by ff_h261_encode_mb().

static void h261_encode_gob_header ( MpegEncContext s,
int  mb_line 
)
static

Encode a group of blocks header.

Definition at line 85 of file h261enc.c.

Referenced by ff_h261_reorder_mb_index().

static void h261_encode_motion ( H261Context h,
int  val 
)
static

Definition at line 126 of file h261enc.c.

Referenced by ff_h261_encode_mb().

Variable Documentation

AVCodec ff_h261_encoder
Initial value:
= {
.name = "h261",
.priv_data_size = sizeof(H261Context),
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
.long_name = NULL_IF_CONFIG_SMALL("H.261"),
.priv_class = &h261_class,
}
struct H261Context H261Context
H261Context.
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
int ff_MPV_encode_end(AVCodecContext *avctx)
int ff_MPV_encode_init(AVCodecContext *avctx)
#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
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 327 of file h261enc.c.