Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/conform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <iostream>

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

// Look for media with this name in this folder.
std::string find_matching_media(std::string const& name, std::string const& folder)
Expand Down
2 changes: 1 addition & 1 deletion examples/flatten_video_tracks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <iostream>
#include <sstream>

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

int main(int argc, char** argv)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/io_perf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "util.h"

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

using chrono_time_point = std::chrono::steady_clock::time_point;

Expand Down
2 changes: 1 addition & 1 deletion examples/python_adapters_child_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdio.h>
#endif // _WINDOWS

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

class PythonAdapters
{
Expand Down
2 changes: 1 addition & 1 deletion examples/python_adapters_embed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <combaseapi.h>
#endif // _WINDOWS

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

class PythonAdapters
{
Expand Down
4 changes: 2 additions & 2 deletions examples/summarize_timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#include <iostream>

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otime = opentime::OPENTIME_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;
namespace otime = opentime::OPENTIME_VERSION_NS;

void summarize_effects(otio::SerializableObject::Retainer<otio::Item> const& item)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/upgrade_downgrade_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// demonstrates a minimal custom SerializableObject written in C++ with upgrade
// and downgrade functions

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

// define the custom class
class SimpleClass : public otio::SerializableObject
Expand Down
2 changes: 1 addition & 1 deletion examples/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <unistd.h>
#endif // _WINDOWS

namespace otio = opentimelineio::OPENTIMELINEIO_VERSION;
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION_NS;

namespace examples {

Expand Down
2 changes: 1 addition & 1 deletion examples/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ std::string create_temp_dir();
std::vector<std::string> glob(std::string const& path, std::string const& pattern);

// Print an error to std::cerr.
void print_error(opentimelineio::OPENTIMELINEIO_VERSION::ErrorStatus const&);
void print_error(opentimelineio::OPENTIMELINEIO_VERSION_NS::ErrorStatus const&);

}
4 changes: 2 additions & 2 deletions src/opentime/errorStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "opentime/errorStatus.h"

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

std::string
ErrorStatus::outcome_to_string(Outcome o)
Expand All @@ -29,4 +29,4 @@ ErrorStatus::outcome_to_string(Outcome o)
};
}

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentime/errorStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "opentime/version.h"
#include <string>

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

/// @brief This struct represents the return status of a function.
struct OPENTIME_API_TYPE ErrorStatus
Expand Down Expand Up @@ -65,4 +65,4 @@ is_error(const ErrorStatus* es) noexcept
return es && ErrorStatus::Outcome::OK != es->outcome;
}

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentime/rationalTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <cmath>
#include <vector>

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

RationalTime RationalTime::_invalid_time{ 0, RationalTime::_invalid_rate };

Expand Down Expand Up @@ -661,4 +661,4 @@ RationalTime::to_time_string() const
microseconds_str.c_str());
}

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentime/rationalTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <limits>
#include <string>

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

/// @brief This enumeration provides options for drop frame timecode.
enum OPENTIME_API_TYPE IsDropFrameRate : int
Expand Down Expand Up @@ -423,4 +423,4 @@ class OPENTIME_API_TYPE RationalTime
}
};

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentime/stringPrintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <memory>
#include <string>

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

/// @brief This provides printf style functionality for std::string.
template <typename... Args>
Expand All @@ -27,4 +27,4 @@ string_printf(char const* format, Args... args)
return std::string(buf.get());
}

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentime/timeRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <algorithm>
#include <string>

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

/// @brief This default epsilon_s value is used in comparison between floating numbers.
///
Expand Down Expand Up @@ -460,4 +460,4 @@ class OPENTIME_API_TYPE TimeRange
}
};

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentime/timeTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "opentime/version.h"
#include <string>

namespace opentime { namespace OPENTIME_VERSION {
namespace opentime { namespace OPENTIME_VERSION_NS {

/// @brief One-dimensional time transform.
class OPENTIME_API_TYPE TimeTransform
Expand Down Expand Up @@ -82,4 +82,4 @@ class OPENTIME_API_TYPE TimeTransform
double _rate;
};

}} // namespace opentime::OPENTIME_VERSION
}} // namespace opentime::OPENTIME_VERSION_NS
5 changes: 3 additions & 2 deletions src/opentime/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
#define OPENTIME_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define OPENTIME_VERSION_PATCH @PROJECT_VERSION_PATCH@
#define OPENTIME_VERSION v@PROJECT_VERSION_MAJOR@_@PROJECT_VERSION_MINOR@_@PROJECT_VERSION_PATCH@
#define OPENTIME_VERSION_NS v@PROJECT_VERSION_MAJOR@_@PROJECT_VERSION_MINOR@

