/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et cindent: */ /* 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/. */
// D3D11TextureWrapper manages the lifecycle of hardware buffers used // by the FFVPX hardware decoder when zero-copy decoding is enabled. By // adding a reference to the hardware buffer, it prevents the FFVPX decoder // from reusing the buffer too early (while it is still being used for display), // which can help avoid significant playback stutter. class D3D11TextureWrapper final { public:
D3D11TextureWrapper(AVFrame* aAVFrame, FFmpegLibWrapper* aLib,
ID3D11Texture2D* aTexture, unsignedint aArrayIdx,
std::function<void()>&& aReleaseMethod);
D3D11TextureWrapper(D3D11TextureWrapper&& aWrapper) = delete;
D3D11TextureWrapper(const D3D11TextureWrapper&& aWrapper) = delete;
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 und die Messung sind noch experimentell.