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

Side by Side Diff: webrtc/video/encoded_frame_callback_adapter.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
« no previous file with comments | « webrtc/video/call_perf_tests.cc ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 #include "webrtc/video/encoded_frame_callback_adapter.h" 11 #include "webrtc/video/encoded_frame_callback_adapter.h"
12 12
13 #include "webrtc/base/checks.h" 13 #include "webrtc/base/checks.h"
14 #include "webrtc/modules/video_coding/main/source/encoded_frame.h" 14 #include "webrtc/modules/video_coding/main/source/encoded_frame.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 namespace internal { 17 namespace internal {
18 18
19 EncodedFrameCallbackAdapter::EncodedFrameCallbackAdapter( 19 EncodedFrameCallbackAdapter::EncodedFrameCallbackAdapter(
20 EncodedFrameObserver* observer) : observer_(observer) { 20 EncodedFrameObserver* observer) : observer_(observer) {
21 } 21 }
22 22
23 EncodedFrameCallbackAdapter::~EncodedFrameCallbackAdapter() {} 23 EncodedFrameCallbackAdapter::~EncodedFrameCallbackAdapter() {}
24 24
25 int32_t EncodedFrameCallbackAdapter::Encoded( 25 int32_t EncodedFrameCallbackAdapter::Encoded(
26 const EncodedImage& encodedImage, 26 const EncodedImage& encodedImage,
27 const CodecSpecificInfo* codecSpecificInfo, 27 const CodecSpecificInfo* codecSpecificInfo,
28 const RTPFragmentationHeader* fragmentation) { 28 const RTPFragmentationHeader* fragmentation) {
29 DCHECK(observer_ != nullptr); 29 RTC_DCHECK(observer_ != nullptr);
30 FrameType frame_type = 30 FrameType frame_type =
31 VCMEncodedFrame::ConvertFrameType(encodedImage._frameType); 31 VCMEncodedFrame::ConvertFrameType(encodedImage._frameType);
32 const EncodedFrame frame(encodedImage._buffer, 32 const EncodedFrame frame(encodedImage._buffer,
33 encodedImage._length, 33 encodedImage._length,
34 frame_type); 34 frame_type);
35 observer_->EncodedFrameCallback(frame); 35 observer_->EncodedFrameCallback(frame);
36 return 0; 36 return 0;
37 } 37 }
38 38
39 } // namespace internal 39 } // namespace internal
40 } // namespace webrtc 40 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/call_perf_tests.cc ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698