Blender V5.3
blender::io::otio::OTIOTest Class Reference

Inherits blender::BlendfileLoadingBaseTest.

Protected Member Functions

void SetUp () override
void TearDown () override
Scene * new_scene (const char *name="Timeline")
void set_sequencer_scene (Scene *scene)
void export_otio (Scene *scene)
Scene * import_otio ()
Scene * round_trip (Scene *scene)
SerializableObject::Retainer< Timeline > read_otio ()
void write_otio (Timeline *timeline)
bool has_report (const char *text)
std::string asset_path (const char *relative_path)
std::string copy_image (const char *filename)
Strip * add_effect (Scene *scene, ListBaseT< Strip > &seqbase, const StripType type, const char *name, const int channel, const int start, const int length, Strip *input1=nullptr, Strip *input2=nullptr)
Strip * add_color (Scene *scene, const char *name, const int channel, const int start, int length)
Strip * add_images (Scene *scene, const char *name, const int channel, const int start, const Span< const char * > filenames)
void expect_round_trip (Scene *scene)
Protected Member Functions inherited from blender::BlendfileLoadingBaseTest
void TearDown () override
bool blendfile_load (const char *filepath)
void blendfile_free ()
virtual void depsgraph_create (eEvaluationMode depsgraph_evaluation_mode)
virtual void depsgraph_free ()

Static Protected Member Functions

static void SetUpTestCase ()
static void TearDownTestCase ()
static PointerRNA rna (Scene *scene, Strip *strip)
static std::string dump (Scene *scene, Strip *strip)
static void expect_same_strips (Scene *scene_a, ListBaseT< Strip > &strips_a, Scene *scene_b, ListBaseT< Strip > &strips_b)

Protected Attributes

Main * bmain = nullptr
bContext * C = nullptr
ReportList reports {}
Vector< std::unique_ptr< bContextStore > > context_store
std::string directory
std::string otio_path
Protected Attributes inherited from blender::BlendfileLoadingBaseTest
struct BlendFileData * bfile = nullptr
struct Depsgraph * depsgraph = nullptr

Additional Inherited Members

Static Public Member Functions inherited from blender::BlendfileLoadingBaseTest
static void SetUpTestCase ()
static void TearDownTestCase ()

Detailed Description

Definition at line 67 of file otio_round_trip_test.cc.

Member Function Documentation

◆ add_color()

Strip * blender::io::otio::OTIOTest::add_color ( Scene * scene,
const char * name,
const int channel,
const int start,
int length )
inlineprotected

◆ add_effect()

Strip * blender::io::otio::OTIOTest::add_effect ( Scene * scene,
ListBaseT< Strip > & seqbase,
const StripType type,
const char * name,
const int channel,
const int start,
const int length,
Strip * input1 = nullptr,
Strip * input2 = nullptr )
inlineprotected

◆ add_images()

Strip * blender::io::otio::OTIOTest::add_images ( Scene * scene,
const char * name,
const int channel,
const int start,
const Span< const char * > filenames )
inlineprotected

◆ asset_path()

std::string blender::io::otio::OTIOTest::asset_path ( const char * relative_path)
inlineprotected

Definition at line 174 of file otio_round_trip_test.cc.

References BLI_path_join, and FILE_MAX.

Referenced by copy_image().

◆ copy_image()

std::string blender::io::otio::OTIOTest::copy_image ( const char * filename)
inlineprotected

◆ dump()

std::string blender::io::otio::OTIOTest::dump ( Scene * scene,
Strip * strip )
inlinestaticprotected

Definition at line 236 of file otio_round_trip_test.cc.

References rna(), and blender::io::otio::rna_to_dictionary().

Referenced by expect_same_strips().

◆ expect_round_trip()

void blender::io::otio::OTIOTest::expect_round_trip ( Scene * scene)
inlineprotected

◆ expect_same_strips()

void blender::io::otio::OTIOTest::expect_same_strips ( Scene * scene_a,
ListBaseT< Strip > & strips_a,
Scene * scene_b,
ListBaseT< Strip > & strips_b )
inlinestaticprotected

◆ export_otio()

void blender::io::otio::OTIOTest::export_otio ( Scene * scene)
inlineprotected

◆ has_report()

bool blender::io::otio::OTIOTest::has_report ( const char * text)
inlineprotected

◆ import_otio()

Scene * blender::io::otio::OTIOTest::import_otio ( )
inlineprotected

◆ new_scene()

Scene * blender::io::otio::OTIOTest::new_scene ( const char * name = "Timeline")
inlineprotected

◆ read_otio()

SerializableObject::Retainer< Timeline > blender::io::otio::OTIOTest::read_otio ( )
inlineprotected

◆ rna()

PointerRNA blender::io::otio::OTIOTest::rna ( Scene * scene,
Strip * strip )
inlinestaticprotected

Definition at line 189 of file otio_round_trip_test.cc.

References blender::Scene::id, and blender::RNA_pointer_create_discrete().

Referenced by dump().

◆ round_trip()

Scene * blender::io::otio::OTIOTest::round_trip ( Scene * scene)
inlineprotected

Definition at line 146 of file otio_round_trip_test.cc.

References EXPECT_NE, export_otio(), and import_otio().

Referenced by expect_round_trip().

◆ set_sequencer_scene()

void blender::io::otio::OTIOTest::set_sequencer_scene ( Scene * scene)
inlineprotected

◆ SetUp()

◆ SetUpTestCase()

void blender::io::otio::OTIOTest::SetUpTestCase ( )
inlinestaticprotected

◆ TearDown()

void blender::io::otio::OTIOTest::TearDown ( )
inlineoverrideprotected

◆ TearDownTestCase()

void blender::io::otio::OTIOTest::TearDownTestCase ( )
inlinestaticprotected

◆ write_otio()

void blender::io::otio::OTIOTest::write_otio ( Timeline * timeline)
inlineprotected

Definition at line 159 of file otio_round_trip_test.cc.

References otio_path.

Member Data Documentation

◆ bmain

Main* blender::io::otio::OTIOTest::bmain = nullptr
protected

Definition at line 69 of file otio_round_trip_test.cc.

Referenced by add_images(), new_scene(), SetUp(), and TearDown().

◆ C

bContext* blender::io::otio::OTIOTest::C = nullptr
protected

◆ context_store

Vector<std::unique_ptr<bContextStore> > blender::io::otio::OTIOTest::context_store
protected

Definition at line 72 of file otio_round_trip_test.cc.

Referenced by set_sequencer_scene().

◆ directory

std::string blender::io::otio::OTIOTest::directory
protected

Definition at line 73 of file otio_round_trip_test.cc.

Referenced by add_images(), copy_image(), SetUp(), and TearDown().

◆ otio_path

std::string blender::io::otio::OTIOTest::otio_path
protected

Definition at line 74 of file otio_round_trip_test.cc.

Referenced by export_otio(), import_otio(), read_otio(), SetUp(), and write_otio().

◆ reports

ReportList blender::io::otio::OTIOTest::reports {}
protected

Definition at line 71 of file otio_round_trip_test.cc.

Referenced by export_otio(), has_report(), import_otio(), SetUp(), and TearDown().


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