#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | cvid_codebook |
struct | cvid_strip |
struct | CinepakContext |
Defines | |
#define | MAX_STRIPS 32 |
Functions | |
static void | cinepak_decode_codebook (cvid_codebook *codebook, int chunk_id, int size, const uint8_t *data) |
static int | cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) |
static int | cinepak_decode_strip (CinepakContext *s, cvid_strip *strip, const uint8_t *data, int size) |
static int | cinepak_decode (CinepakContext *s) |
static av_cold int | cinepak_decode_init (AVCodecContext *avctx) |
static int | cinepak_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static av_cold int | cinepak_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_cinepak_decoder |
For more information on the quirky data inside Sega FILM/CPK files, visit: http://wiki.multimedia.cx/index.php?title=Sega_FILM
Definition in file cinepak.c.
#define MAX_STRIPS 32 |
static int cinepak_decode | ( | CinepakContext * | s | ) | [static] |
static void cinepak_decode_codebook | ( | cvid_codebook * | codebook, | |
int | chunk_id, | |||
int | size, | |||
const uint8_t * | data | |||
) | [static] |
static av_cold int cinepak_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int cinepak_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int cinepak_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int cinepak_decode_strip | ( | CinepakContext * | s, | |
cvid_strip * | strip, | |||
const uint8_t * | data, | |||
int | size | |||
) | [static] |
static int cinepak_decode_vectors | ( | CinepakContext * | s, | |
cvid_strip * | strip, | |||
int | chunk_id, | |||
int | size, | |||
const uint8_t * | data | |||
) | [static] |
Initial value:
{ .name = "cinepak", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_CINEPAK, .priv_data_size = sizeof(CinepakContext), .init = cinepak_decode_init, .close = cinepak_decode_end, .decode = cinepak_decode_frame, .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Cinepak"), }