Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: webrtc/modules/rtp_rtcp/interface/rtp_cvo.h

Issue 1414793020: Remove interface directories kept to avoid breaking downstream. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_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.")
14
15 #include "webrtc/common_video/rotation.h"
16
17 namespace webrtc {
18
19 // Please refer to http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/
20 // 12.07.00_60/ts_126114v120700p.pdf Section 7.4.5. The rotation of a frame is
21 // the clockwise angle the frames must be rotated in order to display the frames
22 // correctly if the display is rotated in its natural orientation.
23 inline uint8_t ConvertVideoRotationToCVOByte(VideoRotation rotation) {
24 switch (rotation) {
25 case kVideoRotation_0:
26 return 0;
27 case kVideoRotation_90:
28 return 1;
29 case kVideoRotation_180:
30 return 2;
31 case kVideoRotation_270:
32 return 3;
33 }
34 assert(false);
35 return 0;
36 }
37
38 inline VideoRotation ConvertCVOByteToVideoRotation(uint8_t rotation) {
39 switch (rotation) {
40 case 0:
41 return kVideoRotation_0;
42 case 1:
43 return kVideoRotation_90;
44 case 2:
45 return kVideoRotation_180;
46 break;
47 case 3:
48 return kVideoRotation_270;
49 default:
50 assert(false);
51 return kVideoRotation_0;
52 }
53 }
54
55 } // namespace webrtc
56 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/interface/remote_ntp_time_estimator.h ('k') | webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698