ExMP4.Box.Av1c (MP4 Reader and Writer v0.14.1)
View SourceA module representing an av1C box, which contains AV1 codec configuration.
Summary
Types
@type t() :: %ExMP4.Box.Av1c{ chroma_sample_position: non_neg_integer(), chroma_subsampling_x: 0..1, chroma_subsampling_y: 0..1, config_obus: binary(), high_bitdepth: 0..1, initial_presentation_delay_minus_one: non_neg_integer(), initial_presentation_delay_present: 0..1, monochrome: 0..1, seq_level_idx_0: non_neg_integer(), seq_profile: non_neg_integer(), seq_tier_0: 0..1, twelve_bit: 0..1 }
Functions
Creates a new av1c box from sequence header OBU.
Only available if MediaCodecs is installed.
iex> obu = <<10, 11, 0, 0, 0, 66, 167, 191, 230, 46, 223, 200, 66>>
iex> ExMP4.Box.Av1c.new(obu)
%ExMP4.Box.Av1c{
chroma_sample_position: 0,
chroma_subsampling_x: 1,
chroma_subsampling_y: 1,
config_obus: <<10, 11, 0, 0, 0, 66, 167, 191, 230, 46, 223, 200, 66>>,
high_bitdepth: 0,
initial_presentation_delay_minus_one: 0,
initial_presentation_delay_present: 0,
monochrome: 0,
seq_level_idx_0: 8,
seq_profile: 0,
seq_tier_0: 0,
twelve_bit: 0
}