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

Unified Diff: media/filters/opus_audio_decoder.h

Issue 2543633006: To M56: Use ffmpeg for opus decoding, no need to maintain our decoder. (Closed)
Patch Set: Created 4 years 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/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/opus_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/opus_audio_decoder.h
diff --git a/media/filters/opus_audio_decoder.h b/media/filters/opus_audio_decoder.h
deleted file mode 100644
index 8ad1a9782a49b85131ad9d3ddcd6264a84035b6c..0000000000000000000000000000000000000000
--- a/media/filters/opus_audio_decoder.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2012 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 MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
-#define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "media/base/audio_decoder.h"
-#include "media/base/demuxer_stream.h"
-#include "media/base/sample_format.h"
-
-struct OpusMSDecoder;
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace media {
-
-class AudioBuffer;
-class AudioDiscardHelper;
-class DecoderBuffer;
-struct QueuedAudioBuffer;
-
-class MEDIA_EXPORT OpusAudioDecoder : public AudioDecoder {
- public:
- explicit OpusAudioDecoder(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
- ~OpusAudioDecoder() override;
-
- // AudioDecoder implementation.
- std::string GetDisplayName() const override;
- void Initialize(const AudioDecoderConfig& config,
- CdmContext* cdm_context,
- const InitCB& init_cb,
- const OutputCB& output_cb) override;
- void Decode(const scoped_refptr<DecoderBuffer>& buffer,
- const DecodeCB& decode_cb) override;
- void Reset(const base::Closure& closure) override;
-
- private:
- // Reads from the demuxer stream with corresponding callback method.
- void ReadFromDemuxerStream();
- void DecodeBuffer(const scoped_refptr<DecoderBuffer>& input,
- const DecodeCB& decode_cb);
-
- bool ConfigureDecoder();
- void CloseDecoder();
- void ResetTimestampState();
- bool Decode(const scoped_refptr<DecoderBuffer>& input,
- scoped_refptr<AudioBuffer>* output_buffer);
-
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
-
- AudioDecoderConfig config_;
- OutputCB output_cb_;
- OpusMSDecoder* opus_decoder_;
- std::unique_ptr<AudioDiscardHelper> discard_helper_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder);
-};
-
-} // namespace media
-
-#endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/opus_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698