FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mxf.c File Reference
#include "libavutil/common.h"
#include "mxf.h"

Go to the source code of this file.

Functions

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

Variables

const MXFCodecUL ff_mxf_data_definition_uls []
 SMPTE RP224 http://www.smpte-ra.org/mdd/index.html.
 
const MXFCodecUL ff_mxf_codec_uls []
 
const MXFCodecUL ff_mxf_pixel_format_uls []
 
struct {
   enum AVPixelFormat   pix_fmt
 
   const char   data [16]
 
ff_mxf_pixel_layouts []
 
static const int num_pixel_layouts = FF_ARRAY_ELEMS(ff_mxf_pixel_layouts)
 
static const MXFSamplesPerFrame mxf_samples_per_frames []
 

Function Documentation

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

Definition at line 96 of file mxf.c.

Referenced by mxf_read_pixel_layout().

const MXFSamplesPerFrame* ff_mxf_get_samples_per_frame ( AVFormatContext s,
AVRational  time_base 
)

Definition at line 119 of file mxf.c.

Referenced by mxf_compute_sample_count(), and mxf_write_header().

Variable Documentation

const MXFCodecUL ff_mxf_data_definition_uls[]
Initial value:
= {
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x01,0x03,0x02,0x02,0x01,0x00,0x00,0x00 }, 13, AVMEDIA_TYPE_VIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x01,0x03,0x02,0x02,0x02,0x00,0x00,0x00 }, 13, AVMEDIA_TYPE_AUDIO },
{ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AVMEDIA_TYPE_DATA },
}

SMPTE RP224 http://www.smpte-ra.org/mdd/index.html.

Definition at line 28 of file mxf.c.

Referenced by mxf_get_data_definition_ul(), and mxf_parse_structural_metadata().

const MXFCodecUL ff_mxf_codec_uls[]
Initial value:
= {
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x01,0x11,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x01,0x02,0x01,0x01 }, 14, AV_CODEC_ID_MPEG2VIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x03,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x20,0x02,0x03 }, 14, AV_CODEC_ID_MPEG4 },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x02,0x01,0x02,0x00 }, 13, AV_CODEC_ID_DVVIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_RAWVIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x01,0x00 }, 15, AV_CODEC_ID_RAWVIDEO },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x71,0x00,0x00,0x00 }, 13, AV_CODEC_ID_DNXHD },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x03,0x02,0x00,0x00 }, 14, AV_CODEC_ID_DNXHD },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x32,0x00,0x00 }, 14, AV_CODEC_ID_H264 },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x02,0x01 }, 16, AV_CODEC_ID_V210 },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x02,0x02,0x01,0x7E,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16BE },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x04,0x04,0x02,0x02,0x02,0x03,0x01,0x01,0x00 }, 15, AV_CODEC_ID_PCM_ALAW },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x01,0x00 }, 15, AV_CODEC_ID_AC3 },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x02,0x03,0x02,0x05,0x00 }, 15, AV_CODEC_ID_MP2 },
{ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
}

Definition at line 34 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

const MXFCodecUL ff_mxf_pixel_format_uls[]
Initial value:
= {
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x01,0x01 }, 16, AV_PIX_FMT_UYVY422 },
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x01,0x02 }, 16, AV_PIX_FMT_YUYV422 },
{ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_PIX_FMT_NONE },
}

Definition at line 60 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

enum AVPixelFormat pix_fmt

Definition at line 67 of file mxf.c.

const char data[16]
Examples:
doc/examples/scaling_video.c.

Definition at line 68 of file mxf.c.

