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

Unified Diff: media/base/video_decoder_config.h

Issue 2701203003: media: Prefer decrypting pipeline when CDM is attached (Closed)
Patch Set: comments addressed Created 3 years, 10 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
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_decoder_config.h
diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h
index 2d3d3fe972930850811c0e7717b41e6f621bf22d..3ed8d4ce5646fcc4b7b51f5f17ff948f61c57d4c 100644
--- a/media/base/video_decoder_config.h
+++ b/media/base/video_decoder_config.h
@@ -119,6 +119,12 @@ class MEDIA_EXPORT VideoDecoderConfig {
void set_hdr_metadata(const HDRMetadata& hdr_metadata);
base::Optional<HDRMetadata> hdr_metadata() const;
+ // Sets the config to be encrypted or not encrypted manually. This can be
+ // useful for decryptors that decrypts an encrypted stream to a clear stream,
+ // or for decoder selectors that wants to select decrypting decoders instead
+ // of clear decoders.
+ void SetIsEncrypted(bool is_encrypted);
+
private:
VideoCodec codec_;
VideoCodecProfile profile_;
« no previous file with comments | « media/base/audio_decoder_config.cc ('k') | media/base/video_decoder_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698