LCOV - code coverage report
Current view: top level - dom/media/platforms/agnostic - BlankDecoderModule.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 7 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             : #if !defined(BlankDecoderModule_h_)
       7             : #define BlankDecoderModule_h_
       8             : 
       9             : #include "DummyMediaDataDecoder.h"
      10             : #include "PlatformDecoderModule.h"
      11             : 
      12             : namespace mozilla {
      13             : 
      14             : namespace layers {
      15             : class ImageContainer;
      16             : }
      17             : 
      18             : class MediaData;
      19             : class MediaRawData;
      20             : 
      21           0 : class BlankVideoDataCreator : public DummyDataCreator {
      22             : public:
      23             :   BlankVideoDataCreator(uint32_t aFrameWidth,
      24             :                         uint32_t aFrameHeight,
      25             :                         layers::ImageContainer* aImageContainer);
      26             : 
      27             :   already_AddRefed<MediaData> Create(MediaRawData* aSample) override;
      28             : 
      29             : private:
      30             :   VideoInfo mInfo;
      31             :   gfx::IntRect mPicture;
      32             :   uint32_t mFrameWidth;
      33             :   uint32_t mFrameHeight;
      34             :   RefPtr<layers::ImageContainer> mImageContainer;
      35             : };
      36             : 
      37           0 : class BlankAudioDataCreator : public DummyDataCreator
      38             : {
      39             : public:
      40             :   BlankAudioDataCreator(uint32_t aChannelCount, uint32_t aSampleRate);
      41             : 
      42             :   already_AddRefed<MediaData> Create(MediaRawData* aSample) override;
      43             : 
      44             : private:
      45             :   int64_t mFrameSum;
      46             :   uint32_t mChannelCount;
      47             :   uint32_t mSampleRate;
      48             : };
      49             : 
      50           0 : class BlankDecoderModule : public PlatformDecoderModule
      51             : {
      52             : public:
      53             :   already_AddRefed<MediaDataDecoder>
      54             :   CreateVideoDecoder(const CreateDecoderParams& aParams) override;
      55             : 
      56             :   already_AddRefed<MediaDataDecoder>
      57             :   CreateAudioDecoder(const CreateDecoderParams& aParams) override;
      58             : 
      59             :   bool
      60             :   SupportsMimeType(const nsACString& aMimeType,
      61             :                    DecoderDoctorDiagnostics* aDiagnostics) const override;
      62             : };
      63             : 
      64             : } // namespace mozilla
      65             : 
      66             : #endif /* BlankDecoderModule_h_ */

Generated by: LCOV version 1.13