reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

SharedDXGLTexture Class Reference
Inheritance diagram for SharedDXGLTexture:
ofMediaFoundationPlayer::METexture

Public Member Functions

 SharedDXGLTexture ()
 
 ~SharedDXGLTexture ()
 
bool allocate (ofPixelFormat afmt, int aw, int ah)
 
bool create (DXGI_FORMAT aDxFormat) override
 
bool transferFrame (IMFMediaEngine *aengine) override
 
bool isValid () override
 
HANDLE getGLDXHandle ()
 
ID3D11Texture2D * getDXTexture ()
 
bool draw (ofPixels &apix) override
 
bool updatePixels (ofTexture &aSrcTex, ofPixels &apix, ofPixelFormat aTargetPixFormat) override
 
bool lock ()
 
bool unlock ()
 
bool isLocked ()
 
- Public Member Functions inherited from ofMediaFoundationPlayer::METexture
int getWidth ()
 
int getHeight ()
 

Protected Attributes

ComPtr< ID3D11Texture2D > mDXTex { nullptr }
 
ComPtr< ID3D11Texture2D > stagingTexture { nullptr }
 
bool mBValid = false
 
HANDLE mGLDX_Handle
 
bool mBLocked = false
 
- Protected Attributes inherited from ofMediaFoundationPlayer::METexture
unsigned int mWidth = 0
 
unsigned int mHeight = 0
 
MFARGB bgColor { 0, 0, 0, 0 }
 
MFVideoNormalizedRect mNormalizedVidRect { 0.0f, 0.0f, 1.0f, 1.0f }
 
ofPixelFormat mOfPixFmt
 
std::shared_ptr< ofTexturemOfTex
 
ofPixels mSrcPixels
 

Additional Inherited Members

- Protected Member Functions inherited from ofMediaFoundationPlayer::METexture
bool _swapPixelsFromSrc4ChannelTo3 (ofPixels &aDstPix)
 

Constructor & Destructor Documentation

◆ SharedDXGLTexture()

SharedDXGLTexture::SharedDXGLTexture ( )
inline

◆ ~SharedDXGLTexture()

SharedDXGLTexture::~SharedDXGLTexture ( )

Member Function Documentation

◆ allocate()

bool SharedDXGLTexture::allocate ( ofPixelFormat  afmt,
int  aw,
int  ah 
)
virtual

◆ create()

bool SharedDXGLTexture::create ( DXGI_FORMAT  aDxFormat)
overridevirtual

◆ draw()

bool SharedDXGLTexture::draw ( ofPixels apix)
overridevirtual

◆ getDXTexture()

ID3D11Texture2D * SharedDXGLTexture::getDXTexture ( )
inline

◆ getGLDXHandle()

HANDLE SharedDXGLTexture::getGLDXHandle ( )
inline

◆ isLocked()

bool SharedDXGLTexture::isLocked ( )

◆ isValid()

bool SharedDXGLTexture::isValid ( )
inlineoverridevirtual

◆ lock()

bool SharedDXGLTexture::lock ( )

◆ transferFrame()

bool SharedDXGLTexture::transferFrame ( IMFMediaEngine *  aengine)
overridevirtual

◆ unlock()

bool SharedDXGLTexture::unlock ( )

◆ updatePixels()

bool SharedDXGLTexture::updatePixels ( ofTexture aSrcTex,
ofPixels apix,
ofPixelFormat  aTargetPixFormat 
)
overridevirtual

Member Data Documentation

◆ mBLocked

bool SharedDXGLTexture::mBLocked = false
protected

◆ mBValid

bool SharedDXGLTexture::mBValid = false
protected

◆ mDXTex

ComPtr<ID3D11Texture2D> SharedDXGLTexture::mDXTex { nullptr }
protected

◆ mGLDX_Handle

HANDLE SharedDXGLTexture::mGLDX_Handle
protected

◆ stagingTexture

ComPtr<ID3D11Texture2D> SharedDXGLTexture::stagingTexture { nullptr }
protected

The documentation for this class was generated from the following file: