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

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

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 // 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_VPX_VIDEO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_VPX_VIDEO_DECODER_H_
6 #define MEDIA_FILTERS_VPX_VIDEO_DECODER_H_ 6 #define MEDIA_FILTERS_VPX_VIDEO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "media/base/demuxer_stream.h" 9 #include "media/base/demuxer_stream.h"
10 #include "media/base/video_decoder.h" 10 #include "media/base/video_decoder.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 explicit VpxVideoDecoder( 30 explicit VpxVideoDecoder(
31 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 31 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
32 ~VpxVideoDecoder() override; 32 ~VpxVideoDecoder() override;
33 33
34 // VideoDecoder implementation. 34 // VideoDecoder implementation.
35 std::string GetDisplayName() const override; 35 std::string GetDisplayName() const override;
36 void Initialize(const VideoDecoderConfig& config, 36 void Initialize(const VideoDecoderConfig& config,
37 bool low_delay, 37 bool low_delay,
38 const PipelineStatusCB& status_cb, 38 const PipelineStatusCB& status_cb,
39 const OutputCB& output_cb) override; 39 const OutputCB& output_cb,
40 const base::Closure& waiting_for_encryption_key_cb) override;
40 void Decode(const scoped_refptr<DecoderBuffer>& buffer, 41 void Decode(const scoped_refptr<DecoderBuffer>& buffer,
41 const DecodeCB& decode_cb) override; 42 const DecodeCB& decode_cb) override;
42 void Reset(const base::Closure& closure) override; 43 void Reset(const base::Closure& closure) override;
43 44
44 private: 45 private:
45 enum DecoderState { 46 enum DecoderState {
46 kUninitialized, 47 kUninitialized,
47 kNormal, 48 kNormal,
48 kFlushCodec, 49 kFlushCodec,
49 kDecodeFinished, 50 kDecodeFinished,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 scoped_refptr<MemoryPool> memory_pool_; 84 scoped_refptr<MemoryPool> memory_pool_;
84 85
85 VideoFramePool frame_pool_; 86 VideoFramePool frame_pool_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(VpxVideoDecoder); 88 DISALLOW_COPY_AND_ASSIGN(VpxVideoDecoder);
88 }; 89 };
89 90
90 } // namespace media 91 } // namespace media
91 92
92 #endif // MEDIA_FILTERS_VPX_VIDEO_DECODER_H_ 93 #endif // MEDIA_FILTERS_VPX_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698