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 <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/internal.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  RpzaContext


#define CHECK_BLOCK()


static int 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)


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 CHECK_BLOCK ( )
if (total_blocks < 1) { \
"Block counter just went negative (this should not happen)\n"); \
} \
Invalid data found when processing input.
Definition: error.h:59
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:194
#define s(width, name)
Definition: cbs_vp9.c:257
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return

Definition at line 55 of file rpza.c.

Referenced by rpza_decode_stream().

#define ADVANCE_BLOCK ( )
{ \
pixel_ptr += 4; \
if (pixel_ptr >= width) \
{ \
pixel_ptr = 0; \
row_ptr += stride * 4; \
} \
total_blocks--; \
#define width
GLint GLenum GLboolean GLsizei stride
Definition: opengl_enc.c:104

Definition at line 62 of file rpza.c.

Referenced by rpza_decode_stream().

Function Documentation

static int rpza_decode_stream ( RpzaContext s)

Definition at line 73 of file rpza.c.

Referenced by rpza_decode_frame().

static av_cold int rpza_decode_init ( AVCodecContext avctx)

Definition at line 244 of file rpza.c.

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

Definition at line 258 of file rpza.c.

static av_cold int rpza_decode_end ( AVCodecContext avctx)

Definition at line 280 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),
.close = rpza_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
static int rpza_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: rpza.c:258
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
static av_cold int rpza_decode_end(AVCodecContext *avctx)
Definition: rpza.c:280
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static av_cold int rpza_decode_init(AVCodecContext *avctx)
Definition: rpza.c:244
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 289 of file rpza.c.