/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// A shared ID3D11Texture2D created by the compositor device. // Expected to be used in GPU process. class D3D11ZeroCopyTextureImage : public Image { public:
D3D11ZeroCopyTextureImage(ID3D11Texture2D* aTexture, uint32_t aArrayIndex, const gfx::IntSize& aSize, const gfx::IntRect& aRect,
gfx::ColorSpace2 aColorSpace,
gfx::ColorRange aColorRange,
gfx::ColorDepth aColorDepth); virtual ~D3D11ZeroCopyTextureImage() = default;
// Image class that wraps ID3D11Texture2D of IMFSample // Expected to be used in GPU process. class D3D11TextureIMFSampleImage final : public D3D11ZeroCopyTextureImage { public:
D3D11TextureIMFSampleImage(IMFSample* aVideoSample, ID3D11Texture2D* aTexture,
uint32_t aArrayIndex, const gfx::IntSize& aSize, const gfx::IntRect& aRect,
gfx::ColorSpace2 aColorSpace,
gfx::ColorRange aColorRange,
gfx::ColorDepth aColorDepth); virtual ~D3D11TextureIMFSampleImage() = default;
// Image class that wraps ID3D11Texture2D of AVFrame from ffvpx hw decoder // Expected to be used in GPU process. class D3D11TextureAVFrameImage final : public D3D11ZeroCopyTextureImage { public:
D3D11TextureAVFrameImage(D3D11TextureWrapper* aWrapper, const gfx::IntSize& aSize, const gfx::IntRect& aRect,
gfx::ColorSpace2 aColorSpace,
gfx::ColorRange aColorRange,
gfx::ColorDepth aColorDepth); virtual ~D3D11TextureAVFrameImage() = default;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.