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 EMEVideoDecoder_h_
8 : #define EMEVideoDecoder_h_
9 :
10 : #include "GMPVideoDecoder.h"
11 :
12 : namespace mozilla {
13 :
14 : class CDMProxy;
15 : class MediaRawData;
16 : class TaskQueue;
17 :
18 0 : class EMEVideoDecoder : public GMPVideoDecoder
19 : {
20 : public:
21 : EMEVideoDecoder(CDMProxy* aProxy, const GMPVideoDecoderParams& aParams);
22 :
23 : private:
24 : void InitTags(nsTArray<nsCString>& aTags) override;
25 : nsCString GetNodeId() override;
26 0 : uint32_t DecryptorId() const override { return mDecryptorId; }
27 : GMPUniquePtr<GMPVideoEncodedFrame>
28 : CreateFrame(MediaRawData* aSample) override;
29 :
30 : RefPtr<CDMProxy> mProxy;
31 : uint32_t mDecryptorId;
32 : };
33 :
34 : } // namespace mozilla
35 :
36 : #endif // EMEVideoDecoder_h_
|