TuttleOFX  1
tuttle::plugin::av::reader::AVReaderPlugin Class Reference

AudioVideo plugin. More...

#include <AVReaderPlugin.hpp>

Inheritance diagram for tuttle::plugin::av::reader::AVReaderPlugin:
Collaboration diagram for tuttle::plugin::av::reader::AVReaderPlugin:

Public Member Functions

 AVReaderPlugin (OfxImageEffectHandle handle)
bool ensureVideoIsOpen ()
 Open the video if not already opened.
AVReaderParams getProcessParams () const
void updateVisibleTools ()
void changedParam (const OFX::InstanceChangedArgs &args, const std::string &paramName)
 called when a param has just had its value changed
bool getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod)
 The get RoD action.
void getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences)
 get the clip preferences
bool getTimeDomain (OfxRangeD &range)
 what is the time domain of this effect, valid only in the general context
void beginSequenceRender (const OFX::BeginSequenceRenderArguments &args)
 client begin sequence render function
void render (const OFX::RenderArguments &args)
 The overridden render function.
void endSequenceRender (const OFX::EndSequenceRenderArguments &args)
 client end sequence render function

Data Fields

OFX::Clip_clipDst
 Destination image clip.
OFX::StringParam_paramFilepath
 video filepath
OFX::BooleanParam_paramUseCustomSAR
 Keep sample aspect ratio.
OFX::DoubleParam_paramCustomSAR
 Custom SAR to use.
bool _errorInFile
bool _initReader
LibAVVideoReader _reader

Detailed Description

AudioVideo plugin.

Definition at line 25 of file AVReaderPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::av::reader::AVReaderPlugin::beginSequenceRender ( const OFX::BeginSequenceRenderArguments args) [virtual]

client begin sequence render function

Reimplemented from OFX::ImageEffect.

Definition at line 160 of file AVReaderPlugin.cpp.

References ensureVideoIsOpen().

Here is the call graph for this function:

void tuttle::plugin::av::reader::AVReaderPlugin::changedParam ( const OFX::InstanceChangedArgs args,
const std::string &  paramName 
) [virtual]
void tuttle::plugin::av::reader::AVReaderPlugin::endSequenceRender ( const OFX::EndSequenceRenderArguments args) [virtual]

client end sequence render function

client end sequence render function, this is one of the few that must be set

Reimplemented from OFX::ImageEffect.

Definition at line 201 of file AVReaderPlugin.cpp.

References _reader, and tuttle::plugin::av::LibAVVideoReader::close().

Here is the call graph for this function:

bool tuttle::plugin::av::reader::AVReaderPlugin::ensureVideoIsOpen ( )

Open the video if not already opened.

Returns:
If the video file is now open, else the file doesn't exist, is unrecognized or is corrupted.

Definition at line 54 of file AVReaderPlugin.cpp.

References _errorInFile, _paramFilepath, _reader, OFX::StringParam::getValue(), tuttle::plugin::av::LibAVVideoReader::isOpen(), and tuttle::plugin::av::LibAVVideoReader::open().

Referenced by beginSequenceRender(), getClipPreferences(), getRegionOfDefinition(), getTimeDomain(), and render().

Here is the call graph for this function:

AVReaderParams tuttle::plugin::av::reader::AVReaderPlugin::getProcessParams ( ) const

Definition at line 41 of file AVReaderPlugin.cpp.

References tuttle::plugin::av::reader::AVReaderParams::_filepath, _paramFilepath, and OFX::StringParam::getValue().

Here is the call graph for this function:

bool tuttle::plugin::av::reader::AVReaderPlugin::getRegionOfDefinition ( const OFX::RegionOfDefinitionArguments args,
OfxRectD rod 
) [virtual]

The get RoD action.

If the effect wants change the rod from the default value (which is the union of RoD's of all input clips) it should set the rod argument and return true.

This is all in cannonical coordinates.

Implements tuttle::plugin::ReaderPlugin.

Definition at line 145 of file AVReaderPlugin.cpp.

References _paramCustomSAR, _paramUseCustomSAR, _reader, tuttle::plugin::av::LibAVVideoReader::aspectRatio(), ensureVideoIsOpen(), OFX::DoubleParam::getValue(), OFX::BooleanParam::getValue(), tuttle::plugin::av::LibAVVideoReader::height(), tuttle::plugin::av::LibAVVideoReader::width(), OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:

bool tuttle::plugin::av::reader::AVReaderPlugin::getTimeDomain ( OfxRangeD range) [virtual]

what is the time domain of this effect, valid only in the general context

get the time domain

return true if range was set, otherwise the default (the union of the time domain of all input clips) is used

Reimplemented from tuttle::plugin::ReaderPlugin.

Definition at line 132 of file AVReaderPlugin.cpp.

References _reader, ensureVideoIsOpen(), OfxRangeD::max, OfxRangeD::min, and tuttle::plugin::av::LibAVVideoReader::nbFrames().

Here is the call graph for this function:

void tuttle::plugin::av::reader::AVReaderPlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Reimplemented from tuttle::plugin::ReaderPlugin.

Definition at line 169 of file AVReaderPlugin.cpp.

References _initReader, _reader, tuttle::plugin::av::eAVParamFormat, tuttle::plugin::av::eAVParamVideo, ensureVideoIsOpen(), and tuttle::plugin::av::AVOptionPlugin< ReaderPlugin >::setParameters().

Here is the call graph for this function:

void tuttle::plugin::av::reader::AVReaderPlugin::updateVisibleTools ( )

Definition at line 35 of file AVReaderPlugin.cpp.

References changedParam(), tuttle::plugin::av::reader::kParamUseCustomSAR, and OFX::ImageEffect::timeLineGetTime().

Referenced by AVReaderPlugin().

Here is the call graph for this function:


Field Documentation

Destination image clip.

Reimplemented from tuttle::plugin::ReaderPlugin.

Definition at line 47 of file AVReaderPlugin.hpp.

Referenced by AVReaderPlugin(), and getClipPreferences().


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