Struct ac_ffmpeg::packet::PacketMut

source ·
pub struct PacketMut { /* private fields */ }
Expand description

Packet with mutable data.

Implementations§

Create a new packet of a given size. The time base of the packet will be in microseconds.

Get stream index.

Set stream index.

Get packet time base.

Set packet time base. (This will rescale the current timestamps into a given time base.)

Get packet presentation timestamp.

Set packet presentation timestamp.

Set packet presentation timestamp without time base.

Get packet decoding timestamp.

Set packet decoding timestamp.

Set packet decoding timestamp without time base.

Get packet duration.

The method returns None if the duration is lower or equal to zero.

Set packet duration.

Get packet duration in time base units.

Set packet duration in time base units.

Check if the key flag is set.

Set or unset the key flag.

Get packet data.

Get mutable reference to the packet data.

Make the packet immutable.

Trait Implementations§

Executes the destructor for this type. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.