FFmpeg
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
mxf.h File Reference
#include <stdint.h>
#include "libavutil/log.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
#include "libavutil/uuid.h"

Go to the source code of this file.

Data Structures

struct  MXFContentPackageRate
 
struct  KLVPacket
 
struct  MXFLocalTagPair
 
struct  MXFCodecUL
 

Macros

#define FF_MXF_MasteringDisplay_PREFIX   0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01
 
#define FF_MXF_MasteringDisplayPrimaries   { FF_MXF_MasteringDisplay_PREFIX,0x01,0x00,0x00 }
 
#define FF_MXF_MasteringDisplayWhitePointChromaticity   { FF_MXF_MasteringDisplay_PREFIX,0x02,0x00,0x00 }
 
#define FF_MXF_MasteringDisplayMaximumLuminance   { FF_MXF_MasteringDisplay_PREFIX,0x03,0x00,0x00 }
 
#define FF_MXF_MasteringDisplayMinimumLuminance   { FF_MXF_MasteringDisplay_PREFIX,0x04,0x00,0x00 }
 
#define FF_MXF_MASTERING_CHROMA_DEN   50000
 
#define FF_MXF_MASTERING_LUMA_DEN   10000
 
#define PRIxUID
 
#define UID_ARG(x)
 
#define PRINT_KEY(pc, s, x)
 

Typedefs

typedef AVUUID UID
 

Enumerations

enum  MXFMetadataSetType {
  MaterialPackage = 1, SourcePackage, SourceClip, TimecodeComponent,
  PulldownComponent, Sequence, MultipleDescriptor, Descriptor,
  Track, CryptoContext, Preface, Identification,
  ContentStorage, SubDescriptor, IndexTableSegment, EssenceContainerData,
  EssenceGroup, TaggedValue, TapeDescriptor, AVCSubDescriptor,
  AudioChannelLabelSubDescriptor, SoundfieldGroupLabelSubDescriptor, GroupOfSoundfieldGroupsLabelSubDescriptor, FFV1SubDescriptor
}
 
enum  MXFFrameLayout {
  FullFrame = 0, SeparateFields, OneField, MixedFields,
  SegmentedFrame
}
 
enum  MXFWrappingIndicatorType {
  NormalWrap = 0, D10D11Wrap, RawAWrap, RawVWrap,
  J2KWrap
}
 

Functions

int ff_mxf_decode_pixel_layout (const char pixel_layout[16], enum AVPixelFormat *pix_fmt)
 
int ff_mxf_get_content_package_rate (AVRational time_base)
 

Variables

const uint8_t ff_mxf_random_index_pack_key [16]
 
const MXFCodecUL ff_mxf_data_definition_uls []
 SMPTE RP224 http://www.smpte-ra.org/mdd/index.html. More...
 
const MXFCodecUL ff_mxf_codec_uls []
 
const MXFCodecUL ff_mxf_pixel_format_uls []
 
const MXFCodecUL ff_mxf_codec_tag_uls []
 
const MXFCodecUL ff_mxf_color_primaries_uls []
 
const MXFCodecUL ff_mxf_color_trc_uls []
 
const MXFCodecUL ff_mxf_color_space_uls []
 

Macro Definition Documentation

◆ FF_MXF_MasteringDisplay_PREFIX

#define FF_MXF_MasteringDisplay_PREFIX   0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0x0e,0x04,0x20,0x04,0x01,0x01

Definition at line 94 of file mxf.h.

◆ FF_MXF_MasteringDisplayPrimaries

#define FF_MXF_MasteringDisplayPrimaries   { FF_MXF_MasteringDisplay_PREFIX,0x01,0x00,0x00 }

Definition at line 95 of file mxf.h.

◆ FF_MXF_MasteringDisplayWhitePointChromaticity

#define FF_MXF_MasteringDisplayWhitePointChromaticity   { FF_MXF_MasteringDisplay_PREFIX,0x02,0x00,0x00 }

Definition at line 96 of file mxf.h.

◆ FF_MXF_MasteringDisplayMaximumLuminance

#define FF_MXF_MasteringDisplayMaximumLuminance   { FF_MXF_MasteringDisplay_PREFIX,0x03,0x00,0x00 }

Definition at line 97 of file mxf.h.

◆ FF_MXF_MasteringDisplayMinimumLuminance

#define FF_MXF_MasteringDisplayMinimumLuminance   { FF_MXF_MasteringDisplay_PREFIX,0x04,0x00,0x00 }

Definition at line 98 of file mxf.h.

◆ FF_MXF_MASTERING_CHROMA_DEN

#define FF_MXF_MASTERING_CHROMA_DEN   50000

Definition at line 100 of file mxf.h.

◆ FF_MXF_MASTERING_LUMA_DEN

#define FF_MXF_MASTERING_LUMA_DEN   10000

