FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rscc.c File Reference

innoHeim/Rsupport Screen Capture Codec decoder More...

#include <stdint.h>
#include <string.h>
#include <zlib.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  Tile
 
struct  RsccContext
 

Macros

#define TILE_SIZE   8
 

Functions

static av_cold int rscc_init (AVCodecContext *avctx)
 
static av_cold int rscc_close (AVCodecContext *avctx)
 
static int rscc_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_rscc_decoder
 

Detailed Description

innoHeim/Rsupport Screen Capture Codec decoder

Fourcc: ISCC, RSCC

Lossless codec, data stored in tiles, with optional deflate compression.

Header contains the number of tiles in a frame with the tile coordinates, and it can be deflated or not. Similarly, pixel data comes after the header and a variable size value, and it can be deflated or just raw.

Supports: PAL8, BGRA, BGR24, RGB555

Definition in file rscc.c.

Macro Definition Documentation

#define TILE_SIZE   8

Definition at line 48 of file rscc.c.

Referenced by rscc_decode_frame().

Function Documentation

static av_cold int rscc_init ( AVCodecContext avctx)
static

Definition at line 69 of file rscc.c.

static av_cold int rscc_close ( AVCodecContext avctx)
static

Definition at line 127 of file rscc.c.

static int rscc_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 138 of file rscc.c.

Variable Documentation

AVCodec ff_rscc_decoder
Initial value:
= {
.name = "rscc",
.long_name = NULL_IF_CONFIG_SMALL("innoHeim/Rsupport Screen Capture Codec"),
.init = rscc_init,
.decode = rscc_decode_frame,
.close = rscc_close,
.priv_data_size = sizeof(RsccContext),
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int rscc_init(AVCodecContext *avctx)
Definition: rscc.c:69
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int rscc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: rscc.c:138
static av_cold int rscc_close(AVCodecContext *avctx)
Definition: rscc.c:127
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:956

Definition at line 343 of file rscc.c.