LCOV - code coverage report
Current view: top level - dom/media/platforms/ffmpeg - FFmpegAudioDecoder.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef __FFmpegAACDecoder_h__
       8             : #define __FFmpegAACDecoder_h__
       9             : 
      10             : #include "FFmpegDataDecoder.h"
      11             : #include "FFmpegLibWrapper.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15             : template <int V> class FFmpegAudioDecoder
      16             : {
      17             : };
      18             : 
      19             : template <>
      20             : class FFmpegAudioDecoder<LIBAV_VER> : public FFmpegDataDecoder<LIBAV_VER>
      21             : {
      22             : public:
      23             :   FFmpegAudioDecoder(FFmpegLibWrapper* aLib, TaskQueue* aTaskQueue,
      24             :                      const AudioInfo& aConfig);
      25             :   virtual ~FFmpegAudioDecoder();
      26             : 
      27             :   RefPtr<InitPromise> Init() override;
      28             :   void InitCodecContext() override;
      29             :   static AVCodecID GetCodecId(const nsACString& aMimeType);
      30           0 :   const char* GetDescriptionName() const override
      31             :   {
      32           0 :     return "ffmpeg audio decoder";
      33             :   }
      34             : 
      35             : private:
      36             :   RefPtr<DecodePromise> ProcessDecode(MediaRawData* aSample) override;
      37             :   RefPtr<DecodePromise> ProcessDrain() override;
      38             : };
      39             : 
      40             : } // namespace mozilla
      41             : 
      42             : #endif // __FFmpegAACDecoder_h__

Generated by: LCOV version 1.13