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); |
}; |