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

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

Issue 2088513004: Add encoder/decoder names to software H264. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 av_frame_unref(av_frame_.get()); 388 av_frame_unref(av_frame_.get());
389 video_frame = nullptr; 389 video_frame = nullptr;
390 390
391 if (ret) { 391 if (ret) {
392 LOG(LS_WARNING) << "DecodedImageCallback::Decoded returned " << ret; 392 LOG(LS_WARNING) << "DecodedImageCallback::Decoded returned " << ret;
393 return ret; 393 return ret;
394 } 394 }
395 return WEBRTC_VIDEO_CODEC_OK; 395 return WEBRTC_VIDEO_CODEC_OK;
396 } 396 }
397 397
398 const char* H264DecoderImpl::ImplementationName() const {
399 return "FFmpeg";
400 }
401
398 bool H264DecoderImpl::IsInitialized() const { 402 bool H264DecoderImpl::IsInitialized() const {
399 return av_context_ != nullptr; 403 return av_context_ != nullptr;
400 } 404 }
401 405
402 void H264DecoderImpl::ReportInit() { 406 void H264DecoderImpl::ReportInit() {
403 if (has_reported_init_) 407 if (has_reported_init_)
404 return; 408 return;
405 RTC_HISTOGRAM_ENUMERATION("WebRTC.Video.H264DecoderImpl.Event", 409 RTC_HISTOGRAM_ENUMERATION("WebRTC.Video.H264DecoderImpl.Event",
406 kH264DecoderEventInit, 410 kH264DecoderEventInit,
407 kH264DecoderEventMax); 411 kH264DecoderEventMax);
408 has_reported_init_ = true; 412 has_reported_init_ = true;
409 } 413 }
410 414
411 void H264DecoderImpl::ReportError() { 415 void H264DecoderImpl::ReportError() {
412 if (has_reported_error_) 416 if (has_reported_error_)
413 return; 417 return;
414 RTC_HISTOGRAM_ENUMERATION("WebRTC.Video.H264DecoderImpl.Event", 418 RTC_HISTOGRAM_ENUMERATION("WebRTC.Video.H264DecoderImpl.Event",
415 kH264DecoderEventError, 419 kH264DecoderEventError,
416 kH264DecoderEventMax); 420 kH264DecoderEventMax);
417 has_reported_error_ = true; 421 has_reported_error_ = true;
418 } 422 }
419 423
420 } // namespace webrtc 424 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698