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

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

Issue 1716173002: Histograms for H264EncoderImpl/H264DecoderImpl initialization and errors (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renamed "...State" enums to "...Event" Created 4 years, 10 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Called by FFmpeg when it needs a frame buffer to store decoded frames in. 55 // Called by FFmpeg when it needs a frame buffer to store decoded frames in.
56 // The |VideoFrame| returned by FFmpeg at |Decode| originate from here. Their 56 // The |VideoFrame| returned by FFmpeg at |Decode| originate from here. Their
57 // buffers are reference counted and freed by FFmpeg using |AVFreeBuffer2|. 57 // buffers are reference counted and freed by FFmpeg using |AVFreeBuffer2|.
58 static int AVGetBuffer2( 58 static int AVGetBuffer2(
59 AVCodecContext* context, AVFrame* av_frame, int flags); 59 AVCodecContext* context, AVFrame* av_frame, int flags);
60 // Called by FFmpeg when it is done with a video frame, see |AVGetBuffer2|. 60 // Called by FFmpeg when it is done with a video frame, see |AVGetBuffer2|.
61 static void AVFreeBuffer2(void* opaque, uint8_t* data); 61 static void AVFreeBuffer2(void* opaque, uint8_t* data);
62 62
63 bool IsInitialized() const; 63 bool IsInitialized() const;
64 64
65 // Reports statistics with histograms.
66 void ReportInit();
67 void ReportError();
68
65 I420BufferPool pool_; 69 I420BufferPool pool_;
66 rtc::scoped_ptr<AVCodecContext, AVCodecContextDeleter> av_context_; 70 rtc::scoped_ptr<AVCodecContext, AVCodecContextDeleter> av_context_;
67 rtc::scoped_ptr<AVFrame, AVFrameDeleter> av_frame_; 71 rtc::scoped_ptr<AVFrame, AVFrameDeleter> av_frame_;
68 72
69 DecodedImageCallback* decoded_image_callback_; 73 DecodedImageCallback* decoded_image_callback_;
74
75 bool has_reported_init_;
76 bool has_reported_error_;
70 }; 77 };
71 78
72 } // namespace webrtc 79 } // namespace webrtc
73 80
74 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_DECODER_IMPL_H_ 81 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698