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

Unified Diff: media/filters/decrypting_audio_decoder.h

Issue 11778079: Encrypted Media: Enforcing the CDM to decode audio into S16 integers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « no previous file | media/filters/decrypting_audio_decoder.cc » ('j') | media/filters/decrypting_audio_decoder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_audio_decoder.h
diff --git a/media/filters/decrypting_audio_decoder.h b/media/filters/decrypting_audio_decoder.h
index 7890d222a0fd03a4b745ea0651e6ee5c315ebda4..ebd53373d861d4a600ac42e42dbd7e423ad155db 100644
--- a/media/filters/decrypting_audio_decoder.h
+++ b/media/filters/decrypting_audio_decoder.h
@@ -26,6 +26,13 @@ class Decryptor;
// that no locks are required for thread safety.
class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
public:
+ // We do not currently have a way to let the Decrytptor choose the output
DaleCurtis 2013/01/10 01:24:35 s/Decrytptor/Decryptor/
xhwang 2013/01/10 18:17:23 Done.
+ // audio sample format and notify us its choice. Therefore, we require all
DaleCurtis 2013/01/10 01:24:35 s/its/of its/
xhwang 2013/01/10 18:17:23 Done.
+ // Decryptor implementations to decode audio into a fixed integer sample
+ // format with kSupportedBitsPerChannel.
DaleCurtis 2013/01/10 01:24:35 s/with/designated by/
xhwang 2013/01/10 18:17:23 Done.
+ // TODO(xhwang): Remove this restriction after http://crbug.com/169105 fixed.
+ static const int kSupportedBitsPerChannel;
+
DecryptingAudioDecoder(
const scoped_refptr<base::MessageLoopProxy>& message_loop,
const SetDecryptorReadyCB& set_decryptor_ready_cb);
@@ -102,6 +109,10 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
// Resets decoder and calls |reset_cb_|.
void DoReset();
+ // Sets audio configs from |demuxer_stream_| and resets
+ // |output_timestamp_base_| and |total_samples_decoded_|.
+ void SetDecoderConfig();
+
// Sets timestamp and duration for |queued_audio_frames_| to make sure the
// renderer always receives continuous frames without gaps and overlaps.
void EnqueueFrames(const Decryptor::AudioBuffers& frames);
« no previous file with comments | « no previous file | media/filters/decrypting_audio_decoder.cc » ('j') | media/filters/decrypting_audio_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698