FFmpeg
|
fraps.c File Reference
Lossless Fraps 'FPS1' decoder. More...
#include "avcodec.h"
#include "get_bits.h"
#include "huffman.h"
#include "bytestream.h"
#include "dsputil.h"
#include "internal.h"
#include "thread.h"
Include dependency graph for fraps.c:
Go to the source code of this file.
Data Structures | |
struct | FrapsContext |
local variable storage More... | |
Macros | |
#define | FPS_TAG MKTAG('F', 'P', 'S', 'x') |
Typedefs | |
typedef struct FrapsContext | FrapsContext |
local variable storage More... | |
Functions | |
static av_cold int | decode_init (AVCodecContext *avctx) |
initializes decoder More... | |
static int | huff_cmp (const void *va, const void *vb) |
Comparator - our nodes should ascend by count but with preserved symbol order. More... | |
static int | fraps2_decode_plane (FrapsContext *s, uint8_t *dst, int stride, int w, int h, const uint8_t *src, int size, int Uoff, const int step) |
decode Fraps v2 packed plane More... | |
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | decode_end (AVCodecContext *avctx) |
closes decoder More... | |
Variables | |
AVCodec | ff_fraps_decoder |
Detailed Description
Lossless Fraps 'FPS1' decoder.
Codec algorithm for version 0 is taken from Transcode <www.transcoding.org>
Version 2 files support by Konstantin Shishkov
Definition in file fraps.c.
Macro Definition Documentation
Definition at line 42 of file fraps.c.
Referenced by decode_frame().
Typedef Documentation
typedef struct FrapsContext FrapsContext |
local variable storage
Function Documentation
|
static |
|
static |
|
static |
|
static |
Comparator - our nodes should ascend by count but with preserved symbol order.
Definition at line 76 of file fraps.c.
Referenced by fraps2_decode_plane().
Variable Documentation
AVCodec ff_fraps_decoder |
Initial value:
= {
.name = "fraps",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_FRAPS,
.priv_data_size = sizeof(FrapsContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("Fraps"),
}
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
Definition: libavcodec/avcodec.h:179
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: fraps.c:127
#define CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: libavcodec/avcodec.h:810
Definition: avutil.h:143
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
Generated on Mon Nov 18 2024 06:52:06 for FFmpeg by 1.8.11