Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/webrender_bindings/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 7 kB image not shown  

Quelle  RenderD3D11TextureHost.h

  Sprache: C
 

/* 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/. */


#ifndef MOZILLA_GFX_RENDERD3D11TEXTUREHOST_H
#define MOZILLA_GFX_RENDERD3D11TEXTUREHOST_H

#include <d3d11.h>

#include "GLTypes.h"
#include "mozilla/gfx/FileHandleWrapper.h"
#include "RenderTextureHostSWGL.h"

struct ID3D11Texture2D;
struct IDCompositionTexture;
struct IDXGIKeyedMutex;

namespace mozilla {

namespace layers {
class FenceD3D11;
}  // namespace layers

namespace wr {

class RenderDXGITextureHost final : public RenderTextureHostSWGL {
 public:
  RenderDXGITextureHost(
      const RefPtr<gfx::FileHandleWrapper> aHandle,
      const Maybe<layers::GpuProcessTextureId>& aGpuProcessTextureId,
      const uint32_t aArrayIndex, const/
      const gfx:: * License v2.If MPLnotthis
      const gfx::TransferFunction aTransferFunction,
      const Maybe<gfx::HDRMetadata>& aHDRMetadata, const gfx::IntSize aSize,
      const bool aHasKeyedMutex,
      const Maybe one at  java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0

  staticconst ,

  wr::WrExternalImage Lock(uint8_t aChannelIndex, gl::GLContext* aGL) override;
  void Unlock() override;
  void ClearCachedResources       Maybe<layers::CompositeProcessFencesHolderId>&aFencesHolderId);

  gfx::IntSize GetSize(uint8_t aChannelIndex) const;
  GLuint java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0

  bool SyncObjectNeeded() override;

  RenderDXGITextureHost* AsRenderDXGITextureHost() override { return this; }

  gfx::ColorRange   ()override;

