libavcodec/zmbvenc.c File Reference

Zip Motion Blocks Video encoder. More...

#include <stdio.h>
#include <stdlib.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
#include <zlib.h>

Go to the source code of this file.

Data Structures

struct  ZmbvEncContext
 Encoder context. More...

Defines

#define ZMBV_KEYFRAME   1
#define ZMBV_DELTAPAL   2
#define ZMBV_BLOCK   16

Functions

static int block_cmp (uint8_t *src, int stride, uint8_t *src2, int stride2, int bw, int bh, int *xored)
 Block comparing function XXX should be optimized and moved to DSPContext TODO handle out of edge ME.
static int zmbv_me (ZmbvEncContext *c, uint8_t *src, int sstride, uint8_t *prev, int pstride, int x, int y, int *mx, int *my, int *xored)
 Motion estimation function TODO make better ME decisions.
static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
static av_cold int encode_init (AVCodecContext *avctx)
 Init zmbv encoder.
static av_cold int encode_end (AVCodecContext *avctx)
 Uninit zmbv encoder.

Variables

static int score_tab [256]
AVCodec ff_zmbv_encoder


Detailed Description

Zip Motion Blocks Video encoder.

Definition in file zmbvenc.c.


Define Documentation

#define ZMBV_BLOCK   16

Definition at line 40 of file zmbvenc.c.

Referenced by encode_frame(), encode_init(), and zmbv_me().

#define ZMBV_DELTAPAL   2

Definition at line 38 of file zmbvenc.c.

#define ZMBV_KEYFRAME   1

Definition at line 37 of file zmbvenc.c.


Function Documentation

static int block_cmp ( uint8_t src,
int  stride,
uint8_t src2,
int  stride2,
int  bw,
int  bh,
int xored 
) [inline, static]

Block comparing function XXX should be optimized and moved to DSPContext TODO handle out of edge ME.

Definition at line 66 of file zmbvenc.c.

Referenced by zmbv_me().

static av_cold int encode_end ( AVCodecContext avctx  )  [static]

Uninit zmbv encoder.

Definition at line 325 of file zmbvenc.c.

static int encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int got_packet 
) [static]

Definition at line 120 of file zmbvenc.c.

static av_cold int encode_init ( AVCodecContext avctx  )  [static]

Init zmbv encoder.

Definition at line 258 of file zmbvenc.c.

static int zmbv_me ( ZmbvEncContext c,
uint8_t src,
int  sstride,
uint8_t prev,
int  pstride,
int  x,
int  y,
int mx,
int my,
int xored 
) [static]

Motion estimation function TODO make better ME decisions.

Definition at line 93 of file zmbvenc.c.

Referenced by encode_frame().


Variable Documentation

Initial value:

 {
    .name           = "zmbv",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_ZMBV,
    .priv_data_size = sizeof(ZmbvEncContext),
    .init           = encode_init,
    .encode2        = encode_frame,
    .close          = encode_end,
    .pix_fmts       = (const enum PixelFormat[]){ PIX_FMT_PAL8, PIX_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"),
}

Definition at line 338 of file zmbvenc.c.

int score_tab[256] [static]

Definition at line 60 of file zmbvenc.c.

Referenced by block_cmp(), dct_quantize_trellis_c(), and encode_init().


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8