Add CVO support to video_coding layer.
CVO is, instead of rotating frame on the capture side, to have renderer rotate the frame based on a new rtp header extension. The change includes 1. encoder side needs to pass this from raw frame to the encoded frame. 2. decoder needs to copy it from rtp packet (only the last packet of a frame has this info) to decoded frame. R=mflodman@webrtc.org TBR=stefan@webrtc.org BUG=4145 Review URL: https://webrtc-codereview.appspot.com/46429006 Cr-Commit-Position: refs/heads/master@{#8767} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8767 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -54,11 +54,14 @@ public:
|
||||
void SetPayloadType(uint8_t payloadType) { _payloadType = payloadType; };
|
||||
void SetInternalSource(bool internalSource) { _internalSource = internalSource; };
|
||||
|
||||
void SetRotation(VideoRotation rotation) { _rotation = rotation; }
|
||||
|
||||
private:
|
||||
VCMPacketizationCallback* _sendCallback;
|
||||
media_optimization::MediaOptimization* _mediaOpt;
|
||||
uint8_t _payloadType;
|
||||
bool _internalSource;
|
||||
VideoRotation _rotation;
|
||||
|
||||
EncodedImageCallback* post_encode_callback_;
|
||||
|
||||
@ -136,10 +139,12 @@ public:
|
||||
private:
|
||||
VideoEncoder* const encoder_;
|
||||
VideoEncoderRateObserver* const rate_observer_;
|
||||
VCMEncodedFrameCallback* vcm_encoded_frame_callback_;
|
||||
uint32_t bit_rate_;
|
||||
uint32_t frame_rate_;
|
||||
const bool internal_source_;
|
||||
mutable rtc::CriticalSection rates_lock_;
|
||||
VideoRotation rotation_;
|
||||
}; // end of VCMGenericEncoder class
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user