Adding missing parts related to VP8 partitions
Review URL: http://webrtc-codereview.appspot.com/131017 git-svn-id: http://webrtc.googlecode.com/svn/trunk@561 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -53,6 +53,8 @@ struct RTPVideoHeaderVP8
|
|||||||
pictureId = kNoPictureId;
|
pictureId = kNoPictureId;
|
||||||
tl0PicIdx = kNoTl0PicIdx;
|
tl0PicIdx = kNoTl0PicIdx;
|
||||||
temporalIdx = kNoTemporalIdx;
|
temporalIdx = kNoTemporalIdx;
|
||||||
|
partitionId = 0;
|
||||||
|
beginningOfPartition = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nonReference; // Frame is discardable.
|
bool nonReference; // Frame is discardable.
|
||||||
@ -61,6 +63,9 @@ struct RTPVideoHeaderVP8
|
|||||||
WebRtc_Word16 tl0PicIdx; // TL0PIC_IDX, 8 bits;
|
WebRtc_Word16 tl0PicIdx; // TL0PIC_IDX, 8 bits;
|
||||||
// kNoTl0PicIdx means no value provided.
|
// kNoTl0PicIdx means no value provided.
|
||||||
WebRtc_Word8 temporalIdx; // Temporal layer index, or kNoTemporalIdx.
|
WebRtc_Word8 temporalIdx; // Temporal layer index, or kNoTemporalIdx.
|
||||||
|
int partitionId; // VP8 partition ID
|
||||||
|
bool beginningOfPartition; // True if this packet is the first
|
||||||
|
// in a VP8 partition. Otherwise false
|
||||||
};
|
};
|
||||||
union RTPVideoTypeHeader
|
union RTPVideoTypeHeader
|
||||||
{
|
{
|
||||||
|
@ -645,6 +645,8 @@ RTPReceiverVideo::ReceiveVp8Codec(WebRtcRTPHeader* rtpHeader,
|
|||||||
kNoTl0PicIdx;
|
kNoTl0PicIdx;
|
||||||
toHeader->temporalIdx = fromHeader->hasTID ? fromHeader->tID :
|
toHeader->temporalIdx = fromHeader->hasTID ? fromHeader->tID :
|
||||||
kNoTemporalIdx;
|
kNoTemporalIdx;
|
||||||
|
toHeader->partitionId = fromHeader->partitionID;
|
||||||
|
toHeader->beginningOfPartition = fromHeader->beginningOfPartition;
|
||||||
|
|
||||||
if(CallbackOfReceivedPayloadData(parsedPacket.info.VP8.data,
|
if(CallbackOfReceivedPayloadData(parsedPacket.info.VP8.data,
|
||||||
parsedPacket.info.VP8.dataLength,
|
parsedPacket.info.VP8.dataLength,
|
||||||
|
Reference in New Issue
Block a user