FFmpeg  4.0
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. More...
 
const MXFCodecUL ff_mxf_codec_uls []
 
const MXFCodecUL ff_mxf_pixel_format_uls []
 
const MXFCodecUL ff_mxf_codec_tag_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_spf []
 
static const AVRational mxf_time_base []
 

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

Referenced by mxf_read_pixel_layout().

◆ ff_mxf_get_samples_per_frame()

const MXFSamplesPerFrame* ff_mxf_get_samples_per_frame ( AVFormatContext s,
AVRational  time_base 
)

Definition at line 154 of file mxf.c.

Referenced by mxf_compute_sample_count(), and mxf_write_header().

Variable Documentation

◆ ff_mxf_data_definition_uls

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 },
{ { 0x80,0x7D,0x00,0x60,0x08,0x14,0x3E,0x6F,0x6F,0x3C,0x8C,0xE1,0x6C,0xEF,0x11,0xD2 }, 16, AVMEDIA_TYPE_VIDEO },
{ { 0x80,0x7D,0x00,0x60,0x08,0x14,0x3E,0x6F,0x78,0xE1,0xEB,0xE1,0x6C,0xEF,0x11,0xD2 }, 16, AVMEDIA_TYPE_AUDIO },
{ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AVMEDIA_TYPE_DATA },
}
Opaque data information usually continuous.
Definition: avutil.h:203

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

Definition at line 28 of file mxf.c.

Referenced by mxf_add_metadata_stream(), mxf_get_data_definition_ul(), and mxf_parse_structural_metadata().

◆ ff_mxf_codec_uls

const MXFCodecUL ff_mxf_codec_uls[]

Definition at line 36 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

◆ ff_mxf_pixel_format_uls

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 },
}
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
Definition: pixfmt.h:77
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition: pixfmt.h:63

Definition at line 77 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

◆ ff_mxf_codec_tag_uls

const MXFCodecUL ff_mxf_codec_tag_uls[]
Initial value:
= {
{ { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0E,0x04,0x03,0x01,0x01,0x03,0x01,0x00 }, 15, MKTAG('A', 'V', 'u', 'p') },
{ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, 0 },
}
#define MKTAG(a, b, c, d)
Definition: common.h:366

Definition at line 83 of file mxf.c.

Referenced by mxf_parse_structural_metadata().

◆ pix_fmt

enum AVPixelFormat pix_fmt

Definition at line 89 of file mxf.c.

◆ data

const char data[16]
Examples:
decode_audio.c, decode_video.c, filter_audio.c, and scaling_video.c.

Definition at line 90 of file mxf.c.

