Cleanup of unused RTP structs and packetizer for stereo codec
This CL is a followup to https://webrtc-review.googlesource.com/c/src/+/38481. With the new approach we can just use the generic RTP packetizer to pass frames over the wire as the specific info is contained within the bitstream. This makes the new codec more modular and reduces its footprint. Bug: webrtc:7671 Change-Id: Ib07f72a9d338e3cbfdbf39cba9891a959b5f7552 Reviewed-on: https://webrtc-review.googlesource.com/43220 Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org> Commit-Queue: Emircan Uysaler <emircan@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21753}
This commit is contained in:

committed by
Commit Bot

parent
be5e208b3e
commit
9bb8f0553d
@ -193,29 +193,8 @@ void VCMEncodedFrame::CopyCodecSpecific(const RTPVideoHeader* header) {
|
||||
_codecSpecificInfo.codecType = kVideoCodecH264;
|
||||
break;
|
||||
}
|
||||
case kRtpVideoStereo: {
|
||||
_codecSpecificInfo.codecType = kVideoCodecStereo;
|
||||
VideoCodecType associated_codec_type = kVideoCodecUnknown;
|
||||
switch (header->codecHeader.stereo.associated_codec_type) {
|
||||
case kRtpVideoVp8:
|
||||
associated_codec_type = kVideoCodecVP8;
|
||||
break;
|
||||
case kRtpVideoVp9:
|
||||
associated_codec_type = kVideoCodecVP9;
|
||||
break;
|
||||
case kRtpVideoH264:
|
||||
associated_codec_type = kVideoCodecH264;
|
||||
break;
|
||||
default:
|
||||
RTC_NOTREACHED();
|
||||
}
|
||||
_codecSpecificInfo.codecSpecific.stereo.associated_codec_type =
|
||||
associated_codec_type;
|
||||
_codecSpecificInfo.codecSpecific.stereo.indices =
|
||||
header->codecHeader.stereo.indices;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
case kRtpVideoNone:
|
||||
case kRtpVideoGeneric: {
|
||||
_codecSpecificInfo.codecType = kVideoCodecUnknown;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user