OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_VIDEO_DECODER_ALSA_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_VIDEO_DECODER_ALSA_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chromecast/public/media/media_pipeline_backend.h" |
| 13 |
| 14 namespace chromecast { |
| 15 namespace media { |
| 16 |
| 17 class VideoDecoderAlsa : public MediaPipelineBackend::VideoDecoder { |
| 18 public: |
| 19 VideoDecoderAlsa(); |
| 20 ~VideoDecoderAlsa() override; |
| 21 |
| 22 // MediaPipelineBackend::VideoDecoder implementation: |
| 23 void SetDelegate(Delegate* delegate) override; |
| 24 MediaPipelineBackend::BufferStatus PushBuffer( |
| 25 CastDecoderBuffer* buffer) override; |
| 26 void GetStatistics(Statistics* statistics) override; |
| 27 bool SetConfig(const VideoConfig& config) override; |
| 28 |
| 29 private: |
| 30 void OnEndOfStream(); |
| 31 |
| 32 Delegate* delegate_; |
| 33 base::WeakPtrFactory<VideoDecoderAlsa> weak_factory_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(VideoDecoderAlsa); |
| 36 }; |
| 37 |
| 38 } // namespace media |
| 39 } // namespace chromecast |
| 40 |
| 41 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_VIDEO_DECODER_ALSA_H_ |
OLD | NEW |