#include <stdio.h>
#include <stdlib.h>
#include "avcodec.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) |
| 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) |
| Motion estimation function TODO make better ME decisions. | |
| static int | encode_frame (AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data) |
| static int | encode_init (AVCodecContext *avctx) |
| Init zmbv encoder. | |
| static int | encode_end (AVCodecContext *avctx) |
| Uninit zmbv encoder. | |
Variables | |
| AVCodec | zmbv_encoder |
Definition in file zmbvenc.c.
| #define ZMBV_BLOCK 16 |
Definition at line 37 of file zmbvenc.c.
Referenced by encode_frame(), encode_init(), and zmbv_me().
| static int block_cmp | ( | uint8_t * | src, | |
| int | stride, | |||
| uint8_t * | src2, | |||
| int | stride2, | |||
| int | bw, | |||
| int | bh | |||
| ) | [inline, static] |
Block comparing function XXX should be optimized and moved to DSPContext TODO handle out of edge ME.
Definition at line 61 of file zmbvenc.c.
Referenced by zmbv_me().
| static int encode_end | ( | AVCodecContext * | avctx | ) | [static] |
| static int encode_frame | ( | AVCodecContext * | avctx, | |
| uint8_t * | buf, | |||
| int | buf_size, | |||
| void * | data | |||
| ) | [static] |
| static int encode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static int zmbv_me | ( | ZmbvEncContext * | c, | |
| uint8_t * | src, | |||
| int | sstride, | |||
| uint8_t * | prev, | |||
| int | pstride, | |||
| int | x, | |||
| int | y, | |||
| int * | mx, | |||
| int * | my | |||
| ) | [static] |
Motion estimation function TODO make better ME decisions.
Definition at line 78 of file zmbvenc.c.
Referenced by encode_frame().
Initial value:
{
"zmbv",
CODEC_TYPE_VIDEO,
CODEC_ID_ZMBV,
sizeof(ZmbvEncContext),
encode_init,
encode_frame,
encode_end,
.pix_fmts = (enum PixelFormat[]){PIX_FMT_PAL8, -1},
}
1.5.6