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

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

Issue 2474993002: Pass selected cricket::VideoCodec down to internal H264 encoder (Closed)
Patch Set: Rebase Created 4 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
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_encoder_impl.h" 12 #include "webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.h"
13 13
14 #include <limits> 14 #include <limits>
15 15
16 #include "third_party/openh264/src/codec/api/svc/codec_api.h" 16 #include "third_party/openh264/src/codec/api/svc/codec_api.h"
17 #include "third_party/openh264/src/codec/api/svc/codec_app_def.h" 17 #include "third_party/openh264/src/codec/api/svc/codec_app_def.h"
18 #include "third_party/openh264/src/codec/api/svc/codec_def.h" 18 #include "third_party/openh264/src/codec/api/svc/codec_def.h"
19 #include "third_party/openh264/src/codec/api/svc/codec_ver.h" 19 #include "third_party/openh264/src/codec/api/svc/codec_ver.h"
20 20
21 #include "webrtc/base/checks.h" 21 #include "webrtc/base/checks.h"
22 #include "webrtc/base/logging.h" 22 #include "webrtc/base/logging.h"
23 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 23 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
24 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
hta-webrtc 2016/11/23 14:08:53 Removable?
24 #include "webrtc/system_wrappers/include/metrics.h" 25 #include "webrtc/system_wrappers/include/metrics.h"
25 26
26 namespace webrtc { 27 namespace webrtc {
27 28
28 namespace { 29 namespace {
29 30
30 const bool kOpenH264EncoderDetailedLogging = false; 31 const bool kOpenH264EncoderDetailedLogging = false;
31 32
32 // Used by histograms. Values of entries should not be changed. 33 // Used by histograms. Values of entries should not be changed.
33 enum H264EncoderImplEvent { 34 enum H264EncoderImplEvent {
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 497
497 int32_t H264EncoderImpl::SetPeriodicKeyFrames(bool enable) { 498 int32_t H264EncoderImpl::SetPeriodicKeyFrames(bool enable) {
498 return WEBRTC_VIDEO_CODEC_OK; 499 return WEBRTC_VIDEO_CODEC_OK;
499 } 500 }
500 501
501 void H264EncoderImpl::OnDroppedFrame() { 502 void H264EncoderImpl::OnDroppedFrame() {
502 quality_scaler_.ReportDroppedFrame(); 503 quality_scaler_.ReportDroppedFrame();
503 } 504 }
504 505
505 } // namespace webrtc 506 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698