OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ |
11 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ | 11 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ |
12 | 12 |
| 13 #include "webrtc/api/video/rotation.h" |
13 #include "webrtc/base/checks.h" | 14 #include "webrtc/base/checks.h" |
14 #include "webrtc/common_video/rotation.h" | |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 | 17 |
18 // Please refer to http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/ | 18 // Please refer to http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/ |
19 // 12.07.00_60/ts_126114v120700p.pdf Section 7.4.5. The rotation of a frame is | 19 // 12.07.00_60/ts_126114v120700p.pdf Section 7.4.5. The rotation of a frame is |
20 // the clockwise angle the frames must be rotated in order to display the frames | 20 // the clockwise angle the frames must be rotated in order to display the frames |
21 // correctly if the display is rotated in its natural orientation. | 21 // correctly if the display is rotated in its natural orientation. |
22 inline uint8_t ConvertVideoRotationToCVOByte(VideoRotation rotation) { | 22 inline uint8_t ConvertVideoRotationToCVOByte(VideoRotation rotation) { |
23 switch (rotation) { | 23 switch (rotation) { |
24 case kVideoRotation_0: | 24 case kVideoRotation_0: |
(...skipping 22 matching lines...) Expand all Loading... |
47 case 3: | 47 case 3: |
48 return kVideoRotation_270; | 48 return kVideoRotation_270; |
49 default: | 49 default: |
50 RTC_NOTREACHED(); | 50 RTC_NOTREACHED(); |
51 return kVideoRotation_0; | 51 return kVideoRotation_0; |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 } // namespace webrtc | 55 } // namespace webrtc |
56 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ | 56 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ |
OLD | NEW |