reference

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

Inheritance diagram for DirectShowVideo:

Public Member Functions

 DirectShowVideo ()
 
 ~DirectShowVideo ()
 
void tearDown ()
 
void clearValues ()
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
STDMETHODIMP QueryInterface (REFIID riid, void **ppvObject)
 
STDMETHODIMP SampleCB (double Time, IMediaSample *pSample)
 
STDMETHODIMP BufferCB (double Time, BYTE *pBuffer, long BufferLen)
 
bool loadMovie (of::filesystem::path path, ofPixelFormat format)
 
void update ()
 
bool isLoaded ()
 
void setVolume (float volPct)
 
float getVolume ()
 
double getDurationInSeconds ()
 
double getCurrentTimeInSeconds ()
 
void setPosition (float pct)
 
float getPosition ()
 
void setSpeed (float speed)
 
double getSpeed ()
 
bool needsRBSwap (ofPixelFormat srcFormat, ofPixelFormat dstFormat)
 
void processPixels (ofPixels &src, ofPixels &dst)
 
void play ()
 
void stop ()
 
void setPaused (bool bPaused)
 
void updatePlayState ()
 
bool isPlaying ()
 
bool isPaused ()
 
bool isLooping ()
 
void setLoop (bool loop)
 
bool isMovieDone ()
 
float getWidth ()
 
float getHeight ()
 
bool isFrameNew ()
 
void nextFrame ()
 
void preFrame ()
 
void setAproximateFrameF (float frameF)
 
void setAproximateFrame (int frame)
 
int getCurrentFrameNo ()
 
int getAproximateNoFrames ()
 
ofPixelsgetPixels ()
 

Protected Attributes

HRESULT hr
 
IGraphBuilder * m_pGraph
 
IMediaControl * m_pControl
 
IMediaEvent * m_pEvent
 
IMediaSeeking * m_pSeek
 
IMediaPosition * m_pPosition
 
IBasicAudio * m_pAudio
 
ISampleGrabber * m_pGrabber
 
IBaseFilter * m_pSourceFile
 
IBaseFilter * m_pGrabberF
 
IBasicVideo * m_pBasicVideo
 
IBaseFilter * m_pNullRenderer
 
REFERENCE_TIME timeNow
 
LONGLONG lPositionInSecs
 
LONGLONG lDurationInNanoSecs
 
LONGLONG lTotalDuration
 
REFERENCE_TIME rtNew
 
long lPosition
 
long lvolume
 
long evCode
 
long width
 
long height
 
double averageTimePerFrame
 
bool bFrameNew
 
bool bNewPixels
 
bool bVideoOpened
 
bool bPlaying
 
bool bPaused
 
bool bLoop
 
bool bEndReached
 
double movieRate
 
int curMovieFrame
 
int frameCount
 
CRITICAL_SECTION critSection
 
std::unique_ptr< IMediaSample, std::function< void(IMediaSample *)> > backSample
 
std::unique_ptr< IMediaSample, std::function< void(IMediaSample *)> > middleSample
 
ofPixels pixels
 
ofPixelFormat pixelFormat
 

Constructor & Destructor Documentation

◆ DirectShowVideo()

DirectShowVideo::DirectShowVideo ( )
inline

◆ ~DirectShowVideo()

DirectShowVideo::~DirectShowVideo ( )
inline

Member Function Documentation

◆ BufferCB()

STDMETHODIMP DirectShowVideo::BufferCB ( double  Time,
BYTE *  pBuffer,
long  BufferLen 
)
inline

◆ clearValues()

void DirectShowVideo::clearValues ( )
inline

◆ getAproximateNoFrames()

int DirectShowVideo::getAproximateNoFrames ( )
inline

◆ getCurrentFrameNo()

int DirectShowVideo::getCurrentFrameNo ( )
inline

◆ getCurrentTimeInSeconds()

double DirectShowVideo::getCurrentTimeInSeconds ( )
inline

◆ getDurationInSeconds()

double DirectShowVideo::getDurationInSeconds ( )
inline

◆ getHeight()

float DirectShowVideo::getHeight ( )
inline

◆ getPixels()

ofPixels & DirectShowVideo::getPixels ( )
inline

◆ getPosition()

float DirectShowVideo::getPosition ( )
inline

◆ getSpeed()

double DirectShowVideo::getSpeed ( )
inline

◆ getVolume()

float DirectShowVideo::getVolume ( )
inline

◆ getWidth()

float DirectShowVideo::getWidth ( )
inline

◆ isFrameNew()

bool DirectShowVideo::isFrameNew ( )
inline

◆ isLoaded()

bool DirectShowVideo::isLoaded ( )
inline

◆ isLooping()

bool DirectShowVideo::isLooping ( )
inline

◆ isMovieDone()

bool DirectShowVideo::isMovieDone ( )
inline

◆ isPaused()

bool DirectShowVideo::isPaused ( )
inline

◆ isPlaying()

bool DirectShowVideo::isPlaying ( )
inline

◆ loadMovie()

bool DirectShowVideo::loadMovie ( of::filesystem::path  path,
ofPixelFormat  format 
)
inline

◆ needsRBSwap()

