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_INTERFACE_RTP_CVO__H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO__H_ |
11 #define WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_CVO__H_ | 11 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO__H_ |
| 12 |
| 13 #pragma message("WARNING: rtp_rtcp/interface is DEPRECATED; use include dir.") |
12 | 14 |
13 #include "webrtc/common_video/rotation.h" | 15 #include "webrtc/common_video/rotation.h" |
14 | 16 |
15 namespace webrtc { | 17 namespace webrtc { |
16 | 18 |
17 // Please refer to http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/ | 19 // Please refer to http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/ |
18 // 12.07.00_60/ts_126114v120700p.pdf Section 7.4.5. The rotation of a frame is | 20 // 12.07.00_60/ts_126114v120700p.pdf Section 7.4.5. The rotation of a frame is |
19 // the clockwise angle the frames must be rotated in order to display the frames | 21 // the clockwise angle the frames must be rotated in order to display the frames |
20 // correctly if the display is rotated in its natural orientation. | 22 // correctly if the display is rotated in its natural orientation. |
21 inline uint8_t ConvertVideoRotationToCVOByte(VideoRotation rotation) { | 23 inline uint8_t ConvertVideoRotationToCVOByte(VideoRotation rotation) { |
(...skipping 22 matching lines...) Expand all Loading... |
44 break; | 46 break; |
45 case 3: | 47 case 3: |
46 return kVideoRotation_270; | 48 return kVideoRotation_270; |
47 default: | 49 default: |
48 assert(false); | 50 assert(false); |
49 return kVideoRotation_0; | 51 return kVideoRotation_0; |
50 } | 52 } |
51 } | 53 } |
52 | 54 |
53 } // namespace webrtc | 55 } // namespace webrtc |
54 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_CVO__H_ | 56 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO__H_ |
OLD | NEW |