Chromium Code Reviews

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

Issue 659343003: Chromecast media pipeline: handle CENC "full sample encryption" case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h
diff --git a/chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h b/chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h
index b600ba41c147e92e743f3a1c3fd25ffee7811d33..eb168faf2018cbda076812a072f5f7117c429aec 100644
--- a/chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h
+++ b/chromecast/media/cma/ipc_streamer/decrypt_config_marshaller.h
@@ -21,6 +21,12 @@ class DecryptConfigMarshaller {
static void Write(
const ::media::DecryptConfig& config, MediaMessage* msg);
+ // Writes the serialized structure of |config| into |msg|, assuming one
+ // subsample with |data_size| encrypted bytes. This handles the
+ // "Full Sample Encryption" case in ISO/IEC 23001-7:2012 9.5.
+ static void WriteFullSampleEncryption(
+ const ::media::DecryptConfig& config, int data_size, MediaMessage* msg);
+
// Returns a DecryptConfig from its serialized structure.
static scoped_ptr< ::media::DecryptConfig> Read(MediaMessage* msg);
};

Powered by Google App Engine