FFmpeg  4.0
Functions | Variables
dpx.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.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 read16 (const uint8_t **ptr, int is_big)
 
static unsigned int read32 (const uint8_t **ptr, int is_big)
 
static uint16_t read10in32 (const uint8_t **ptr, uint32_t *lbuf, int *n_datum, int is_big)
 
static uint16_t read12in32 (const uint8_t **ptr, uint32_t *lbuf, int *n_datum, int is_big)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_dpx_decoder
 

Function Documentation

◆ read16()

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

Definition at line 29 of file dpx.c.

Referenced by decode_frame().

◆ read32()

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

Definition at line 41 of file dpx.c.

Referenced by decode_frame(), read10in32(), and read12in32().

◆ read10in32()

static uint16_t read10in32 ( const uint8_t **  ptr,
uint32_t *  lbuf,
int n_datum,
int  is_big 
)
static

Definition at line 53 of file dpx.c.

Referenced by decode_frame().

◆ read12in32()

static uint16_t read12in32 ( const uint8_t **  ptr,
uint32_t *  lbuf,
int n_datum,
int  is_big 
)
static

Definition at line 68 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 100 of file dpx.c.

Variable Documentation

◆ ff_dpx_decoder

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

Definition at line 459 of file dpx.c.