Referenced by aac_decode_frame_int(), ac3_decode_frame(), adpcm_decode_frame(), adx_decode_frame(), adx_encode(), aic_decode_frame(), alac_decode_frame(), alloc_buffer(), amr_new_context(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), apply_param_change(), atrac1_decode_frame(), atrac3_decode_frame(), aura_decode_frame(), av_blowfish_init(), av_buffer_create(), av_frame_get_plane_buffer(), av_image_get_buffer_size(), av_packet_from_data(), av_packet_split_side_data(), av_register_all(), avs_decode_frame(), avui_decode_frame(), bfi_decode_frame(), bitplane_decoding(), bmp_decode_frame(), bmv_aud_decode_frame(), brpix_decode_frame(), calc_masking(), cdg_decode_frame(), cdxl_decode_frame(), cinaudio_decode_frame(), cinepak_decode_strip(), cllc_decode_frame(), cmv_decode_frame(), cng_decode_frame(), column_fidct_mmx(), concat_close(), concat_open(), concat_read(), concat_seek(), control(), conv(), convert_mask_to_strength_mask(), cook_decode_frame(), create_map(), cyuv_decode_frame(), data_open(), dca_decode_frame(), decode(), decode_13(), decode_frame(), decode_tag(), decode_text_chunk(), decode_zbuf(), dfa_decode_frame(), dirac_decode_frame(), display_end_segment(), dnxhd_decode_frame(), do_apply_filter(), dpcm_decode_frame(), dvbsub_decode(), dvdsub_decode(), dvdsub_parse_extradata(), dwt_decode97_float(), dwt_decode97_int(), ebml_parse_elem(), eightsvx_decode_frame(), encode_all_blocks(), encode_frame(), escape124_decode_frame(), escape130_decode_frame(), estimate_best_b_count(), evrc_decode_frame(), ff_add_param_change(), ff_amf_get_field_value(), ff_amf_tag_size(), ff_asfcrypt_dec(), ff_audio_mix(), ff_calculate_bounding_box(), ff_check_pixfmt_descriptors(), ff_default_get_video_buffer(), ff_fdct248_islow(), ff_fdct_ifast(), ff_fdct_ifast248(), ff_flac_parse_picture(), ff_generate_avci_extradata(), ff_h263_decode_frame(), ff_ivi_decode_frame(), ff_j_rev_dct(), ff_j_rev_dct4(), ff_jpeg_fdct_islow(), ff_mxf_decode_pixel_layout(), ff_rv34_decode_frame(), ff_schro_queue_pop(), ff_simple_idct_put_vis(), ff_simple_idct_vis(), filter_frame(), flac_decode_frame(), flv_write_packet(), ftp_conn_control_block_control(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), gsm_decode_frame(), h261_decode_frame(), hb_fir_filter(), http_read(), idcin_decode_frame(), ilbc_decode_frame(), imc_decode_frame(), inverse_channel_transform(), ipvideo_decode_frame(), ir2_decode_frame(), jacosub_decode_frame(), jpeg2000_decode_frame(), lag_decode_frame(), libcelt_dec_decode(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libopus_decode(), libschroedinger_decode_frame(), libschroedinger_free_frame(), libshine_encode_frame(), libspeex_decode_frame(), mace_decode_frame(), main(), matroska_decode_buffer(), matroska_parse_frame(), matroska_parse_laces(), microdvd_decode_frame(), mjpeg_decode_scan(), mjpeg_decode_scan_progressive_ac(), mov_read_custom_metadata(), mov_text_decode_frame(), mov_write_subtitle_end_packet(), mpc7_decode_frame(), mpc8_decode_frame(), mpeg_decode_frame(), mpegts_write_packet_internal(), mpegts_write_pat(), mpegts_write_pmt(), mpegts_write_sdt(), mpl2_decode_frame(), mss2_decode_frame(), multiswap_dec(), multiswap_enc(), ogg_buffer_data(), oggvorbis_decode_frame(), paf_aud_decode(), parse_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcx_decode_frame(), pnm_decode_frame(), ptx_decode_frame(), qcelp_decode_frame(), qdm2_decode_frame(), qdm2_restore_block(), qtrle_encode_line(), ra144_decode_frame(), ra144_encode_subblock(), ra288_decode_frame(), raw_decode(), realtext_decode_frame(), redspark_probe(), redspark_read_header(), rl2_decode_frame(), row_fdct(), rv10_decode_frame(), s302m_decode_frame(), sami_decode_frame(), sample_queue_push(), shorten_decode_frame(), sipr_decode_frame(), smka_decode_frame(), srt_decode_frame(), subviewer_decode_frame(), sunrast_decode_frame(), svq1_decode_frame(), tak_decode_frame(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tmv_decode_frame(), tqi_decode_frame(), truespeech_decode_frame(), tta_decode_frame(), twin_decode_frame(), txd_decode_frame(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), vble_decode_frame(), vc1_decode_frame(), vcr1_decode_frame(), vdadec_decode(), vertClassify_altivec(), video_audio_display(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), vorbis_decode_frame(), vp8_decode(), vqa_decode_frame(), wavpack_decode_frame(), webvtt_decode_frame(), wma_decode_superframe(), ws_snd_decode_frame(), xan_decode_frame(), xbm_decode_frame(), xface_decode_frame(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_extradata(), xwd_decode_frame(), y216_decode_frame(), y41p_decode_frame(), yuv4_decode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

struct { ... } ff_mxf_pixel_layouts[]
Initial value:
= {
{AV_PIX_FMT_ABGR, {'A', 8, 'B', 8, 'G', 8, 'R', 8 }},
{AV_PIX_FMT_ARGB, {'A', 8, 'R', 8, 'G', 8, 'B', 8 }},
{AV_PIX_FMT_BGR24, {'B', 8, 'G', 8, 'R', 8 }},
{AV_PIX_FMT_BGRA, {'B', 8, 'G', 8, 'R', 8, 'A', 8 }},
{AV_PIX_FMT_RGB24, {'R', 8, 'G', 8, 'B', 8 }},
{AV_PIX_FMT_RGB444BE,{'F', 4, 'R', 4, 'G', 4, 'B', 4 }},
{AV_PIX_FMT_RGB48BE, {'R', 8, 'r', 8, 'G', 8, 'g', 8, 'B', 8, 'b', 8 }},
{AV_PIX_FMT_RGB48BE, {'R', 16, 'G', 16, 'B', 16 }},
{AV_PIX_FMT_RGB48LE, {'r', 8, 'R', 8, 'g', 8, 'G', 8, 'b', 8, 'B', 8 }},
{AV_PIX_FMT_RGB555BE,{'F', 1, 'R', 5, 'G', 5, 'B', 5 }},
{AV_PIX_FMT_RGB565BE,{'R', 5, 'G', 6, 'B', 5 }},
{AV_PIX_FMT_RGBA, {'R', 8, 'G', 8, 'B', 8, 'A', 8 }},
{AV_PIX_FMT_PAL8, {'P', 8 }},
}

Referenced by ff_mxf_decode_pixel_layout().

const int num_pixel_layouts = FF_ARRAY_ELEMS(ff_mxf_pixel_layouts)
static

Definition at line 94 of file mxf.c.

Referenced by ff_mxf_decode_pixel_layout().

const MXFSamplesPerFrame mxf_samples_per_frames[]
static
Initial value:
= {
{ { 1001, 24000 }, { 2002, 0, 0, 0, 0, 0 } },
{ { 1, 24}, { 2000, 0, 0, 0, 0, 0 } },
{ { 1001, 30000 }, { 1602, 1601, 1602, 1601, 1602, 0 } },
{ { 1001, 60000 }, { 801, 801, 801, 801, 800, 0 } },
{ { 1, 25 }, { 1920, 0, 0, 0, 0, 0 } },
{ { 1, 50 }, { 960, 0, 0, 0, 0, 0 } },
}

Definition at line 110 of file mxf.c.