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

Unified Diff: chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h

Issue 557333003: Audio/video data streaming over shared memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h
diff --git a/chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h b/chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h
new file mode 100644
index 0000000000000000000000000000000000000000..8ca4c41f85ea73b11c9ff727a39336b770eb2d2c
--- /dev/null
+++ b/chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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_IPC_STREAMER_VIDEO_DECODER_CONFIG_MARSHALLER_H_
+#define CHROMECAST_MEDIA_CMA_IPC_STREAMER_VIDEO_DECODER_CONFIG_MARSHALLER_H_
+
+#include "media/base/video_decoder_config.h"
+
+namespace chromecast {
+namespace media {
+class MediaMessage;
+
+class VideoDecoderConfigMarshaller {
+ public:
+ // Writes the serialized structure of |config| into |msg|.
+ static void Write(
+ const ::media::VideoDecoderConfig& config, MediaMessage* msg);
gunsch 2014/09/10 18:51:38 four-space indent
damienv1 2014/09/10 21:24:55 Done.
+
+ // Returns a VideoDecoderConfig from its serialized structure.
+ static ::media::VideoDecoderConfig Read(MediaMessage* msg);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_VIDEO_DECODER_CONFIG_MARSHALLER_H_

Powered by Google App Engine
This is Rietveld 408576698