Microsoft Video-1 encoder. More...
#include "avcodec.h"
#include "bytestream.h"
#include "libavutil/lfg.h"
#include "elbg.h"
#include "libavutil/imgutils.h"
Go to the source code of this file.
Data Structures | |
struct | Msvideo1EncContext |
Encoder context. More... | |
Defines | |
#define | SKIP_PREFIX 0x8400 |
#define | SKIPS_MAX 0x0FFF |
#define | MKRGB555(in, off) ((in[off] << 10) | (in[off + 1] << 5) | (in[off + 2])) |
Typedefs | |
typedef struct Msvideo1EncContext | Msvideo1EncContext |
Encoder context. | |
Enumerations | |
enum | MSV1Mode { MODE_SKIP = 0, MODE_FILL, MODE_2COL, MODE_8COL } |
Functions | |
static int | encode_frame (AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data) |
static av_cold int | encode_init (AVCodecContext *avctx) |
init encoder | |
static av_cold int | encode_end (AVCodecContext *avctx) |
Uninit encoder. | |
Variables | |
static const int | remap [16] = { 0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15 } |
AVCodec | ff_msvideo1_encoder |
Microsoft Video-1 encoder.
Definition in file msvideo1enc.c.
Definition at line 61 of file msvideo1enc.c.
Referenced by encode_frame().
#define SKIP_PREFIX 0x8400 |
Definition at line 59 of file msvideo1enc.c.
Referenced by encode_frame().
#define SKIPS_MAX 0x0FFF |
Definition at line 60 of file msvideo1enc.c.
Referenced by encode_frame().
typedef struct Msvideo1EncContext Msvideo1EncContext |
Encoder context.
enum MSV1Mode |
Definition at line 52 of file msvideo1enc.c.
static av_cold int encode_end | ( | AVCodecContext * | avctx | ) | [static] |
Uninit encoder.
Definition at line 283 of file msvideo1enc.c.
static int encode_frame | ( | AVCodecContext * | avctx, |
uint8_t * | buf, | ||
int | buf_size, | ||
void * | data | ||
) | [static] |
Definition at line 65 of file msvideo1enc.c.
static av_cold int encode_init | ( | AVCodecContext * | avctx | ) | [static] |
init encoder
Definition at line 256 of file msvideo1enc.c.
{ .name = "msvideo1", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_MSVIDEO1, .priv_data_size = sizeof(Msvideo1EncContext), .init = encode_init, .encode = encode_frame, .close = encode_end, .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB555, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("Microsoft Video-1"), }
Definition at line 292 of file msvideo1enc.c.
const int remap[16] = { 0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15 } [static] |
Definition at line 63 of file msvideo1enc.c.
Referenced by dv_calc_mb_coordinates(), and encode_frame().