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

Side by Side Diff: media/base/video_decoder.h

Issue 13813016: Remove reference counting from media::Demuxer and friends. (Closed) Base URL: http://git.chromium.org/chromium/src.git@vd_scoped
Patch Set: Created 7 years, 8 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_BASE_VIDEO_DECODER_H_ 5 #ifndef MEDIA_BASE_VIDEO_DECODER_H_
6 #define MEDIA_BASE_VIDEO_DECODER_H_ 6 #define MEDIA_BASE_VIDEO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/pipeline_status.h" 10 #include "media/base/pipeline_status.h"
(...skipping 16 matching lines...) Expand all
27 27
28 VideoDecoder(); 28 VideoDecoder();
29 virtual ~VideoDecoder(); 29 virtual ~VideoDecoder();
30 30
31 // Initializes a VideoDecoder with the given DemuxerStream, executing the 31 // Initializes a VideoDecoder with the given DemuxerStream, executing the
32 // |status_cb| upon completion. 32 // |status_cb| upon completion.
33 // |statistics_cb| is used to update the global pipeline statistics. 33 // |statistics_cb| is used to update the global pipeline statistics.
34 // Note: 34 // Note:
35 // 1) No VideoDecoder calls should be made before |status_cb| is executed. 35 // 1) No VideoDecoder calls should be made before |status_cb| is executed.
36 // 2) DemuxerStream should not be accessed after the VideoDecoder is stopped. 36 // 2) DemuxerStream should not be accessed after the VideoDecoder is stopped.
37 virtual void Initialize(const scoped_refptr<DemuxerStream>& stream, 37 virtual void Initialize(DemuxerStream* stream,
38 const PipelineStatusCB& status_cb, 38 const PipelineStatusCB& status_cb,
39 const StatisticsCB& statistics_cb) = 0; 39 const StatisticsCB& statistics_cb) = 0;
40 40
41 // Requests a frame to be decoded. The status of the decoder and decoded frame 41 // Requests a frame to be decoded. The status of the decoder and decoded frame
42 // are returned via the provided callback. Only one read may be in flight at 42 // are returned via the provided callback. Only one read may be in flight at
43 // any given time. 43 // any given time.
44 // 44 //
45 // Implementations guarantee that the callback will not be called from within 45 // Implementations guarantee that the callback will not be called from within
46 // this method. 46 // this method.
47 // 47 //
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // use a fixed set of VideoFrames for decoding. 79 // use a fixed set of VideoFrames for decoding.
80 virtual bool HasOutputFrameAvailable() const; 80 virtual bool HasOutputFrameAvailable() const;
81 81
82 private: 82 private:
83 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); 83 DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
84 }; 84 };
85 85
86 } // namespace media 86 } // namespace media
87 87
88 #endif // MEDIA_BASE_VIDEO_DECODER_H_ 88 #endif // MEDIA_BASE_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698