FFmpeg
Data Structures | Functions | Variables
8bps.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  EightBpsContext
 

Functions

static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

const FFCodec ff_eightbps_decoder
 

Detailed Description

QT 8BPS Video Decoder by Roberto Togni For more information about the 8BPS format, visit: http://www.pcisys.net/~melanson/codecs/

Supports: PAL8 (RGB 8bpp, paletted) : GBRP (RGB 24bpp) : GBRAP (RGB 32bpp, 4th plane is alpha)

Definition in file 8bps.c.

Function Documentation

◆ decode_frame()

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

Definition at line 48 of file 8bps.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 131 of file 8bps.c.

Variable Documentation

◆ ff_eightbps_decoder

const FFCodec ff_eightbps_decoder
Initial value:
= {
.p.name = "8bps",
CODEC_LONG_NAME("QuickTime 8BPS video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(EightBpsContext),
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 169 of file 8bps.c.

decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: 8bps.c:131
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
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
AV_CODEC_ID_8BPS
@ AV_CODEC_ID_8BPS
Definition: codec_id.h:100
EightBpsContext
Definition: 8bps.c:41
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: 8bps.c:48