Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef __FFmpegDecoderModule_h__ |
michael@0 | 8 | #define __FFmpegDecoderModule_h__ |
michael@0 | 9 | |
michael@0 | 10 | #include "PlatformDecoderModule.h" |
michael@0 | 11 | |
michael@0 | 12 | namespace mozilla |
michael@0 | 13 | { |
michael@0 | 14 | |
michael@0 | 15 | #ifdef PR_LOGGING |
michael@0 | 16 | extern PRLogModuleInfo* GetFFmpegDecoderLog(); |
michael@0 | 17 | #define FFMPEG_LOG(...) PR_LOG(GetFFmpegDecoderLog(), PR_LOG_DEBUG, (__VA_ARGS__)) |
michael@0 | 18 | #else |
michael@0 | 19 | #define FFMPEG_LOG(...) |
michael@0 | 20 | #endif |
michael@0 | 21 | |
michael@0 | 22 | class FFmpegDecoderModule : public PlatformDecoderModule |
michael@0 | 23 | { |
michael@0 | 24 | public: |
michael@0 | 25 | FFmpegDecoderModule(); |
michael@0 | 26 | virtual ~FFmpegDecoderModule(); |
michael@0 | 27 | |
michael@0 | 28 | static bool Link(); |
michael@0 | 29 | |
michael@0 | 30 | virtual nsresult Shutdown() MOZ_OVERRIDE; |
michael@0 | 31 | |
michael@0 | 32 | virtual MediaDataDecoder* CreateH264Decoder( |
michael@0 | 33 | const mp4_demuxer::VideoDecoderConfig& aConfig, |
michael@0 | 34 | mozilla::layers::LayersBackend aLayersBackend, |
michael@0 | 35 | mozilla::layers::ImageContainer* aImageContainer, |
michael@0 | 36 | MediaTaskQueue* aVideoTaskQueue, |
michael@0 | 37 | MediaDataDecoderCallback* aCallback) MOZ_OVERRIDE; |
michael@0 | 38 | |
michael@0 | 39 | virtual MediaDataDecoder* CreateAACDecoder( |
michael@0 | 40 | const mp4_demuxer::AudioDecoderConfig& aConfig, |
michael@0 | 41 | MediaTaskQueue* aAudioTaskQueue, |
michael@0 | 42 | MediaDataDecoderCallback* aCallback) MOZ_OVERRIDE; |
michael@0 | 43 | |
michael@0 | 44 | private: |
michael@0 | 45 | static bool sFFmpegLinkDone; |
michael@0 | 46 | }; |
michael@0 | 47 | |
michael@0 | 48 | } // namespace mozilla |
michael@0 | 49 | |
michael@0 | 50 | #endif // __FFmpegDecoderModule_h__ |