#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "avcodec.h"#include "dsputil.h"Go to the source code of this file.
Data Structures | |
| struct | VqaContext |
Defines | |
| #define | PALETTE_COUNT 256 |
| #define | VQA_HEADER_SIZE 0x2A |
| #define | CHUNK_PREAMBLE_SIZE 8 |
| #define | MAX_CODEBOOK_VECTORS 0xFF00 |
| #define | SOLID_PIXEL_VECTORS 0x100 |
| #define | MAX_VECTORS (MAX_CODEBOOK_VECTORS + SOLID_PIXEL_VECTORS) |
| #define | MAX_CODEBOOK_SIZE (MAX_VECTORS * 4 * 4) |
| #define | CBF0_TAG MKBETAG('C', 'B', 'F', '0') |
| #define | CBFZ_TAG MKBETAG('C', 'B', 'F', 'Z') |
| #define | CBP0_TAG MKBETAG('C', 'B', 'P', '0') |
| #define | CBPZ_TAG MKBETAG('C', 'B', 'P', 'Z') |
| #define | CPL0_TAG MKBETAG('C', 'P', 'L', '0') |
| #define | CPLZ_TAG MKBETAG('C', 'P', 'L', 'Z') |
| #define | VPTZ_TAG MKBETAG('V', 'P', 'T', 'Z') |
| #define | VQA_DEBUG 0 |
| #define | CHECK_COUNT() |
Functions | |
| static void | vqa_debug (const char *format,...) |
| static int | vqa_decode_init (AVCodecContext *avctx) |
| static void | decode_format80 (unsigned char *src, int src_size, unsigned char *dest, int dest_size, int check_size) |
| static void | vqa_decode_chunk (VqaContext *s) |
| static int | vqa_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | vqa_decode_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | vqa_decoder |
| #define CBF0_TAG MKBETAG('C', 'B', 'F', '0') |
| #define CBFZ_TAG MKBETAG('C', 'B', 'F', 'Z') |
| #define CBP0_TAG MKBETAG('C', 'B', 'P', '0') |
| #define CBPZ_TAG MKBETAG('C', 'B', 'P', 'Z') |
| #define CHECK_COUNT | ( | ) |
Value:
if (dest_index + count > dest_size) { \ av_log(NULL, AV_LOG_ERROR, " VQA video: decode_format80 problem: next op would overflow dest_index\n"); \ av_log(NULL, AV_LOG_ERROR, " VQA video: current dest_index = %d, count = %d, dest_size = %d\n", \ dest_index, count, dest_size); \ return; \ }
Definition at line 197 of file vqavideo.c.
Referenced by decode_format80(), and mpegts_probe().
| #define CHUNK_PREAMBLE_SIZE 8 |
Definition at line 76 of file vqavideo.c.
Referenced by ipmovie_read_header(), process_ipmovie_chunk(), and vqa_decode_chunk().
| #define CPL0_TAG MKBETAG('C', 'P', 'L', '0') |
| #define CPLZ_TAG MKBETAG('C', 'P', 'L', 'Z') |
| #define MAX_CODEBOOK_SIZE (MAX_VECTORS * 4 * 4) |
| #define MAX_CODEBOOK_VECTORS 0xFF00 |
Definition at line 80 of file vqavideo.c.
| #define MAX_VECTORS (MAX_CODEBOOK_VECTORS + SOLID_PIXEL_VECTORS) |
Definition at line 82 of file vqavideo.c.
| #define PALETTE_COUNT 256 |
Definition at line 74 of file vqavideo.c.
Referenced by idcin_decode_frame(), ipvideo_decode_opcodes(), vmd_decode(), vmdvideo_decode_frame(), vmdvideo_decode_init(), vqa_decode_frame(), and wc3_read_packet().
| #define SOLID_PIXEL_VECTORS 0x100 |
Definition at line 81 of file vqavideo.c.
| #define VPTZ_TAG MKBETAG('V', 'P', 'T', 'Z') |
| #define VQA_DEBUG 0 |
Definition at line 93 of file vqavideo.c.
| #define VQA_HEADER_SIZE 0x2A |
| static void decode_format80 | ( | unsigned char * | src, | |
| int | src_size, | |||
| unsigned char * | dest, | |||
| int | dest_size, | |||
| int | check_size | |||
| ) | [static] |
| static void vqa_debug | ( | const char * | format, | |
| ... | ||||
| ) | [inline, static] |
| static void vqa_decode_chunk | ( | VqaContext * | s | ) | [static] |
| static int vqa_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 598 of file vqavideo.c.
| static int vqa_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 568 of file vqavideo.c.
| static int vqa_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 132 of file vqavideo.c.
Initial value:
{
"vqavideo",
CODEC_TYPE_VIDEO,
CODEC_ID_WS_VQA,
sizeof(VqaContext),
vqa_decode_init,
NULL,
vqa_decode_end,
vqa_decode_frame,
CODEC_CAP_DR1,
}
Definition at line 612 of file vqavideo.c.
1.5.6