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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/backend/alsa/video_decoder_alsa.h
diff --git a/chromecast/media/cma/backend/alsa/video_decoder_alsa.h b/chromecast/media/cma/backend/alsa/video_decoder_alsa.h
new file mode 100644
index 0000000000000000000000000000000000000000..ccaa19cd4e0542ac828e8627bdf51aeab742e5de
--- /dev/null
+++ b/chromecast/media/cma/backend/alsa/video_decoder_alsa.h
@@ -0,0 +1,41 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_VIDEO_DECODER_ALSA_H_
+#define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_VIDEO_DECODER_ALSA_H_
+
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+#include "chromecast/public/media/media_pipeline_backend.h"
+
+namespace chromecast {
+namespace media {
+
+class VideoDecoderAlsa : public MediaPipelineBackend::VideoDecoder {
+ public:
+ VideoDecoderAlsa();
+ ~VideoDecoderAlsa() override;
+
+ // MediaPipelineBackend::VideoDecoder implementation:
+ void SetDelegate(Delegate* delegate) override;
+ MediaPipelineBackend::BufferStatus PushBuffer(
+ CastDecoderBuffer* buffer) override;
+ void GetStatistics(Statistics* statistics) override;
+ bool SetConfig(const VideoConfig& config) override;
+
+ private:
+ void OnEndOfStream();
+
+ Delegate* delegate_;
+ base::WeakPtrFactory<VideoDecoderAlsa> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(VideoDecoderAlsa);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_VIDEO_DECODER_ALSA_H_

Powered by Google App Engine
This is Rietveld 408576698