LCOV - code coverage report
Current view: top level - dom/media/platforms/agnostic - WAVDecoder.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 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             : #if !defined(WaveDecoder_h_)
       8             : #define WaveDecoder_h_
       9             : 
      10             : #include "PlatformDecoderModule.h"
      11             : #include "mp4_demuxer/ByteReader.h"
      12             : 
      13             : namespace mozilla {
      14             : 
      15           0 : class WaveDataDecoder : public MediaDataDecoder
      16             : {
      17             : public:
      18             :   explicit WaveDataDecoder(const CreateDecoderParams& aParams);
      19             : 
      20             :   // Return true if mimetype is Wave
      21             :   static bool IsWave(const nsACString& aMimeType);
      22             : 
      23             :   RefPtr<InitPromise> Init() override;
      24             :   RefPtr<DecodePromise> Decode(MediaRawData* aSample) override;
      25             :   RefPtr<DecodePromise> Drain() override;
      26             :   RefPtr<FlushPromise> Flush() override;
      27             :   RefPtr<ShutdownPromise> Shutdown() override;
      28           0 :   const char* GetDescriptionName() const override
      29             :   {
      30           0 :     return "wave audio decoder";
      31             :   }
      32             : 
      33             : private:
      34             :   RefPtr<DecodePromise> ProcessDecode(MediaRawData* aSample);
      35             :   const AudioInfo& mInfo;
      36             :   const RefPtr<TaskQueue> mTaskQueue;
      37             : };
      38             : 
      39             : } // namespace mozilla
      40             : #endif

Generated by: LCOV version 1.13