bool DirectShowVideo::needsRBSwap ( ofPixelFormat  srcFormat,
ofPixelFormat  dstFormat 
)
inline

◆ nextFrame()

void DirectShowVideo::nextFrame ( )
inline

◆ play()

void DirectShowVideo::play ( )
inline

◆ preFrame()

void DirectShowVideo::preFrame ( )
inline

◆ processPixels()

void DirectShowVideo::processPixels ( ofPixels src,
ofPixels dst 
)
inline

◆ QueryInterface()

STDMETHODIMP DirectShowVideo::QueryInterface ( REFIID  riid,
void **  ppvObject 
)
inline

◆ SampleCB()

STDMETHODIMP DirectShowVideo::SampleCB ( double  Time,
IMediaSample *  pSample 
)
inline

◆ setAproximateFrame()

void DirectShowVideo::setAproximateFrame ( int  frame)
inline

◆ setAproximateFrameF()

void DirectShowVideo::setAproximateFrameF ( float  frameF)
inline

◆ setLoop()

void DirectShowVideo::setLoop ( bool  loop)
inline

◆ setPaused()

void DirectShowVideo::setPaused ( bool  bPaused)
inline

◆ setPosition()

void DirectShowVideo::setPosition ( float  pct)
inline

◆ setSpeed()

void DirectShowVideo::setSpeed ( float  speed)
inline

◆ setVolume()

void DirectShowVideo::setVolume ( float  volPct)
inline

◆ STDMETHODIMP_() [1/2]

DirectShowVideo::STDMETHODIMP_ ( ULONG  )
inline

◆ STDMETHODIMP_() [2/2]

DirectShowVideo::STDMETHODIMP_ ( ULONG  )
inline

◆ stop()

void DirectShowVideo::stop ( )
inline

◆ tearDown()

void DirectShowVideo::tearDown ( )
inline

◆ update()

void DirectShowVideo::update ( )
inline

◆ updatePlayState()

void DirectShowVideo::updatePlayState ( )
inline

Member Data Documentation

◆ averageTimePerFrame

double DirectShowVideo::averageTimePerFrame
protected

◆ backSample

std::unique_ptr<IMediaSample, std::function<void(IMediaSample*)> > DirectShowVideo::backSample
protected

◆ bEndReached

bool DirectShowVideo::bEndReached
protected

◆ bFrameNew

bool DirectShowVideo::bFrameNew
protected

◆ bLoop

bool DirectShowVideo::bLoop
protected

◆ bNewPixels

bool DirectShowVideo::bNewPixels
protected

◆ bPaused

bool DirectShowVideo::bPaused
protected

◆ bPlaying

bool DirectShowVideo::bPlaying
protected

◆ bVideoOpened

bool DirectShowVideo::bVideoOpened
protected

◆ critSection

CRITICAL_SECTION DirectShowVideo::critSection
protected

◆ curMovieFrame

int DirectShowVideo::curMovieFrame
protected

◆ evCode

long DirectShowVideo::evCode
protected

◆ frameCount

int DirectShowVideo::frameCount
protected

◆ height

long DirectShowVideo::height
protected

◆ hr

HRESULT DirectShowVideo::hr
protected

◆ lDurationInNanoSecs

LONGLONG DirectShowVideo::lDurationInNanoSecs
protected

◆ lPosition

long DirectShowVideo::lPosition
protected

◆ lPositionInSecs

LONGLONG DirectShowVideo::lPositionInSecs
protected

◆ lTotalDuration

LONGLONG DirectShowVideo::lTotalDuration
protected

◆ lvolume

long DirectShowVideo::lvolume
protected

◆ m_pAudio

IBasicAudio* DirectShowVideo::m_pAudio
protected

◆ m_pBasicVideo

IBasicVideo* DirectShowVideo::m_pBasicVideo
protected

◆ m_pControl

IMediaControl* DirectShowVideo::m_pControl
protected

◆ m_pEvent

IMediaEvent* DirectShowVideo::m_pEvent
protected

◆ m_pGrabber

ISampleGrabber* DirectShowVideo::m_pGrabber
protected

◆ m_pGrabberF

IBaseFilter* DirectShowVideo::m_pGrabberF
protected

◆ m_pGraph

IGraphBuilder* DirectShowVideo::m_pGraph
protected

◆ m_pNullRenderer

IBaseFilter* DirectShowVideo::m_pNullRenderer
protected

◆ m_pPosition

IMediaPosition* DirectShowVideo::m_pPosition
protected

◆ m_pSeek

IMediaSeeking* DirectShowVideo::m_pSeek
protected

◆ m_pSourceFile

IBaseFilter* DirectShowVideo::m_pSourceFile
protected

◆ middleSample

std::unique_ptr<IMediaSample, std::function<void(IMediaSample*)> > DirectShowVideo::middleSample
protected

◆ movieRate

double DirectShowVideo::movieRate
protected

◆ pixelFormat

ofPixelFormat DirectShowVideo::pixelFormat
protected

◆ pixels

ofPixels DirectShowVideo::pixels
protected

◆ rtNew

REFERENCE_TIME DirectShowVideo::rtNew
protected

◆ timeNow

REFERENCE_TIME DirectShowVideo::timeNow
protected

◆ width

long DirectShowVideo::width
protected

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