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

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

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 Created 3 years, 5 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 */
11 11
12 #include "webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.h" 12 #include "webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.h"
13 13
14 #include <algorithm> 14 #include <algorithm>
15 #include <limits> 15 #include <limits>
16 16
17 extern "C" { 17 extern "C" {
18 #include "third_party/ffmpeg/libavcodec/avcodec.h" 18 #include "third_party/ffmpeg/libavcodec/avcodec.h"
19 #include "third_party/ffmpeg/libavformat/avformat.h" 19 #include "third_party/ffmpeg/libavformat/avformat.h"
20 #include "third_party/ffmpeg/libavutil/imgutils.h" 20 #include "third_party/ffmpeg/libavutil/imgutils.h"
21 } // extern "C" 21 } // extern "C"
22 22
23 #include "webrtc/api/video/i420_buffer.h" 23 #include "webrtc/api/video/i420_buffer.h"
24 #include "webrtc/base/checks.h"
25 #include "webrtc/base/criticalsection.h"
26 #include "webrtc/base/keep_ref_until_done.h"
27 #include "webrtc/base/logging.h"
28 #include "webrtc/common_video/include/video_frame_buffer.h" 24 #include "webrtc/common_video/include/video_frame_buffer.h"
25 #include "webrtc/rtc_base/checks.h"
26 #include "webrtc/rtc_base/criticalsection.h"
27 #include "webrtc/rtc_base/keep_ref_until_done.h"
28 #include "webrtc/rtc_base/logging.h"
29 #include "webrtc/system_wrappers/include/metrics.h" 29 #include "webrtc/system_wrappers/include/metrics.h"
30 30
31 namespace webrtc { 31 namespace webrtc {
32 32
33 namespace { 33 namespace {
34 34
35 const AVPixelFormat kPixelFormat = AV_PIX_FMT_YUV420P; 35 const AVPixelFormat kPixelFormat = AV_PIX_FMT_YUV420P;
36 const size_t kYPlaneIndex = 0; 36 const size_t kYPlaneIndex = 0;
37 const size_t kUPlaneIndex = 1; 37 const size_t kUPlaneIndex = 1;
38 const size_t kVPlaneIndex = 2; 38 const size_t kVPlaneIndex = 2;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 void H264DecoderImpl::ReportError() { 416 void H264DecoderImpl::ReportError() {
417 if (has_reported_error_) 417 if (has_reported_error_)
418 return; 418 return;
419 RTC_HISTOGRAM_ENUMERATION("WebRTC.Video.H264DecoderImpl.Event", 419 RTC_HISTOGRAM_ENUMERATION("WebRTC.Video.H264DecoderImpl.Event",
420 kH264DecoderEventError, 420 kH264DecoderEventError,
421 kH264DecoderEventMax); 421 kH264DecoderEventMax);
422 has_reported_error_ = true; 422 has_reported_error_ = true;
423 } 423 }
424 424
425 } // namespace webrtc 425 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/h264/h264.cc ('k') | webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698