Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
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 ADTS_DECODER_H_
8 : #define ADTS_DECODER_H_
9 :
10 : #include "ChannelMediaDecoder.h"
11 :
12 : namespace mozilla {
13 :
14 : class MediaContainerType;
15 :
16 0 : class ADTSDecoder : public ChannelMediaDecoder
17 : {
18 : public:
19 : // MediaDecoder interface.
20 0 : explicit ADTSDecoder(MediaDecoderInit& aInit)
21 0 : : ChannelMediaDecoder(aInit)
22 : {
23 0 : }
24 : ChannelMediaDecoder* Clone(MediaDecoderInit& aInit) override;
25 : MediaDecoderStateMachine* CreateStateMachine() override;
26 :
27 : // Returns true if the ADTS backend is pref'ed on, and we're running on a
28 : // platform that is likely to have decoders for the format.
29 : static bool IsEnabled();
30 : static bool IsSupportedType(const MediaContainerType& aContainerType);
31 : };
32 :
33 : } // namespace mozilla
34 :
35 : #endif // !ADTS_DECODER_H_
|