FFmpeg
Data Structures | Macros | Functions | Variables
rscc.c File Reference
#include <stdint.h>
#include <string.h>
#include <zlib.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec 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

◆ TILE_SIZE

#define TILE_SIZE   8

Definition at line 49 of file rscc.c.

Function Documentation

◆ rscc_init()

static av_cold int rscc_init ( AVCodecContext avctx)
static

Definition at line 71 of file rscc.c.

◆ rscc_close()

static av_cold int rscc_close ( AVCodecContext avctx)
static

Definition at line 139 of file rscc.c.

◆ rscc_decode_frame()

static int rscc_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 150 of file rscc.c.

Variable Documentation

◆ ff_rscc_decoder

const FFCodec ff_rscc_decoder
Initial value:
= {
.p.name = "rscc",
CODEC_LONG_NAME("innoHeim/Rsupport Screen Capture Codec"),
.p.type = AVMEDIA_TYPE_VIDEO,
.init = rscc_init,
.close = rscc_close,
.priv_data_size = sizeof(RsccContext),
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 371 of file rscc.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:42
rscc_decode_frame
static int rscc_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: rscc.c:150
AV_CODEC_ID_RSCC
@ AV_CODEC_ID_RSCC
Definition: codec_id.h:245
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
rscc_close
static av_cold int rscc_close(AVCodecContext *avctx)
Definition: rscc.c:139
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
rscc_init
static av_cold int rscc_init(AVCodecContext *avctx)
Definition: rscc.c:71
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
RsccContext
Definition: rscc.c:56