FFmpeg
|
RL2 Video Decoder. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | Rl2Context |
Macros | |
#define | EXTRADATA1_SIZE (6 + 256 * 3) |
video base, clr count, palette More... | |
Typedefs | |
typedef struct Rl2Context | Rl2Context |
Functions | |
static void | rl2_rle_decode (Rl2Context *s, const uint8_t *in, int size, uint8_t *out, int stride, int video_base) |
Run Length Decode a single 320x200 frame. More... | |
static av_cold int | rl2_decode_init (AVCodecContext *avctx) |
Initialize the decoder. More... | |
static int | rl2_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | rl2_decode_end (AVCodecContext *avctx) |
Uninit decoder. More... | |
Variables | |
AVCodec | ff_rl2_decoder |
Detailed Description
RL2 Video Decoder.
Definition in file libavcodec/rl2.c.
Macro Definition Documentation
#define EXTRADATA1_SIZE (6 + 256 * 3) |
video base, clr count, palette
Definition at line 40 of file libavcodec/rl2.c.
Referenced by rl2_decode_init().
Typedef Documentation
typedef struct Rl2Context Rl2Context |
Function Documentation
|
static |
Uninit decoder.
- Parameters
-
avctx decoder context
- Returns
- 0 success, -1 on error
Definition at line 206 of file libavcodec/rl2.c.
|
static |
run length decode
make the palette available on the way out
report that the buffer was completely consumed
Definition at line 175 of file libavcodec/rl2.c.
|
static |
Initialize the decoder.
- Parameters
-
avctx decoder context
- Returns
- 0 success, -1 on error
parse extra data
get frame_offset
initialize palette
decode background frame if present
Definition at line 132 of file libavcodec/rl2.c.
|
static |
Run Length Decode a single 320x200 frame.
- Parameters
-
s rl2 context in input buffer size input buffer size out output buffer stride stride of the output buffer video_base offset of the rle data inside the frame
copy start of the background frame
decode the variable part of the frame
copy the rest from the background frame
Definition at line 60 of file libavcodec/rl2.c.
Referenced by rl2_decode_frame(), and rl2_decode_init().
Variable Documentation
AVCodec ff_rl2_decoder |
Definition at line 216 of file libavcodec/rl2.c.
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11