namespace opentime {
namespace OPENTIME_VERSION {
namespace OPENTIME_VERSION_NS {
}

using namespace OPENTIME_VERSION;
using namespace OPENTIME_VERSION_NS;
} // namespace opentime
4 changes: 2 additions & 2 deletions src/opentimelineio/CORE_VERSION_MAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// version of an older library.
#include "opentimelineio/typeRegistry.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

const label_to_schema_version_map CORE_VERSION_MAP{
{ "0.14.0",
Expand Down Expand Up @@ -241,4 +241,4 @@ const label_to_schema_version_map CORE_VERSION_MAP{
// {next}
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/CORE_VERSION_MAP.last.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// version of an older library.
#include "opentimelineio/typeRegistry.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

const label_to_schema_version_map CORE_VERSION_MAP{
{ "0.14.0",
Expand Down Expand Up @@ -209,4 +209,4 @@ const label_to_schema_version_map CORE_VERSION_MAP{
// {next}
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
6 changes: 3 additions & 3 deletions src/opentimelineio/algo/editAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
#include "opentimelineio/track.h"
#include "opentimelineio/transition.h"

namespace otime = opentime::OPENTIME_VERSION;
namespace otime = opentime::OPENTIME_VERSION_NS;

using otime::RationalTime;
using otime::TimeRange;

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION { namespace algo {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS { namespace algo {


#include <iostream>
Expand Down Expand Up @@ -883,4 +883,4 @@ void remove(
}
}

}}} // namespace opentimelineio::OPENTIMELINEIO_VERSION::algo
}}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS::algo
4 changes: 2 additions & 2 deletions src/opentimelineio/algo/editAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "opentimelineio/composition.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION { namespace algo {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS { namespace algo {

//! Enum used by 3/4 Point Edit (aka. as fill)
enum class ReferencePoint
Expand Down Expand Up @@ -214,4 +214,4 @@ OTIO_API void remove(
Item* fill_template = nullptr,
ErrorStatus* error_status = nullptr);

}}} // namespace opentimelineio::OPENTIMELINEIO_VERSION::algo
}}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS::algo
4 changes: 2 additions & 2 deletions src/opentimelineio/anyDictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <map>
#include <string>

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

/// @brief This class provides a replacement for "std::map<std::string, std::any>".
///
Expand Down Expand Up @@ -290,4 +290,4 @@ class OTIO_API_TYPE AnyDictionary : private std::map<std::string, std::any>
}
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/anyVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <assert.h>
#include <vector>

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

/// @brief This class provides a replacement for "std::vector<std::any>".
///
Expand Down Expand Up @@ -176,4 +176,4 @@ class OTIO_API_TYPE AnyVector : private std::vector<std::any>
MutationStamp* _mutation_stamp = nullptr;
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "opentimelineio/clip.h"
#include "opentimelineio/missingReference.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

char constexpr Clip::default_media_key[];

Expand Down Expand Up @@ -224,4 +224,4 @@ Clip::available_image_bounds(ErrorStatus* error_status) const
return active_media->available_image_bounds();
}

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/clip.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "opentimelineio/mediaReference.h"
#include "opentimelineio/version.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

/// @brief A clip is a segment of editable media (usually audio or video).
///
Expand Down Expand Up @@ -106,4 +106,4 @@ class OTIO_API_TYPE Clip : public Item
std::string _active_media_reference_key;
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "opentimelineio/color.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

Color::Color(
double const r,
Expand Down Expand Up @@ -177,4 +177,4 @@ Color::to_rgba_float_list()
return { _r, _g, _b, _a };
}

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "opentimelineio/export.h"
#include "opentimelineio/version.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

/// @brief Color consists of red, green, blue,
/// and alpha double floating point values,
Expand Down Expand Up @@ -88,4 +88,4 @@ class OTIO_API_TYPE Color
std::string _name;
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/composable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "opentimelineio/composable.h"
#include "opentimelineio/composition.h"

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

Composable::Composable(std::string const& name, AnyDictionary const& metadata)
: Parent(name, metadata)
Expand Down Expand Up @@ -81,4 +81,4 @@ Composable::available_image_bounds(ErrorStatus* error_status) const
return std::optional<IMATH_NAMESPACE::Box2d>();
}

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
4 changes: 2 additions & 2 deletions src/opentimelineio/composable.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <Imath/ImathBox.h>

namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION_NS {

class Composition;

Expand Down Expand Up @@ -68,4 +68,4 @@ class OTIO_API_TYPE Composable : public SerializableObjectWithMetadata
friend class Composition;
};

}} // namespace opentimelineio::OPENTIMELINEIO_VERSION
}} // namespace opentimelineio::OPENTIMELINEIO_VERSION_NS
Loading
Loading