#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "avcodec.h"
#include "bswap.h"
Go to the source code of this file.
Data Structures | |
struct | FlicDecodeContext |
Defines | |
#define | FLI_256_COLOR 4 |
#define | FLI_DELTA 7 |
#define | FLI_COLOR 11 |
#define | FLI_LC 12 |
#define | FLI_BLACK 13 |
#define | FLI_BRUN 15 |
#define | FLI_COPY 16 |
#define | FLI_MINI 18 |
#define | FLI_DTA_BRUN 25 |
#define | FLI_DTA_COPY 26 |
#define | FLI_DTA_LC 27 |
#define | FLI_TYPE_CODE (0xAF11) |
#define | FLC_FLX_TYPE_CODE (0xAF12) |
#define | FLC_DTA_TYPE_CODE (0xAF44) |
#define | FLC_MAGIC_CARPET_SYNTHETIC_TYPE_CODE (0xAF13) |
#define | CHECK_PIXEL_PTR(n) |
Functions | |
static int | flic_decode_init (AVCodecContext *avctx) |
static int | flic_decode_frame_8BPP (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
static int | flic_decode_frame_15_16BPP (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
static int | flic_decode_frame_24BPP (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
static int | flic_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
static int | flic_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | flic_decoder |
#define CHECK_PIXEL_PTR | ( | n | ) |
Value:
if (pixel_ptr + n > pixel_limit) { \ av_log (s->avctx, AV_LOG_INFO, "Problem: pixel_ptr >= pixel_limit (%d >= %d)\n", \ pixel_ptr + n, pixel_limit); \ return -1; \ } \
Definition at line 63 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), qtrle_decode_16bpp(), qtrle_decode_24bpp(), qtrle_decode_32bpp(), qtrle_decode_4bpp(), and qtrle_decode_8bpp().
#define FLC_DTA_TYPE_CODE (0xAF44) |
Definition at line 60 of file flicvideo.c.
#define FLC_FLX_TYPE_CODE (0xAF12) |
#define FLC_MAGIC_CARPET_SYNTHETIC_TYPE_CODE (0xAF13) |
Definition at line 61 of file flicvideo.c.
Referenced by flic_decode_frame_8BPP(), and flic_decode_init().
#define FLI_256_COLOR 4 |
Definition at line 46 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_BLACK 13 |
Definition at line 50 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_BRUN 15 |
Definition at line 51 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_COLOR 11 |
Definition at line 48 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_COPY 16 |
Definition at line 52 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_DELTA 7 |
Definition at line 47 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_DTA_BRUN 25 |
#define FLI_DTA_COPY 26 |
#define FLI_DTA_LC 27 |
#define FLI_LC 12 |
Definition at line 49 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_MINI 18 |
Definition at line 53 of file flicvideo.c.
Referenced by flic_decode_frame_15_16BPP(), and flic_decode_frame_8BPP().
#define FLI_TYPE_CODE (0xAF11) |
Definition at line 58 of file flicvideo.c.
static int flic_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 728 of file flicvideo.c.
static int flic_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 701 of file flicvideo.c.
static int flic_decode_frame_15_16BPP | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static int flic_decode_frame_24BPP | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static int flic_decode_frame_8BPP | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static int flic_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 79 of file flicvideo.c.
Initial value:
{ "flic", CODEC_TYPE_VIDEO, CODEC_ID_FLIC, sizeof(FlicDecodeContext), flic_decode_init, NULL, flic_decode_end, flic_decode_frame, CODEC_CAP_DR1, NULL, NULL, NULL, NULL }
Definition at line 738 of file flicvideo.c.