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

Side by Side Diff: media/filters/ffmpeg_video_decoder.h

Issue 547913002: MediaLog: Log selected audio/video decoder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use property instead of log. Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 explicit FFmpegVideoDecoder( 30 explicit FFmpegVideoDecoder(
31 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 31 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
32 virtual ~FFmpegVideoDecoder(); 32 virtual ~FFmpegVideoDecoder();
33 33
34 // Allow decoding of individual NALU. Entire frames are required by default. 34 // Allow decoding of individual NALU. Entire frames are required by default.
35 // Disables low-latency mode. Must be called before Initialize(). 35 // Disables low-latency mode. Must be called before Initialize().
36 void set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; } 36 void set_decode_nalus(bool decode_nalus) { decode_nalus_ = decode_nalus; }
37 37
38 // VideoDecoder implementation. 38 // VideoDecoder implementation.
39 virtual std::string GetDisplayName() const OVERRIDE;
39 virtual void Initialize(const VideoDecoderConfig& config, 40 virtual void Initialize(const VideoDecoderConfig& config,
40 bool low_delay, 41 bool low_delay,
41 const PipelineStatusCB& status_cb, 42 const PipelineStatusCB& status_cb,
42 const OutputCB& output_cb) OVERRIDE; 43 const OutputCB& output_cb) OVERRIDE;
43 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, 44 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
44 const DecodeCB& decode_cb) OVERRIDE; 45 const DecodeCB& decode_cb) OVERRIDE;
45 virtual void Reset(const base::Closure& closure) OVERRIDE; 46 virtual void Reset(const base::Closure& closure) OVERRIDE;
46 47
47 // Callback called from within FFmpeg to allocate a buffer based on 48 // Callback called from within FFmpeg to allocate a buffer based on
48 // the dimensions of |codec_context|. See AVCodecContext.get_buffer2 49 // the dimensions of |codec_context|. See AVCodecContext.get_buffer2
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 VideoFramePool frame_pool_; 87 VideoFramePool frame_pool_;
87 88
88 bool decode_nalus_; 89 bool decode_nalus_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder); 91 DISALLOW_COPY_AND_ASSIGN(FFmpegVideoDecoder);
91 }; 92 };
92 93
93 } // namespace media 94 } // namespace media
94 95
95 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_ 96 #endif // MEDIA_FILTERS_FFMPEG_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698