FFmpeg  2.1.1
Data Structures | Macros | Functions | Variables
rpza.c File Reference

QT RPZA Video Decoder by Roberto Togni For more information about the RPZA 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"

Go to the source code of this file.

Data Structures

struct  RpzaContext
 

Macros

#define ADVANCE_BLOCK()
 

Functions

static void rpza_decode_stream (RpzaContext *s)
 
static av_cold int rpza_decode_init (AVCodecContext *avctx)
 
static int rpza_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int rpza_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_rpza_decoder
 

Detailed Description

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

The RPZA decoder outputs RGB555 colorspace data.

Note that this decoder reads big endian RGB555 pixel values from the bytestream, arranges them in the host's endian order, and outputs them to the final rendered map in the same host endian order. This is intended behavior as the libavcodec documentation states that RGB555 pixels shall be stored in native CPU endianness.

Definition in file rpza.c.

Macro Definition Documentation

#define ADVANCE_BLOCK ( )
Value:
{ \
pixel_ptr += 4; \
if (pixel_ptr >= width) \
{ \
pixel_ptr = 0; \
row_ptr += stride * 4; \
} \
total_blocks--; \
if (total_blocks < 0) \
{ \
av_log(s->avctx, AV_LOG_ERROR, "warning: block counter just went negative (this should not happen)\n"); \
} \
}
const char * s
Definition: avisynth_c.h:668
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
int stride
Definition: mace.c:144
if((e=av_dict_get(options,"", NULL, AV_DICT_IGNORE_SUFFIX)))
Definition: avfilter.c:965
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: avcodec.h:4147
return
static int width
Definition: utils.c:158

Definition at line 56 of file rpza.c.

Referenced by rpza_decode_stream().

Function Documentation

static void rpza_decode_stream ( RpzaContext s)
static

Definition at line 72 of file rpza.c.

Referenced by rpza_decode_frame().

static av_cold int rpza_decode_init ( AVCodecContext avctx)
static

Definition at line 235 of file rpza.c.

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

Definition at line 247 of file rpza.c.

static av_cold int rpza_decode_end ( AVCodecContext avctx)
static

Definition at line 273 of file rpza.c.

Variable Documentation

AVCodec ff_rpza_decoder
Initial value:
= {
.name = "rpza",
.long_name = NULL_IF_CONFIG_SMALL("QuickTime video (RPZA)"),
.priv_data_size = sizeof(RpzaContext),
.capabilities = CODEC_CAP_DR1,
}
static int rpza_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: rpza.c:247
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.
Definition: avcodec.h:742
static av_cold int rpza_decode_end(AVCodecContext *avctx)
Definition: rpza.c:273
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:151
static av_cold int rpza_decode_init(AVCodecContext *avctx)
Definition: rpza.c:235
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:538
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 282 of file rpza.c.