Libav
Functions | Variables
dpx.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "bytestream.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Functions

static unsigned int read32 (const uint8_t **ptr, int is_big)
 
static unsigned make_16bit (unsigned value)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_dpx_decoder
 

Function Documentation

§ read32()

static unsigned int read32 ( const uint8_t **  ptr,
int  is_big 
)
static

Definition at line 28 of file dpx.c.

Referenced by decode_frame().

§ make_16bit()

static unsigned make_16bit ( unsigned  value)
inlinestatic

Definition at line 40 of file dpx.c.

Referenced by decode_frame().

§ decode_frame()

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

Definition at line 48 of file dpx.c.

Variable Documentation

§ ff_dpx_decoder

AVCodec ff_dpx_decoder
Initial value:
= {
.name = "dpx",
.long_name = NULL_IF_CONFIG_SMALL("DPX image"),
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: dpx.c:48
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145

Definition at line 212 of file dpx.c.