FFmpeg
|
cinepak.c File Reference
Cinepak video decoder. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
Include dependency graph for cinepak.c:
Go to the source code of this file.
Data Structures | |
struct | cvid_strip |
struct | CinepakContext |
Macros | |
#define | MAX_STRIPS 32 |
Typedefs | |
typedef uint8_t | cvid_codebook[12] |
typedef struct CinepakContext | CinepakContext |
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 *got_frame, AVPacket *avpkt) |
static av_cold int | cinepak_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_cinepak_decoder |
Detailed Description
Cinepak video decoder.
- See also
- For more information on the Cinepak algorithm, visit: http://www.csse.monash.edu.au/~timf/
- For more information on the quirky data inside Sega FILM/CPK files, visit: http://wiki.multimedia.cx/index.php?title=Sega_FILM
Cinepak colorspace support (c) 2013 Rl, Aetey Global Technologies AB
Definition in file cinepak.c.
Macro Definition Documentation
#define MAX_STRIPS 32 |
Definition at line 48 of file cinepak.c.
Referenced by cinepak_decode().
Typedef Documentation
typedef struct CinepakContext CinepakContext |
Function Documentation
|
static |
Definition at line 318 of file cinepak.c.
Referenced by cinepak_decode_frame().
|
static |
Definition at line 76 of file cinepak.c.
Referenced by cinepak_decode_strip().
|
static |
|
static |
|
static |
|
static |
Definition at line 266 of file cinepak.c.
Referenced by cinepak_decode().
|
static |
Definition at line 132 of file cinepak.c.
Referenced by cinepak_decode_strip().
Variable Documentation
AVCodec ff_cinepak_decoder |
Initial value:
= {
.name = "cinepak",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_CINEPAK,
.priv_data_size = sizeof(CinepakContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Cinepak"),
}
static int cinepak_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: cinepak.c:431
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: libavcodec/avcodec.h:146
static av_cold int cinepak_decode_init(AVCodecContext *avctx)
Definition: cinepak.c:405
Definition: avutil.h:143
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
struct CinepakContext CinepakContext
static av_cold int cinepak_decode_end(AVCodecContext *avctx)
Definition: cinepak.c:469
Generated on Mon Nov 18 2024 06:52:05 for FFmpeg by 1.8.11