Definition at line 101 of file mxf.h.

◆ PRIxUID

#define PRIxUID
Value:
"%02x.%02x.%02x.%02x." \
"%02x.%02x.%02x.%02x." \
"%02x.%02x.%02x.%02x." \
"%02x.%02x.%02x.%02x"

Definition at line 124 of file mxf.h.

◆ UID_ARG

#define UID_ARG (   x)
Value:
(x)[0], (x)[1], (x)[2], (x)[3], \
(x)[4], (x)[5], (x)[6], (x)[7], \
(x)[8], (x)[9], (x)[10], (x)[11], \
(x)[12], (x)[13], (x)[14], (x)[15] \

Definition at line 130 of file mxf.h.

◆ PRINT_KEY

#define PRINT_KEY (   pc,
  s,
 
)
Value:
do { if(0) \
av_log(pc, AV_LOG_VERBOSE, \
"%s " \
"0x%02x,0x%02x,0x%02x,0x%02x," \
"0x%02x,0x%02x,0x%02x,0x%02x," \
"0x%02x,0x%02x,0x%02x,0x%02x," \
"0x%02x,0x%02x,0x%02x,0x%02x ", \
s, UID_ARG(x)); \
}while(0)

Definition at line 153 of file mxf.h.

Typedef Documentation

◆ UID

typedef AVUUID UID

Definition at line 30 of file mxf.h.

Enumeration Type Documentation

◆ MXFMetadataSetType

Enumerator
MaterialPackage 
SourcePackage 
SourceClip 
TimecodeComponent 
PulldownComponent 
Sequence 
MultipleDescriptor 
Descriptor 
Track 
CryptoContext 
Preface 
Identification 
ContentStorage 
SubDescriptor 
IndexTableSegment 
EssenceContainerData 
EssenceGroup 
TaggedValue 
TapeDescriptor 
AVCSubDescriptor 
AudioChannelLabelSubDescriptor 
SoundfieldGroupLabelSubDescriptor 
GroupOfSoundfieldGroupsLabelSubDescriptor 
FFV1SubDescriptor 

Definition at line 32 of file mxf.h.

◆ MXFFrameLayout

Enumerator
FullFrame 
SeparateFields 
OneField 
MixedFields 
SegmentedFrame 

Definition at line 59 of file mxf.h.

◆ MXFWrappingIndicatorType

Enumerator
NormalWrap 
D10D11Wrap 
RawAWrap 
RawVWrap 
J2KWrap 

Definition at line 79 of file mxf.h.

Function Documentation

◆ ff_mxf_decode_pixel_layout()

int ff_mxf_decode_pixel_layout ( const char  pixel_layout[16],
enum AVPixelFormat pix_fmt 
)

Definition at line 177 of file mxf.c.

Referenced by mxf_read_pixel_layout().

◆ ff_mxf_get_content_package_rate()

int ff_mxf_get_content_package_rate ( AVRational  time_base)

Definition at line 219 of file mxf.c.

Referenced by mxf_init(), and mxf_init_timecode().

Variable Documentation

◆ ff_mxf_random_index_pack_key

const uint8_t ff_mxf_random_index_pack_key[16]

Definition at line 26 of file mxf.c.

Referenced by mxf_read_header(), mxf_read_random_index_pack(), and mxf_write_random_index_pack().

◆ ff_mxf_data_definition_uls

const MXFCodecUL ff_mxf_data_definition_uls[]

◆ ff_mxf_codec_uls

const MXFCodecUL ff_mxf_codec_uls[]

Definition at line 40 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

◆ ff_mxf_pixel_format_uls

const MXFCodecUL ff_mxf_pixel_format_uls[]

Definition at line 86 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

◆ ff_mxf_codec_tag_uls

const MXFCodecUL ff_mxf_codec_tag_uls[]

Definition at line 92 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

◆ ff_mxf_color_primaries_uls

const MXFCodecUL ff_mxf_color_primaries_uls[]

Definition at line 97 of file mxf.c.

Referenced by mxf_parse_structural_metadata(), and mxf_write_cdci_common().

◆ ff_mxf_color_trc_uls

const MXFCodecUL ff_mxf_color_trc_uls[]

Definition at line 112 of file mxf.c.

Referenced by mxf_parse_structural_metadata(), and mxf_write_cdci_common().

◆ ff_mxf_color_space_uls

const MXFCodecUL ff_mxf_color_space_uls[]

Definition at line 133 of file mxf.c.

Referenced by mxf_parse_structural_metadata(), and mxf_write_cdci_common().

AV_LOG_VERBOSE
#define AV_LOG_VERBOSE
Detailed information.
Definition: log.h:196
UID_ARG
#define UID_ARG(x)
Definition: mxf.h:130
s
#define s(width, name)
Definition: cbs_vp9.c:198