FFmpeg
Enumerations | Functions | Variables
dpx.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "libavutil/imgutils.h"
#include "libavutil/timecode.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Enumerations

enum  DPX_TRC {
  DPX_TRC_USER_DEFINED = 0, DPX_TRC_PRINTING_DENSITY = 1, DPX_TRC_LINEAR = 2, DPX_TRC_LOGARITHMIC = 3,
  DPX_TRC_UNSPECIFIED_VIDEO = 4, DPX_TRC_SMPTE_274 = 5, DPX_TRC_ITU_R_709_4 = 6, DPX_TRC_ITU_R_601_625 = 7,
  DPX_TRC_ITU_R_601_525 = 8, DPX_TRC_SMPTE_170 = 9, DPX_TRC_ITU_R_624_4_PAL = 10, DPX_TRC_Z_LINEAR = 11,
  DPX_TRC_Z_HOMOGENEOUS = 12
}
 
enum  DPX_COL_SPEC {
  DPX_COL_SPEC_USER_DEFINED = 0, DPX_COL_SPEC_PRINTING_DENSITY = 1, DPX_COL_SPEC_UNSPECIFIED_VIDEO = 4, DPX_COL_SPEC_SMPTE_274 = 5,
  DPX_COL_SPEC_ITU_R_709_4 = 6, DPX_COL_SPEC_ITU_R_601_625 = 7, DPX_COL_SPEC_ITU_R_601_525 = 8, DPX_COL_SPEC_SMPTE_170 = 9,
  DPX_COL_SPEC_ITU_R_624_4_PAL = 10
}
 

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_gray (const uint8_t **ptr, uint32_t *lbuf, int *n_datum, int is_big, int shift)
 
static uint16_t read10in32 (const uint8_t **ptr, uint32_t *lbuf, int *n_datum, int is_big, int shift)
 
static uint16_t read12in32 (const uint8_t **ptr, uint32_t *lbuf, int *n_datum, int is_big)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_dpx_decoder
 

Enumeration Type Documentation

◆ DPX_TRC

enum DPX_TRC
Enumerator
DPX_TRC_USER_DEFINED 
DPX_TRC_PRINTING_DENSITY 
DPX_TRC_LINEAR 
DPX_TRC_LOGARITHMIC 
DPX_TRC_UNSPECIFIED_VIDEO 
DPX_TRC_SMPTE_274 
DPX_TRC_ITU_R_709_4 
DPX_TRC_ITU_R_601_625 
DPX_TRC_ITU_R_601_525 
DPX_TRC_SMPTE_170 
DPX_TRC_ITU_R_624_4_PAL 
DPX_TRC_Z_LINEAR 
DPX_TRC_Z_HOMOGENEOUS 

Definition at line 31 of file dpx.c.

◆ DPX_COL_SPEC

Enumerator
DPX_COL_SPEC_USER_DEFINED 
DPX_COL_SPEC_PRINTING_DENSITY 
DPX_COL_SPEC_UNSPECIFIED_VIDEO 
DPX_COL_SPEC_SMPTE_274 
DPX_COL_SPEC_ITU_R_709_4 
DPX_COL_SPEC_ITU_R_601_625 
DPX_COL_SPEC_ITU_R_601_525 
DPX_COL_SPEC_SMPTE_170 
DPX_COL_SPEC_ITU_R_624_4_PAL 

Definition at line 47 of file dpx.c.

Function Documentation

◆ read16()

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

Definition at line 63 of file dpx.c.

Referenced by decode_frame().

◆ read32()

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

Definition at line 75 of file dpx.c.

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

◆ read10in32_gray()

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

Definition at line 87 of file dpx.c.

Referenced by decode_frame().

◆ read10in32()

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

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

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 152 of file dpx.c.

Variable Documentation

◆ ff_dpx_decoder

const FFCodec ff_dpx_decoder
Initial value:
= {
.p.name = "dpx",
CODEC_LONG_NAME("DPX (Digital Picture Exchange) image"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_DPX,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 767 of file dpx.c.

AV_CODEC_ID_DPX
@ AV_CODEC_ID_DPX
Definition: codec_id.h:180
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: dpx.c:152
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201