Struct bwavfile::Bext

source ·
pub struct Bext {
Show 14 fields pub description: String, pub originator: String, pub originator_reference: String, pub origination_date: String, pub origination_time: String, pub time_reference: u64, pub version: u16, pub umid: Option<[u8; 64]>, pub loudness_value: Option<f32>, pub loudness_range: Option<f32>, pub max_true_peak_level: Option<f32>, pub max_momentary_loudness: Option<f32>, pub max_short_term_loudness: Option<f32>, pub coding_history: String,
}
Expand description

Broadcast-WAV metadata record.

The bext record contains information about the original recording of the Wave file, including a longish (256 ASCII chars) description field, originator identification fields, creation calendar date and time, a sample-accurate recording time field, and a SMPTE UMID.

For a Wave file to be a complaint “Broadcast-WAV” file, it must contain a bext metadata record.

Resources

  • EBU Tech 3285 “Specification of the Broadcast Wave Format (BWF)”
  • EBU Tech R098 (1999) “Format for the <CodingHistory> field in Broadcast Wave Format files, BWF”
  • EBU Tech R099 (October 2011) “‘Unique’ Source Identifier (USID) for use in the <OriginatorReference> field of the Broadcast Wave Format”

Fields§

§description: String

0..256 ASCII character field with free text.

§originator: String

0..32 ASCII character Originating application.

§originator_reference: String

0..32 ASCII character application-specific UID or EBU R099-formatted UID.

§origination_date: String

Creation date in format YYYY-MM-DD.

§origination_time: String

Creation time in format HH:MM:SS.

§time_reference: u64

Start timestamp of this wave file, in number of samples since local midnight.

§version: u16

Bext chunk version.

Version 1 contains a UMID, version 2 contains a UMID and loudness metadata.

§umid: Option<[u8; 64]>

SMPTE 330M UMID

This field is None if the version is less than 1.

§loudness_value: Option<f32>

Integrated loudness in LUFS.

This field is None if the version is less than 2.

§loudness_range: Option<f32>

Loudness range in LU.

This field is None if the version is less than 2.

§max_true_peak_level: Option<f32>

Maximum True Peak Level in decibels True Peak.

This field is None if the version is less than 2.

§max_momentary_loudness: Option<f32>

Maximum momentary loudness in LUFS.

This field is None if the version is less than 2.

§max_short_term_loudness: Option<f32>

Maximum short-term loudness in LUFS.

This field is None if the version is less than 2.

§coding_history: String

Coding History.

Trait Implementations§

source§

impl Debug for Bext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Bext

§

impl Send for Bext

§

impl Sync for Bext

§

impl Unpin for Bext

§

impl UnwindSafe for Bext

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<S> FromSample<S> for S

source§

fn from_sample_(s: S) -> S

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> ToSample<U> for Twhere U: FromSample<T>,

source§

fn to_sample_(self) -> U

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<S, T> Duplex<S> for Twhere T: FromSample<S> + ToSample<S>,