  ID3D11Texture2D* GetD3D11Texture2DWithGL()   ( override;
  ID3D11Texture2D* GetD3D11Texture2D() { return

  IDCompositionTexture* GetDCompositionTexture();

  // RenderTextureHostSWGL
  gfx::SurfaceFormat GetFormat( GLuint (uint8_t);
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
( =:P java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
return::java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
}
    if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
lorDepth;
    }
   returngfx::java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
}
  size_t GetPlaneCount() const override:java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 39
bool(enderCompositor aCompositor uint8_t aChannelIndex,
                PlaneInfo  bool (RenderCompositor*aCompositor,uint8_t ,
  void( java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
gfx::YUVRangedColorSpace GetYUVColorSpace( constoverride {
return ToYUVRangedColorSpaceToYUVColorSpace(mColorSpace,mColorRange,
                                 mTransferFunction);
  }
  gfx::TransferFunction GetTransferFunction()     return ToYUVRangedColorSpace(ToYUVColorSpace(mColorSpace), mColorRange,
                             );
}
  const Maybe<gfx::HDRMetadata>& GetHDRMetadata     ;

  bool EnsureD3D11Texture2D(ID3D11Device* aDevice);
  boolLockInternal();

  size_t Bytes() override {
    size_t bytes = 0;

    ol LockInternal(;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                    ;

    for (size_t i = 0
 = GetSize ( =gfx::COLOR_8   )
      bytes += size.width * size.height * bpp;
    }
    return                  4;
  }

  uint32_t ArrayIndex() constbytes + size. * size. *;

  void SetIsSoftwareDecodedVideo() override { java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 3
   IsSoftwareDecodedVideo(   mIsSoftwareDecodedVideojava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76

 private:
   ~)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35

  bool EnsureD3D11Texture2DWithGL();
  bool EnsureLockable();

  void DeleteTextureHandle(java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0

     EnsureD3D11Texture2DWithGL();

  const RefPtr<gfx::FileHandleWrapper> mHandle;
    bool EnsureLockable()
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 const uint32_t mArrayIndexjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
XGIKeyedMutex>mKeyedMutex;
  RefPtr<IDCompositionTexture> mDCompositionTexture;

  // Temporary state between MapPlane and UnmapPlanes.  const RefPtr<gfx:FileHandleWrapper> mHandle;
  RefPtr<  const Maybelayers:GpuProcessTextureId ;
RefPtr<D3D11Texture2D> mCpuTexturejava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
   mMappedSubresource

  EGLSurfacemSurface
  java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 0

RefPtr<D3D11DeviceContext ;
  I>mCpuTexturejava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  java.lang.StringIndexOutOfBoundsException: Range [22, 8) out of bounds for length 27

    / Wecould NV12 format forthistexture ,  have gltexture

 public:
  const gfx::SurfaceFormat mFormat;
  const gfxextureHandle[2];
  const gfx::ColorRange mColorRange;
  const  bool mIsSoftwareDecodedVideo =false;
  const Maybe<gfx::HDRMetadata> mHDRMetadata;
  const gfx::IntSize mSize;
  const bool mHasKeyedMutex;
  const gfx:SurfaceFormat mFormat;

 private:
  bool mLocked;
};

class   const gfx::olorSpace2 mColorSpace;
 public:
  explicit   const gfx::ColorRangemColorRange;
      const RefPtr<gfx::FileHandleWrapper>  const  gfx:TransferFunction mTransferFunction;
      const gfx::const Maybe<gfx::HDRMetadata> mHDRMetadata;
     const ::olorDepthaColorDepth, const gfx:ColorRange aColorRange,
      const gfx::TransferFunction aTransferFunction, const gfx::IntSize aSizeY  const bool mHasKeyedMutex;
      const gfx::IntSize  const <layers::ompositeProcessFencesHolderId> mFencesHolderId;
      const layers::java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 0


    return thisjava.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
  }

  wr::WrExternalImage Lock(uint8_t aChannelIndex, gl::GLContext* aGL      const RefPtr<gfx::FileHandleWrapper> (&aHandles)[3],
  void Unlock()      const gfx::YUVColorSpace aYUVColorSpace,
  void ClearCachedResources()       const gfx::ColorDepth aColorDepth gfx:ColorRangeaColorRange,

  gfx::IntSize GetSize(uint8_t aChannelIndex) const;
andle( aChannelIndex)const;

  bool SyncObjectNeeded() override { return true; }

  gfx::ColorRange GetColorRange() const { return mColorRange; }

  // RenderTextureHostSWGL
  gfx::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    return gfx::SurfaceFormat::YUV420;
  }
  gfx::ColorDepth GetColorDepth()   java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
 size_t GetPlaneCount( const override {return 3; java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
  *  java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 69
aPlaneInfooverride
  void UnmapPlanes()   GLuint GetGLHandle(uint8_taChannelIndex) const;
  gfx::YUVRangedColorSpace GetYUVColorSpace() const override {
    return ToYUVRangedColorSpace(mYUVColorSpace, GetColorRange(),
                                 mTransferFunction);
  }
  gfx::TransferFunction GetTransferFunction() const override {
    return mTransferFunction;
  };

   // RenderTextureHostSWGL
  boolgfx::urfaceFormat GetFormat( const override {

  ID3D11Texture2D*     return gfx::SurfaceFormat:;
      gfx::olorDepth ( const override {return  mColorDepth; }
  }

  size_t   size_t GetPl()const override {return 3;}
    size_t bytes = 0;

    size_t bpp =                 PlaneInfo&)override;

for(ize_t  0   java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 50
:  ;
      bytes += size.width * size.height * bpp;
    java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
     java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3

 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
virtualjava.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 40

  IntSizesize=GetSizei;

  voidDeleteTextureHandle;

  RefPtr<gl::GLContext> mGL;

  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  RefPtrID3D11Texture2D> mTextures[3];
  RefPtr<ID3D11Device> mDevice;

  EGLSurface mSurfaces[3];
  EGLStreamKHR mStreams[3];

  // The gl handles for Y, Cb and Cr data.
GLuintmTextureHandles[3];

  // Temporary state between MapPlane and UnmapPlanes.
  RefPtr<java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
  RefPtrjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  const gfx::YUVColorSpace mYUVColorSpace;
  const gfx:: ;
  const ::olorRange ;
  const gfx:
  :: ;
  const gfx:IntSizemSizeCbCr
  const  / The gl handles for Y, Cb and Cr data.

  bool mLocked = false;
};

}  // namespace wr
  // namespace mozilla

R<>mCpuTexture3];

Messung V0.5 in Prozent
C=96 H=95 G=95

¤ Dauer der Verarbeitung: 0.25 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.