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

Side by Side Diff: chromecast/media/cma/backend/alsa/video_decoder_alsa.h

Issue 2577743002: [chromecast] Deletes libcast_media_1.0_default_core. (Closed)
Patch Set: rebase + simplify libcast_media target Created 4 years 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698