Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit afbfe55

Browse files
author
Rain Liu
committed
update vp9 codec
1 parent f2cbbab commit afbfe55

File tree

4 files changed

+750
-250
lines changed

4 files changed

+750
-250
lines changed

src/codecs/h264/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ impl Depacketizer for H264Packet {
263263
}
264264

265265
/// H264PartitionHeadChecker checks H264 partition head
266-
#[derive(Default)]
267266
pub struct H264PartitionHeadChecker;
268267

269268
impl H264PartitionHeadChecker {

src/codecs/vp8/mod.rs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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)]
109109
pub 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

Comments
 (0)