#include <stdio.h>
#include <stdlib.h>
#include "avcodec.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures | |
| struct | VBDecContext |
Enumerations | |
| enum | VBFlags { VB_HAS_GMC = 0x01, VB_HAS_AUDIO = 0x04, VB_HAS_VIDEO = 0x08, VB_HAS_PALETTE = 0x10, VB_HAS_LENGTH = 0x20, VB_HAS_GMC = 0x01, VB_HAS_AUDIO = 0x04, VB_HAS_VIDEO = 0x08, VB_HAS_PALETTE = 0x10, VB_HAS_LENGTH = 0x20 } |
Functions | |
| static void | vb_decode_palette (VBDecContext *c, int data_size) |
| static int | check_pixel (uint8_t *buf, uint8_t *start, uint8_t *end) |
| static int | check_line (uint8_t *buf, uint8_t *start, uint8_t *end) |
| static int | vb_decode_framedata (VBDecContext *c, const uint8_t *buf, int data_size, int offset) |
| static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
| static av_cold int | decode_init (AVCodecContext *avctx) |
| static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
| static const uint16_t | vb_patterns [64] |
| AVCodec | ff_vb_decoder |
Definition in file vb.c.
| enum VBFlags |
| static int check_line | ( | uint8_t * | buf, | |
| uint8_t * | start, | |||
| uint8_t * | end | |||
| ) | [inline, static] |
| static int check_pixel | ( | uint8_t * | buf, | |
| uint8_t * | start, | |||
| uint8_t * | end | |||
| ) | [inline, static] |
| static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
| static int decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
| static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static int vb_decode_framedata | ( | VBDecContext * | c, | |
| const uint8_t * | buf, | |||
| int | data_size, | |||
| int | offset | |||
| ) | [static] |
| static void vb_decode_palette | ( | VBDecContext * | c, | |
| int | data_size | |||
| ) | [static] |
Initial value:
{
"vb",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_VB,
sizeof(VBDecContext),
decode_init,
NULL,
decode_end,
decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("Beam Software VB"),
}
const uint16_t vb_patterns[64] [static] |
Initial value:
{
0x0660, 0xFF00, 0xCCCC, 0xF000, 0x8888, 0x000F, 0x1111, 0xFEC8,
0x8CEF, 0x137F, 0xF731, 0xC800, 0x008C, 0x0013, 0x3100, 0xCC00,
0x00CC, 0x0033, 0x3300, 0x0FF0, 0x6666, 0x00F0, 0x0F00, 0x2222,
0x4444, 0xF600, 0x8CC8, 0x006F, 0x1331, 0x318C, 0xC813, 0x33CC,
0x6600, 0x0CC0, 0x0066, 0x0330, 0xF900, 0xC88C, 0x009F, 0x3113,
0x6000, 0x0880, 0x0006, 0x0110, 0xCC88, 0xFC00, 0x00CF, 0x88CC,
0x003F, 0x1133, 0x3311, 0xF300, 0x6FF6, 0x0603, 0x08C6, 0x8C63,
0xC631, 0x6310, 0xC060, 0x0136, 0x136C, 0x36C8, 0x6C80, 0x324C
}
Definition at line 50 of file vb.c.
Referenced by vb_decode_framedata().
1.5.8