[go: up one dir, main page]

Struct rtp::codecs::h265::H265PACIPacket

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

PACI implementation

H265PACIPacket represents a single H265 PACI packet.

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr (Type=50) |A| cType | phssize |F0..2|Y| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | payload Header Extension Structure (phes) | |=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=| | | | PACI payload: NAL unit | | . . . | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :…OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.4

Implementations§

source§

impl H265PACIPacket

source

pub fn payload_header(&self) -> H265NALUHeader

payload_header returns the NAL Unit Header.

source

pub fn a(&self) -> bool

a copies the F bit of the PACI payload NALU.

source

pub fn ctype(&self) -> u8

ctype copies the Type field of the PACI payload NALU.

source

pub fn phs_size(&self) -> u8

phs_size indicates the size of the phes field.

source

pub fn f0(&self) -> bool

f0 indicates the presence of a Temporal Scalability support extension in the phes.

source

pub fn f1(&self) -> bool

f1 must be zero, reserved for future extensions.

source

pub fn f2(&self) -> bool

f2 must be zero, reserved for future extensions.

source

pub fn y(&self) -> bool

y must be zero, reserved for future extensions.

source

pub fn phes(&self) -> Bytes

phes contains header extensions. Its size is indicated by phssize.

source

pub fn payload(&self) -> Bytes

payload is a single NALU or NALU-like struct, not including the first two octets (header).

source

pub fn tsci(&self) -> Option<H265TSCI>

tsci returns the Temporal Scalability Control Information extension, if present.

Trait Implementations§

source§

impl Clone for H265PACIPacket

source§

fn clone(&self) -> H265PACIPacket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for H265PACIPacket

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for H265PACIPacket

source§

fn default() -> H265PACIPacket

Returns the “default value” for a type. Read more
source§

impl PartialEq<H265PACIPacket> for H265PACIPacket

source§

fn eq(&self, other: &H265PACIPacket) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for H265PACIPacket

source§

impl StructuralEq for H265PACIPacket

source§

impl StructuralPartialEq for H265PACIPacket

Auto Trait Implementations§

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<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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V