diff options
Diffstat (limited to 'webrtc/modules/video_coding/main/source/encoded_frame.h')
-rw-r--r-- | webrtc/modules/video_coding/main/source/encoded_frame.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webrtc/modules/video_coding/main/source/encoded_frame.h b/webrtc/modules/video_coding/main/source/encoded_frame.h index 4be4e6b50a..d8589070d4 100644 --- a/webrtc/modules/video_coding/main/source/encoded_frame.h +++ b/webrtc/modules/video_coding/main/source/encoded_frame.h @@ -70,6 +70,10 @@ public: */ webrtc::FrameType FrameType() const {return ConvertFrameType(_frameType);} /** + * Get frame rotation + */ + VideoRotation rotation() const { return _rotation; } + /** * True if this frame is complete, false otherwise */ bool Complete() const { return _completeFrame; } @@ -116,6 +120,12 @@ protected: CodecSpecificInfo _codecSpecificInfo; webrtc::VideoCodecType _codec; RTPFragmentationHeader _fragmentation; + VideoRotation _rotation; + + // Video rotation is only set along with the last packet for each frame + // (same as marker bit). This |_rotation_set| is only for debugging purpose + // to ensure we don't set it twice for a frame. + bool _rotation_set; }; } // namespace webrtc |