Referenced by aac_decode_er_frame(), aac_decode_frame_int(), ac3_decode_frame(), adpcm_decode_frame(), adx_decode_frame(), aic_decode_frame(), alac_decode_frame(), amr_decode_fix_avctx(), amrnb_decode_frame(), amrwb_decode_frame(), aom_decode(), ape_decode_frame(), append_flv_data(), apply_filter(), apply_lut(), apply_param_change(), ass_decode_frame(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3al_decode_frame(), atrac3p_decode_frame(), aura_decode_frame(), av_blowfish_init(), av_buffer_create(), av_fft_end(), av_frame_get_plane_buffer(), av_image_fill_black(), av_image_get_buffer_size(), av_opt_is_set_to_default(), av_packet_add_side_data(), av_packet_from_data(), av_packet_new_side_data(), av_packet_pack_dictionary(), av_packet_split_side_data(), av_packet_unpack_dictionary(), av_stream_add_side_data(), av_stream_new_side_data(), avc_h_loop_filter_luma_mbaff_msa(), avf_read_packet(), avi_extract_stream_metadata(), avs_decode_frame(), avui_decode_frame(), bfi_decode_frame(), bitpacked_decode(), bitplane_decoding(), blur(), bmp_decode_frame(), bmv_aud_decode_frame(), calc_masking(), calc_power(), cbs_h2645_assemble_fragment(), cbs_h2645_fragment_add_nals(), cbs_mpeg2_assemble_fragment(), cdg_decode_frame(), cdxl_decode_frame(), cfhd_decode(), check_multiply3x3(), cinaudio_decode_frame(), cinepak_decode_strip(), cllc_decode_frame(), cmv_decode_frame(), cng_decode_frame(), column_fidct_c(), compressor(), compute_network0new(), concat_close(), concat_open(), concat_read(), concat_seek(), conv(), convert(), cook_decode_frame(), cover_rect(), create_map(), cuda_pool_alloc(), cuvid_decode_frame(), cyuv_decode_frame(), data_open(), dcadec_decode_frame(), dds_decode(), decode(), decode_13(), decode_delta_l(), decode_frame(), decode_frame_common(), decode_iccp_chunk(), decode_plane(), decode_short_horizontal_delta(), decode_tag(), decode_text_chunk(), decode_zbuf(), dfa_decode_frame(), dirac_decode_frame(), display_end_segment(), dnxhd_decode_frame(), do_apply_filter(), dot_prods(), dpcm_decode_frame(), dss_sp_decode_frame(), dump_paramchange(), dvbsub_decode(), dvdsub_decode(), dvdsub_parse_extradata(), dvvideo_decode_frame(), dwt_decode97_float(), dwt_decode97_int(), dwt_haar(), dxv_decode(), ebml_parse_elem(), encode_frame(), escape124_decode_frame(), escape130_decode_frame(), estimate_best_b_count(), evrc_decode_frame(), failing_write_packet(), fdk_aac_decode_frame(), ff_add_param_change(), ff_AMediaFormat_getBuffer(), ff_amf_receive_packet(), ff_asfcrypt_dec(), ff_audio_mix(), ff_calculate_bounding_box(), ff_cbs_insert_unit_data(), ff_check_pixfmt_descriptors(), ff_dca_core_dequantize(), ff_exp2fi(), ff_fdct248_islow(), ff_fdct_ifast(), ff_fdct_ifast248(), ff_flac_parse_picture(), ff_generate_avci_extradata(), ff_h263_decode_frame(), ff_h264_decode_extradata(), ff_ivi_decode_frame(), ff_j_rev_dct(), ff_j_rev_dct4(), ff_jpeg_fdct_islow(), ff_mediacodec_dec_receive(), ff_mediacodec_dec_send(), ff_mjpeg_decode_frame(), ff_mlp_pack_output(), ff_mxf_decode_pixel_layout(), ff_rv34_decode_frame(), ff_side_data_update_matrix_encoding(), ff_stream_encode_params_copy(), ff_twinvq_decode_frame(), ff_vaapi_encode_init(), ff_videotoolbox_alloc_frame(), ff_videotoolbox_avcc_extradata_create(), ff_videotoolbox_hvcc_extradata_create(), ff_videotoolbox_uninit(), ff_vp8_decode_frame(), ffat_decode(), fft_end(), fifo_consumer_thread(), filter_frame(), filter_slice(), fits_decode_frame(), flac_decode_frame(), flush(), flv_write_codec_header(), flv_write_packet(), g2m_decode_frame(), g722_decode_frame(), g723_1_decode_frame(), g726_reset(), gate(), gdv_decode_frame(), get_input(), get_metadata(), gif_read_ext(), gsm_decode_frame(), h261_decode_frame(), h264_decode_frame(), h264_fill_mbaff_ref_list(), h264_metadata_filter(), handle_packets(), hap_decode(), hb_fir_filter(), hls_slice_data_wpp(), hnm_decode_frame(), hq_hqa_decode_frame(), hqx_decode_frame(), idcin_decode_frame(), if(), ilbc_decode_frame(), imc_decode_frame(), import_pem(), init_axis_color(), init_sec_buffer(), initializations(), inverse_channel_transform(), ipvideo_decode_frame(), ir2_decode_frame(), ivi_scale_mv(), jacosub_decode_frame(), jpeg2000_decode_frame(), lag_decode_frame(), libcelt_dec_decode(), libcodec2_decode(), libgsm_decode_frame(), libopenjpeg_decode_frame(), libopus_decode(), librsvg_decode_frame(), libshine_encode_frame(), libspeex_decode_frame(), LLVMFuzzerTestOneInput(), lrc_write_packet(), m101_decode_frame(), mace_decode_frame(), magy_decode_frame(), main(), matroska_decode_buffer(), matroska_ebmlnum_sint(), matroska_parse_frame(), matroska_parse_laces(), matroska_parse_webvtt(), mediacodec_decode_close(), merge_superframe(), microdvd_decode_frame(), mjpeg_decode_scan(), mjpeg_idct_scan_progressive_ac(), mkv_write_block(), mlp_encode_frame(), mov_text_decode_frame(), mov_write_subtitle_end_packet(), mpc7_decode_frame(), mpc8_decode_frame(), mpeg_decode_frame(), mpegts_raw_read_packet(), mpegts_read_header(), mpegts_write_packet_internal(), mpegts_write_pat(), mpegts_write_pmt(), mpegts_write_sdt(), mpl2_decode_frame(), mss2_decode_frame(), multiswap_dec(), multiswap_enc(), mvc_decode_frame(), oggvorbis_decode_frame(), old_flac_header(), on2avc_decode_frame(), opengl_control_message(), opengl_get_plane_pointer(), opus_decode_packet(), opus_rc_tell_frac(), paf_audio_decode(), parse(), parse_packet(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcx_decode_frame(), pix_decode_frame(), pixlet_decode_frame(), png_write_row(), pnm_decode_frame(), predictor_calc_error(), prepare_packet(), process_frame(), ptx_decode_frame(), put_flac_codecpriv(), qcelp_decode_frame(), qdmc_decode_frame(), qsv_decode_frame(), qtrle_encode_line(), ra144_decode_frame(), ra144_encode_subblock(), ra288_decode_frame(), raw_decode(), rd_frame(), realtext_decode_frame(), redspark_probe(), redspark_read_header(), render_default_font(), render_freetype(), request_frame(), rl2_decode_frame(), row_fdct(), row_fdct_c(), rscc_decode_frame(), rv10_decode_frame(), s302m_decode_frame(), sami_decode_frame(), sample_queue_push(), sbc_decode_frame(), screenpresso_decode_frame(), sdl2_write_packet(), set_frame(), sgirle_decode_frame(), shorten_decode_frame(), sipr_decode_frame(), smka_decode_frame(), speedhq_decode_frame(), srt_decode_frame(), store_icy(), subviewer_decode_frame(), sunrast_decode_frame(), sup_write_packet(), svc_decode_frame(), svq1_decode_frame(), tak_decode_frame(), tdsc_decode_frame(), teletext_decode_frame(), text_decode_frame(), tgq_decode_frame(), tgv_decode_frame(), tls_write(), tmv_decode_frame(), tqi_decode_frame(), truemotion2rt_decode_frame(), truespeech_decode_frame(), tta_decode_frame(), twinvq_mulawinv(), txd_decode_frame(), update_frame_pool(), update_metadata(), v308_decode_frame(), v408_decode_frame(), v410_decode_frame(), vaapi_buffer_free(), vaapi_encode_free_output_buffer(), vaapi_encode_issue(), vaapi_vp8_decode_slice(), vble_decode_frame(), vc1_decode_frame(), vc2_subband_dwt_53(), vc2_subband_dwt_97(), vcr1_decode_frame(), vdpau_buffer_free(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), vertClassify_altivec(), video_audio_display(), video_frame_cksum(), videotoolbox_retrieve_data(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), vorbis_decode_frame(), vp3_decode_frame(), vp9_decode_frame(), vpx_decode(), vqa_decode_frame(), wait_frame(), wavpack_decode_frame(), webp_decode_frame(), webvtt_decode_frame(), wma_decode_superframe(), wmapro_decode_packet(), wrapped_avframe_encode(), write_codec_attr(), write_picture(), write_sm_data(), ws_snd_decode_frame(), xan_decode_frame(), xbm_decode_frame(), xcbgrab_frame(), xface_decode_frame(), xma_decode_packet(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_extradata(), xpm_decode_frame(), xv_write_packet(), xwd_decode_frame(), y216_decode_frame(), y41p_decode_frame(), yuv4_decode_frame(), zero12v_decode_frame(), and zerocodec_decode_frame().

◆ ff_mxf_pixel_layouts

const { ... } 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 }},
{AV_PIX_FMT_GRAY8, {'A', 8 }},
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:64
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian, X=unused/undefined
Definition: pixfmt.h:136
8 bits with AV_PIX_FMT_RGB32 palette
Definition: pixfmt.h:73
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:99
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Definition: pixfmt.h:101
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:90
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:91
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:88
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:89
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:65
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined
Definition: pixfmt.h:103
Y , 8bpp.
Definition: pixfmt.h:70
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:98

Referenced by ff_mxf_decode_pixel_layout().

◆ num_pixel_layouts

const int num_pixel_layouts = FF_ARRAY_ELEMS(ff_mxf_pixel_layouts)
static

Definition at line 117 of file mxf.c.

Referenced by ff_mxf_decode_pixel_layout().

◆ mxf_spf

const MXFSamplesPerFrame mxf_spf[]
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 } },
{ { 1, 60 }, { 800, 0, 0, 0, 0, 0 } },
}

Definition at line 133 of file mxf.c.

◆ mxf_time_base

const AVRational mxf_time_base[]
static
Initial value:
= {
{ 1001, 24000 },
{ 1, 24},
{ 1001, 30000 },
{ 1001, 60000 },
{ 1, 25 },
{ 1, 50 },
{ 1, 60 },
{ 0, 0}
}

Definition at line 143 of file mxf.c.