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

Side by Side Diff: webrtc/modules/video_coding/codecs/h264/h264.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 months 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
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 */ 10 */
(...skipping 18 matching lines...) Expand all
29 29
30 bool IsH264CodecSupported() { 30 bool IsH264CodecSupported() {
31 #if defined(WEBRTC_IOS) 31 #if defined(WEBRTC_IOS)
32 return IsH264CodecSupportedObjC(); 32 return IsH264CodecSupportedObjC();
33 #else 33 #else
34 return false; 34 return false;
35 #endif 35 #endif
36 } 36 }
37 37
38 H264Encoder* H264Encoder::Create() { 38 H264Encoder* H264Encoder::Create() {
39 DCHECK(H264Encoder::IsSupported()); 39 RTC_DCHECK(H264Encoder::IsSupported());
40 #if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) 40 #if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED)
41 return new H264VideoToolboxEncoder(); 41 return new H264VideoToolboxEncoder();
42 #else 42 #else
43 RTC_NOTREACHED(); 43 RTC_NOTREACHED();
44 return nullptr; 44 return nullptr;
45 #endif 45 #endif
46 } 46 }
47 47
48 bool H264Encoder::IsSupported() { 48 bool H264Encoder::IsSupported() {
49 return IsH264CodecSupported(); 49 return IsH264CodecSupported();
50 } 50 }
51 51
52 H264Decoder* H264Decoder::Create() { 52 H264Decoder* H264Decoder::Create() {
53 DCHECK(H264Decoder::IsSupported()); 53 RTC_DCHECK(H264Decoder::IsSupported());
54 #if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) 54 #if defined(WEBRTC_IOS) && defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED)
55 return new H264VideoToolboxDecoder(); 55 return new H264VideoToolboxDecoder();
56 #else 56 #else
57 RTC_NOTREACHED(); 57 RTC_NOTREACHED();
58 return nullptr; 58 return nullptr;
59 #endif 59 #endif
60 } 60 }
61 61
62 bool H264Decoder::IsSupported() { 62 bool H264Decoder::IsSupported() {
63 return IsH264CodecSupported(); 63 return IsH264CodecSupported();
64 } 64 }
65 65
66 } // namespace webrtc 66 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698