FFmpeg
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
mxf.h File Reference
#include "avformat.h"
#include "libavcodec/avcodec.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  MXFContentPackageRate
 
struct  KLVPacket
 
struct  MXFLocalTagPair
 
struct  MXFCodecUL
 

Macros

#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 uint8_t UID[16]
 

Enumerations

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

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_mastering_display_prefix [13]
 
const MXFLocalTagPair ff_mxf_mastering_display_local_tags [4]
 
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

#define FF_MXF_MASTERING_CHROMA_DEN   50000

Definition at line 89 of file mxf.h.

Referenced by mxf_read_generic_descriptor(), and rescale_mastering_chroma().

#define FF_MXF_MASTERING_LUMA_DEN   10000

Definition at line 90 of file mxf.h.

Referenced by mxf_read_generic_descriptor(), and rescale_mastering_luma().

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

Definition at line 113 of file mxf.h.

Referenced by mxf_read_header().

#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 119 of file mxf.h.

Referenced by mxf_read_header().

#define PRINT_KEY (   pc,
  s,
 
)
Value:
do { if(0) \
"%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)
#define UID_ARG(x)
Definition: mxf.h:119
#define AV_LOG_VERBOSE
Detailed information.
Definition: log.h:210
#define av_log(a,...)
#define s(width, name)
Definition: cbs_vp9.c:257

Definition at line 142 of file mxf.h.

Referenced by mxf_parse_structural_metadata(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet(), mxf_write_content_storage(), mxf_write_header(), mxf_write_identification(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_preface(), mxf_write_sequence(), mxf_write_structural_component(), mxf_write_tape_descriptor(), and mxf_write_track().

Typedef Documentation

typedef uint8_t UID[16]

Definition at line 28 of file mxf.h.

Enumeration Type Documentation

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

Definition at line 30 of file mxf.h.

Enumerator
FullFrame 
SeparateFields 
OneField 
MixedFields 
SegmentedFrame 

Definition at line 54 of file mxf.h.

Enumerator
NormalWrap 
D10D11Wrap 
RawAWrap 
RawVWrap 

Definition at line 74 of file mxf.h.

Function Documentation

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

Definition at line 180 of file mxf.c.

Referenced by mxf_read_pixel_layout().

int ff_mxf_get_content_package_rate ( AVRational  time_base)

Definition at line 222 of file mxf.c.

Referenced by mxf_init_timecode(), and mxf_write_header().

Variable Documentation

const uint8_t ff_mxf_mastering_display_prefix[13]

Definition at line 25 of file mxf.c.

Referenced by mxf_read_generic_descriptor().

const MXFLocalTagPair ff_mxf_mastering_display_local_tags[4]

Definition at line 29 of file mxf.c.

Referenced by mxf_read_generic_descriptor(), mxf_write_cdci_common(), and mxf_write_primer_pack().

const MXFCodecUL ff_mxf_data_definition_uls[]
const MXFCodecUL ff_mxf_codec_uls[]

Definition at line 48 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

const MXFCodecUL ff_mxf_pixel_format_uls[]

Definition at line 89 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

const MXFCodecUL ff_mxf_codec_tag_uls[]

Definition at line 95 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

const MXFCodecUL ff_mxf_color_primaries_uls[]

Definition at line 100 of file mxf.c.

Referenced by mxf_parse_structural_metadata(), and mxf_write_cdci_common().

const MXFCodecUL ff_mxf_color_trc_uls[]

Definition at line 115 of file mxf.c.

Referenced by mxf_parse_structural_metadata(), and mxf_write_cdci_common().

const MXFCodecUL ff_mxf_color_space_uls[]

Definition at line 136 of file mxf.c.

Referenced by mxf_parse_structural_metadata(), and mxf_write_cdci_common().