Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.h
Line
Count
Source (jump to first uncovered line)
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>;
21
DDLoggedTypeNameAndBase(FFmpegAudioDecoder<LIBAV_VER>,
22
                        FFmpegDataDecoder<LIBAV_VER>);
23
24
template<>
25
class FFmpegAudioDecoder<LIBAV_VER>
26
  : public FFmpegDataDecoder<LIBAV_VER>
27
  , public DecoderDoctorLifeLogger<FFmpegAudioDecoder<LIBAV_VER>>
28
{
29
public:
30
  FFmpegAudioDecoder(FFmpegLibWrapper* aLib, TaskQueue* aTaskQueue,
31
                     const AudioInfo& aConfig);
32
  virtual ~FFmpegAudioDecoder();
33
34
  RefPtr<InitPromise> Init() override;
35
  void InitCodecContext() override;
36
  static AVCodecID GetCodecId(const nsACString& aMimeType);
37
  nsCString GetDescriptionName() const override
38
0
  {
39
0
    return NS_LITERAL_CSTRING("ffmpeg audio decoder");
40
0
  }
Unexecuted instantiation: mozilla::FFmpegAudioDecoder<46465650>::GetDescriptionName() const
Unexecuted instantiation: mozilla::FFmpegAudioDecoder<53>::GetDescriptionName() const
Unexecuted instantiation: mozilla::FFmpegAudioDecoder<54>::GetDescriptionName() const
Unexecuted instantiation: mozilla::FFmpegAudioDecoder<55>::GetDescriptionName() const
Unexecuted instantiation: mozilla::FFmpegAudioDecoder<57>::GetDescriptionName() const
Unexecuted instantiation: mozilla::FFmpegAudioDecoder<58>::GetDescriptionName() const
41
42
private:
43
  MediaResult DoDecode(MediaRawData* aSample,
44
                       uint8_t* aData,
45
                       int aSize,
46
                       bool* aGotFrame,
47
                       DecodedData& aResults) override;
48
};
49
50
} // namespace mozilla
51
52
#endif // __FFmpegAACDecoder_h__