Switching to I420VideoFrame
Review URL: https://webrtc-codereview.appspot.com/922004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2983 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -74,10 +74,10 @@ WebRtc_Word32 VideoCoder::SetDecodeCodec(VideoCodec& videoCodecInst,
|
||||
return 0;
|
||||
}
|
||||
|
||||
WebRtc_Word32 VideoCoder::Decode(VideoFrame& decodedVideo,
|
||||
WebRtc_Word32 VideoCoder::Decode(I420VideoFrame& decodedVideo,
|
||||
const EncodedVideoData& encodedData)
|
||||
{
|
||||
decodedVideo.SetLength(0);
|
||||
decodedVideo.ResetSize();
|
||||
if(encodedData.payloadSize <= 0)
|
||||
{
|
||||
return -1;
|
||||
@ -92,7 +92,7 @@ WebRtc_Word32 VideoCoder::Decode(VideoFrame& decodedVideo,
|
||||
}
|
||||
|
||||
|
||||
WebRtc_Word32 VideoCoder::Encode(const VideoFrame& videoFrame,
|
||||
WebRtc_Word32 VideoCoder::Encode(const I420VideoFrame& videoFrame,
|
||||
EncodedVideoData& videoEncodedData)
|
||||
{
|
||||
// The AddVideoFrame(..) call will (indirectly) call SendData(). Store a
|
||||
@ -121,7 +121,7 @@ WebRtc_Word8 VideoCoder::DefaultPayloadType(const char* plName)
|
||||
return -1;
|
||||
}
|
||||
|
||||
WebRtc_Word32 VideoCoder::FrameToRender(VideoFrame& videoFrame)
|
||||
WebRtc_Word32 VideoCoder::FrameToRender(I420VideoFrame& videoFrame)
|
||||
{
|
||||
return _decodedVideo->CopyFrame(videoFrame);
|
||||
}
|
||||
|
Reference in New Issue
Block a user