@@ -107,20 +107,30 @@ impl Payloader for Vp8Payloader {
107107/// Vp8Packet represents the VP8 header that is stored in the payload of an RTP Packet
108108#[ derive( PartialEq , Debug , Default , Clone ) ]
109109pub struct Vp8Packet {
110- // Required Header
111- pub x : u8 , /* extended controlbits present */
112- pub n : u8 , /* (non-reference frame) when set to 1 this frame can be discarded */
113- pub s : u8 , /* start of VP8 partition */
114- pub pid : u8 , /* partition index */
115-
116- // Optional Header
117- pub i : u8 , /* 1 if PictureID is present */
118- pub l : u8 , /* 1 if TL0PICIDX is present */
119- pub t : u8 , /* 1 if TID is present */
120- pub k : u8 , /* 1 if KEYIDX is present */
121-
122- pub picture_id : u16 , /* 8 or 16 bits, picture ID */
123- pub tl0_pic_idx : u8 , /* 8 bits temporal level zero index */
110+ /// Required Header
111+ /// extended controlbits present
112+ pub x : u8 ,
113+ /// (non-reference frame) when set to 1 this frame can be discarded
114+ pub n : u8 ,
115+ /// start of VP8 partition
116+ pub s : u8 ,
117+ /// partition index
118+ pub pid : u8 ,
119+
120+ /// Optional Header
121+ /// 1 if PictureID is present
122+ pub i : u8 ,
123+ /// 1 if TL0PICIDX is present
124+ pub l : u8 ,
125+ /// 1 if tid is present
126+ pub t : u8 ,
127+ /// 1 if KEYIDX is present
128+ pub k : u8 ,
129+
130+ /// 8 or 16 bits, picture ID
131+ pub picture_id : u16 ,
132+ /// 8 bits temporal level zero index
133+ pub tl0_pic_idx : u8 ,
124134
125135 pub payload : Bytes ,
126136}
0 commit comments