reference

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

ofMediaFoundationPlayer::METexture Class Referenceabstract

#include <ofMediaFoundationPlayer.h>

Inheritance diagram for ofMediaFoundationPlayer::METexture:
SharedDXGLTexture WICTextureManager

Public Member Functions

virtual bool allocate (ofPixelFormat afmt, int aw, int ah)
 
virtual bool transferFrame (IMFMediaEngine *aengine)=0
 
virtual bool create (DXGI_FORMAT aDxFormat)=0
 
virtual bool isValid ()=0
 
virtual bool draw (ofPixels &apix)=0
 
virtual bool updatePixels (ofTexture &aSrcTex, ofPixels &apix, ofPixelFormat aTargetPixFormat)=0
 
int getWidth ()
 
int getHeight ()
 

Protected Member Functions

bool _swapPixelsFromSrc4ChannelTo3 (ofPixels &aDstPix)
 

Protected Attributes

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
 

Member Function Documentation

◆ _swapPixelsFromSrc4ChannelTo3()

bool ofMediaFoundationPlayer::METexture::_swapPixelsFromSrc4ChannelTo3 ( ofPixels aDstPix)
protected

◆ allocate()

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

Reimplemented in SharedDXGLTexture, and WICTextureManager.

◆ create()

virtual bool ofMediaFoundationPlayer::METexture::create ( DXGI_FORMAT  aDxFormat)
pure virtual

Implemented in SharedDXGLTexture, and WICTextureManager.

◆ draw()

virtual bool ofMediaFoundationPlayer::METexture::draw ( ofPixels apix)
pure virtual

Implemented in SharedDXGLTexture, and WICTextureManager.

◆ getHeight()

int ofMediaFoundationPlayer::METexture::getHeight ( )
inline

◆ getWidth()

int ofMediaFoundationPlayer::METexture::getWidth ( )
inline

◆ isValid()

virtual bool ofMediaFoundationPlayer::METexture::isValid ( )
pure virtual

Implemented in SharedDXGLTexture, and WICTextureManager.

◆ transferFrame()

virtual bool ofMediaFoundationPlayer::METexture::transferFrame ( IMFMediaEngine *  aengine)
pure virtual

Implemented in SharedDXGLTexture, and WICTextureManager.

◆ updatePixels()

virtual bool ofMediaFoundationPlayer::METexture::updatePixels ( ofTexture aSrcTex,
ofPixels apix,
ofPixelFormat  aTargetPixFormat 
)
pure virtual

Implemented in SharedDXGLTexture, and WICTextureManager.

Member Data Documentation

◆ bgColor

MFARGB ofMediaFoundationPlayer::METexture::bgColor { 0, 0, 0, 0 }
protected

◆ mHeight

unsigned int ofMediaFoundationPlayer::METexture::mHeight = 0
protected

◆ mNormalizedVidRect

MFVideoNormalizedRect ofMediaFoundationPlayer::METexture::mNormalizedVidRect { 0.0f, 0.0f, 1.0f, 1.0f }
protected

◆ mOfPixFmt

ofPixelFormat ofMediaFoundationPlayer::METexture::mOfPixFmt
protected

◆ mOfTex

std::shared_ptr<ofTexture> ofMediaFoundationPlayer::METexture::mOfTex
protected

◆ mSrcPixels

ofPixels ofMediaFoundationPlayer::METexture::mSrcPixels
protected

◆ mWidth

unsigned int ofMediaFoundationPlayer::METexture::mWidth = 0
protected

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