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

Go to the source code of this file.

Data Structures

struct  EightBpsContext
 

Functions

static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

static enum AVPixelFormat pixfmt_rgb24 []
 
AVCodec 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) : BGR24 (RGB 24bpp) (can also output it as RGB32) : RGB32 (RGB 32bpp, 4th plane is alpha)

Definition in file 8bps.c.

Function Documentation

◆ decode_frame()

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

Definition at line 55 of file 8bps.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 145 of file 8bps.c.

Variable Documentation

◆ pixfmt_rgb24

enum AVPixelFormat pixfmt_rgb24[]
static
Initial value:

Definition at line 43 of file 8bps.c.

Referenced by decode_init().

◆ ff_eightbps_decoder

AVCodec ff_eightbps_decoder
Initial value:
= {
.name = "8bps",
.long_name = NULL_IF_CONFIG_SMALL("QuickTime 8BPS video"),
.priv_data_size = sizeof(EightBpsContext),
.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 184 of file 8bps.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: 8bps.c:145
AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:69
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
AV_CODEC_ID_8BPS
@ AV_CODEC_ID_8BPS
Definition: codec_id.h:97
EightBpsContext
Definition: 8bps.c:46
AV_PIX_FMT_0RGB32
#define AV_PIX_FMT_0RGB32
Definition: pixfmt.h:374
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: 8bps.c:55
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201