MCPcopy Create free account
hub / github.com/Tencent/libpag / ExternalDecoderFactory

Class ExternalDecoderFactory

src/rendering/video/VideoDecoderFactory.cpp:57–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57class ExternalDecoderFactory : public VideoDecoderFactory {
58 public:
59 bool isHardwareBacked() const override {
60 return false;
61 }
62
63 protected:
64 std::unique_ptr<VideoDecoder> onCreateDecoder(const VideoFormat& format) const override {
65 std::lock_guard<std::mutex> autoLock(factoryLocker);
66 if (GetSoftwareDecoderFactory() == nullptr) {
67 return nullptr;
68 }
69
70 return SoftwareDecoderWrapper::Wrap(GetSoftwareDecoderFactory()->createSoftwareDecoder(),
71 format);
72 }
73};
74
75class SoftwareAVCDecoderFactory : public VideoDecoderFactory {
76 public:

Calls

no outgoing calls

Tested by

no test coverage detected