FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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"

Go to the source code of this file.

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)
 
static void h261_encode_gob_header (MpegEncContext *s, int mb_line)
 Encode a group of blocks header.
 
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.
 
void ff_h261_encode_mb (MpegEncContext *s, int16_t block[6][64], int motion_x, int motion_y)
 
static av_cold void init_uni_h261_rl_tab (RLTable *rl, uint32_t *bits_tab, uint8_t *len_tab)
 
av_cold void ff_h261_encode_init (MpegEncContext *s)
 

Variables

static uint8_t uni_h261_rl_len [64 *64 *2 *2]
 
AVCodec ff_h261_encoder
 

Detailed Description

H.261 encoder.

Definition in file h261enc.c.

Macro Definition Documentation

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

Definition at line 37 of file h261enc.c.

Referenced by init_uni_h261_rl_tab().

Function Documentation

int ff_h261_get_picture_format ( int  width,
int  height 
)
void ff_h261_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 52 of file h261enc.c.

Referenced by encode_picture().

static void h261_encode_gob_header ( MpegEncContext s,
int  mb_line 
)
static

Encode a group of blocks header.

Definition at line 90 of file h261enc.c.

Referenced by ff_h261_reorder_mb_index().

void ff_h261_reorder_mb_index ( MpegEncContext s)

Definition at line 107 of file h261enc.c.

Referenced by encode_thread().

static void h261_encode_motion ( H261Context h,
int  val 
)
static

Definition at line 134 of file h261enc.c.

Referenced by ff_h261_encode_mb().

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

Definition at line 153 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 168 of file h261enc.c.

Referenced by ff_h261_encode_mb().

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

Definition at line 236 of file h261enc.c.

Referenced by encode_mb_internal().

static av_cold void init_uni_h261_rl_tab ( RLTable rl,
uint32_t *  bits_tab,
uint8_t len_tab 
)
static

Definition at line 321 of file h261enc.c.

Referenced by ff_h261_encode_init().

av_cold void ff_h261_encode_init ( MpegEncContext s)

Definition at line 361 of file h261enc.c.

Referenced by ff_MPV_encode_init().

Variable Documentation

uint8_t uni_h261_rl_len[64 *64 *2 *2]
static

Definition at line 36 of file h261enc.c.

Referenced by ff_h261_encode_init().

AVCodec ff_h261_encoder
Initial value:
= {
.name = "h261",
.long_name = NULL_IF_CONFIG_SMALL("H.261"),
.priv_data_size = sizeof(H261Context),
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
.priv_class = &h261_class,
}

Definition at line 379 of file h261enc.c.