8bps.c File Reference

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
Include dependency graph for 8bps.c:

Go to the source code of this file.

Data Structures

struct  EightBpsContext
 

Typedefs

typedef struct EightBpsContext 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.

Typedef Documentation

Function Documentation

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

Definition at line 56 of file 8bps.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 138 of file 8bps.c.

Variable Documentation

AVCodec ff_eightbps_decoder
Initial value:
= {
.name = "8bps",
.priv_data_size = sizeof(EightBpsContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("QuickTime 8BPS video"),
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct EightBpsContext EightBpsContext
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: 8bps.c:56
static av_cold int decode_init(AVCodecContext *avctx)
Definition: 8bps.c:138
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 181 of file 8bps.c.

enum AVPixelFormat pixfmt_rgb24[]
static
Initial value:
= {
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:71
#define AV_PIX_FMT_RGB32
Definition: pixfmt.h:259

Definition at line 44 of file 8bps.c.

Referenced by decode_init().