#include <stdio.h>
#include <stdlib.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | VmncContext |
Enumerations | |
enum | EncTypes { MAGIC_WMVd = 0x574D5664, MAGIC_WMVe, MAGIC_WMVf, MAGIC_WMVg, MAGIC_WMVh, MAGIC_WMVi, MAGIC_WMVj } |
enum | HexTile_Flags { HT_RAW = 1, HT_BKG = 2, HT_FG = 4, HT_SUB = 8, HT_CLR = 16 } |
Functions | |
static av_always_inline int | vmnc_get_pixel (const uint8_t *buf, int bpp, int be) |
static void | load_cursor (VmncContext *c, const uint8_t *src) |
static void | put_cursor (uint8_t *dst, int stride, VmncContext *c, int dx, int dy) |
static av_always_inline void | paint_rect (uint8_t *dst, int dx, int dy, int w, int h, int color, int bpp, int stride) |
static av_always_inline void | paint_raw (uint8_t *dst, int w, int h, const uint8_t *src, int bpp, int be, int stride) |
static int | decode_hextile (VmncContext *c, uint8_t *dst, const uint8_t *src, int ssize, int w, int h, int stride) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | vmnc_decoder |
Definition in file vmnc.c.
enum EncTypes |
enum HexTile_Flags |
static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static int decode_hextile | ( | VmncContext * | c, | |
uint8_t * | dst, | |||
const uint8_t * | src, | |||
int | ssize, | |||
int | w, | |||
int | h, | |||
int | stride | |||
) | [static] |
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static void load_cursor | ( | VmncContext * | c, | |
const uint8_t * | src | |||
) | [static] |
static av_always_inline void paint_raw | ( | uint8_t * | dst, | |
int | w, | |||
int | h, | |||
const uint8_t * | src, | |||
int | bpp, | |||
int | be, | |||
int | stride | |||
) | [static] |
static av_always_inline void paint_rect | ( | uint8_t * | dst, | |
int | dx, | |||
int | dy, | |||
int | w, | |||
int | h, | |||
int | color, | |||
int | bpp, | |||
int | stride | |||
) | [static] |
static void put_cursor | ( | uint8_t * | dst, | |
int | stride, | |||
VmncContext * | c, | |||
int | dx, | |||
int | dy | |||
) | [static] |
static av_always_inline int vmnc_get_pixel | ( | const uint8_t * | buf, | |
int | bpp, | |||
int | be | |||
) | [static] |
Definition at line 74 of file vmnc.c.
Referenced by decode_hextile(), load_cursor(), and paint_raw().
Initial value:
{ "vmnc", CODEC_TYPE_VIDEO, CODEC_ID_VMNC, sizeof(VmncContext), decode_init, NULL, decode_end, decode_frame, .long_name = NULL_IF_CONFIG_SMALL("VMware Screen Codec / VMware Video"), }