ExternalVideoDecoder for new VideoEngine API.
Implements the ExternalVideoDecoder interface for VideoReceiveStream. Also adds a FakeDecoder used in tests, removing the overhead of running the EngineTest tests with VP8 under Memcheck/TSan, allowing us to enable them under Memcheck/TSan as well. BUG=2346,2312 R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2172004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4702 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -43,8 +43,13 @@ struct CodecSpecificInfoVP8
|
||||
int8_t keyIdx; // negative value to skip keyIdx
|
||||
};
|
||||
|
||||
struct CodecSpecificInfoGeneric {
|
||||
uint8_t simulcast_idx;
|
||||
};
|
||||
|
||||
union CodecSpecificInfoUnion
|
||||
{
|
||||
CodecSpecificInfoGeneric generic;
|
||||
CodecSpecificInfoVP8 VP8;
|
||||
};
|
||||
|
||||
|
@ -265,6 +265,9 @@ void VCMEncodedFrameCallback::CopyCodecSpecific(const CodecSpecificInfo& info,
|
||||
(*rtp)->simulcastIdx = info.codecSpecific.VP8.simulcastIdx;
|
||||
return;
|
||||
}
|
||||
case kVideoCodecGeneric:
|
||||
(*rtp)->simulcastIdx = info.codecSpecific.generic.simulcast_idx;
|
||||
return;
|
||||
default: {
|
||||
// No codec specific info. Change RTP header pointer to NULL.
|
||||
*rtp = NULL;
|
||||
|
Reference in New Issue
Block a user