TuttleOFX  1
tuttle::plugin::av::writer::AVWriterPlugin Class Reference

LibAV plugin. More...

#include <AVWriterPlugin.hpp>

Inheritance diagram for tuttle::plugin::av::writer::AVWriterPlugin:
Collaboration diagram for tuttle::plugin::av::writer::AVWriterPlugin:

Public Member Functions

 AVWriterPlugin (OfxImageEffectHandle handle)
AVProcessParams getProcessParams ()
void disableAVOptionsForCodecOrFormat (const std::vector< AVPrivOption > &avPrivOpts, const std::string &codec)
void updatePixelFormat (const std::string &videoCodecName)
void changedParam (const OFX::InstanceChangedArgs &args, const std::string &paramName)
 called when a param has just had its value changed
void getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences)
 get the clip preferences
bool isIdentity (const OFX::RenderArguments &args, OFX::Clip *&identityClip, double &identityTime)
 client is identity function, returns the clip and time for the identity function
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::ChoiceParam_paramFormat
OFX::ChoiceParam_paramVideoCodec
OFX::ChoiceParam_paramAudioCodec
OFX::ChoiceParam_paramMainPreset
OFX::ChoiceParam_paramFormatPreset
OFX::ChoiceParam_paramVideoCodecPreset
OFX::ChoiceParam_paramAudioCodecPreset
OFX::IntParam_paramBitRate
OFX::BooleanParam_paramUseCustomFps
OFX::DoubleParam_paramCustomFps
OFX::ChoiceParam_paramVideoPixelFormat
LibAVVideoWriter _writer
bool _initWriter

Detailed Description

LibAV plugin.

Definition at line 36 of file AVWriterPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::av::writer::AVWriterPlugin::changedParam ( const OFX::InstanceChangedArgs args,
const std::string &  paramName 
) [virtual]

called when a param has just had its value changed

Reimplemented from tuttle::plugin::WriterPlugin.

Definition at line 215 of file AVWriterPlugin.cpp.

References _paramAudioCodec, _paramAudioCodecPreset, _paramFormat, _paramFormatPreset, _paramMainPreset, _paramVideoCodec, _paramVideoCodecPreset, _writer, disableAVOptionsForCodecOrFormat(), tuttle::plugin::av::LibAVVideoWriter::getAudioCodecPrivOpts(), tuttle::plugin::av::LibAVVideoWriter::getAudioCodecsShort(), tuttle::plugin::av::LibAVPreset::getAudioID(), tuttle::plugin::av::LibAVPreset::getFormatID(), tuttle::plugin::av::LibAVVideoWriter::getFormatPrivOpts(), tuttle::plugin::av::LibAVVideoWriter::getFormatsShort(), tuttle::plugin::av::LibAVFormatPreset::getParameters(), tuttle::plugin::av::LibAVVideoPreset::getParameters(), tuttle::plugin::av::LibAVAudioPreset::getParameters(), tuttle::plugin::av::LibAVFormatPreset::getPresetList(), tuttle::plugin::av::LibAVVideoPreset::getPresetList(), tuttle::plugin::av::LibAVAudioPreset::getPresetList(), tuttle::plugin::av::LibAVPreset::getPresetList(), OFX::ChoiceParam::getValue(), tuttle::plugin::av::LibAVVideoWriter::getVideoCodecPrivOpts(), tuttle::plugin::av::LibAVVideoWriter::getVideoCodecsShort(), tuttle::plugin::av::LibAVPreset::getVideoID(), tuttle::plugin::av::writer::kParamAudioCodec, tuttle::plugin::av::writer::kParamAudioPreset, tuttle::plugin::av::writer::kParamFormat, tuttle::plugin::av::writer::kParamFormatPreset, tuttle::plugin::av::writer::kParamMainPreset, tuttle::plugin::av::writer::kParamVideoCodec, tuttle::plugin::av::writer::kParamVideoPreset, tuttle::plugin::av::AVOptionPlugin< WriterPlugin >::setParameters(), OFX::ChoiceParam::setValue(), and updatePixelFormat().

Here is the call graph for this function:

void tuttle::plugin::av::writer::AVWriterPlugin::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 420 of file AVWriterPlugin.cpp.

References _initWriter, _writer, and tuttle::plugin::av::LibAVVideoWriter::finish().

Here is the call graph for this function:

void tuttle::plugin::av::writer::AVWriterPlugin::getClipPreferences ( OFX::ClipPreferencesSetter clipPreferences) [virtual]

get the clip preferences

Reimplemented from tuttle::plugin::WriterPlugin.

Definition at line 332 of file AVWriterPlugin.cpp.

References OFX::ClipPreferencesSetter::setOutputFrameVarying().

Here is the call graph for this function:

bool tuttle::plugin::av::writer::AVWriterPlugin::isIdentity ( const OFX::RenderArguments args,
OFX::Clip *&  identityClip,
double &  identityTime 
) [virtual]

client is identity function, returns the clip and time for the identity function

If the effect would do no processing for the given param set and render arguments, then this function should return true and set the identityClip pointer to point to the clip that is the identity and identityTime to be the time at which to access the clip for the identity operation.

Reimplemented from tuttle::plugin::WriterPlugin.

Definition at line 338 of file AVWriterPlugin.cpp.

void tuttle::plugin::av::writer::AVWriterPlugin::updatePixelFormat ( const std::string &  videoCodecName)

Definition at line 141 of file AVWriterPlugin.cpp.

References _paramVideoPixelFormat, OFX::ChoiceParam::appendOption(), and OFX::ChoiceParam::resetOptions().

Referenced by AVWriterPlugin(), and changedParam().

Here is the call graph for this function:


Field Documentation


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