From e3bd2e4b1528173e0b3bbcc5dab68eb14a06dec8 Mon Sep 17 00:00:00 2001 From: Brenno Date: Sat, 12 Dec 2020 19:28:08 -0300 Subject: [PATCH] Improved protobuf message compiling --- src/CMakeLists.txt | 39 +- src/effects/ObjectDetection.h | 2 +- src/objdetectdata.pb.cc | 1003 ------------------------- src/objdetectdata.pb.h | 1020 -------------------------- src/protobuf_messages/CMakeLists.txt | 38 + src/stabilizedata.pb.cc | 722 ------------------ src/stabilizedata.pb.h | 723 ------------------ src/trackerdata.pb.cc | 961 ------------------------ src/trackerdata.pb.h | 931 ----------------------- 9 files changed, 45 insertions(+), 5394 deletions(-) delete mode 100644 src/objdetectdata.pb.cc delete mode 100644 src/objdetectdata.pb.h create mode 100644 src/protobuf_messages/CMakeLists.txt delete mode 100644 src/stabilizedata.pb.cc delete mode 100644 src/stabilizedata.pb.h delete mode 100644 src/trackerdata.pb.cc delete mode 100644 src/trackerdata.pb.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6958580b8..cfb73feca 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -113,13 +113,6 @@ set(OPENSHOT_CV_SOURCES ./sort_filter/Hungarian.cpp ./sort_filter/KalmanTracker.cpp) -# Compiled Protobuf messages -set(PROTOBUF_MESSAGES - stabilizedata.pb.cc - trackerdata.pb.cc - objdetectdata.pb.cc - ) - # Video effects set(EFFECTS_SOURCES effects/Bars.cpp @@ -416,37 +409,16 @@ if (OpenCV_FOUND) message(FATAL_ERROR "\nPLEASE INSTALL PROTOBUF. Protobuf is required when compiling with opencv.\n") endif() - # compiling protobuf messages - include_directories(${PROTOBUF_INCLUDE_DIR}) - set(PROTOBUF_MESSAGES_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/protobuf_messages") - - FILE(GLOB PROTO_MSGS "${PROTOBUF_MESSAGES_FOLDER}/*.proto") - foreach(PROTO_MSG ${PROTO_MSGS}) - execute_process ( - COMMAND bash -c "${PROTOBUF_PROTOC_EXECUTABLE} -I=${PROTOBUF_MESSAGES_FOLDER} --cpp_out=${PROTOBUF_MESSAGES_FOLDER} ${PROTO_MSG}" - ) - endforeach() - - FILE(GLOB PROTO_CCS "${PROTOBUF_MESSAGES_FOLDER}/*.pb.cc") - foreach(PROTO_CC ${PROTO_CCS}) - execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROTO_CC} ${CMAKE_CURRENT_SOURCE_DIR}) - file(REMOVE ${PROTO_CC}) - endforeach() - - FILE(GLOB PROTO_HS "${PROTOBUF_MESSAGES_FOLDER}/*.pb.h") - foreach(PROTO_H ${PROTO_HS}) - execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROTO_H} ${CMAKE_CURRENT_SOURCE_DIR}) - file(REMOVE ${PROTO_H}) - endforeach() + add_subdirectory(protobuf_messages) + + target_include_directories(openshot PUBLIC ${ProtobufMessagePath}) # Add OpenCV target sources target_sources(openshot PRIVATE - ${OPENSHOT_CV_SOURCES} - ${PROTOBUF_MESSAGES}) + ${OPENSHOT_CV_SOURCES}) # Link libopenshot with OpenCV libs - target_link_libraries(openshot PUBLIC ${OpenCV_LIBS} ${PROTOBUF_LIBRARY}) - + target_link_libraries(openshot PUBLIC ProtoMessages ${OpenCV_LIBS} ${PROTOBUF_LIBRARY} ${Protobuf_INCLUDE_DIRS}) endif() ############### LINK LIBRARY ################# @@ -490,3 +462,4 @@ endif() set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Jonathan Thomas") #required include(CPack) + diff --git a/src/effects/ObjectDetection.h b/src/effects/ObjectDetection.h index ac528ef6f..45d30d588 100644 --- a/src/effects/ObjectDetection.h +++ b/src/effects/ObjectDetection.h @@ -40,7 +40,7 @@ #include "../Color.h" #include "../Json.h" #include "../KeyFrame.h" -#include "../objdetectdata.pb.h" +#include "objdetectdata.pb.h" // Struct that stores the detected bounding boxes for all the clip frames struct DetectionData{ diff --git a/src/objdetectdata.pb.cc b/src/objdetectdata.pb.cc deleted file mode 100644 index d4d04ea06..000000000 --- a/src/objdetectdata.pb.cc +++ /dev/null @@ -1,1003 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: objdetectdata.proto - -#include "objdetectdata.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_objdetectdata_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Frame_objdetectdata_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_objdetectdata_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Frame_Box_objdetectdata_2eproto; -namespace libopenshotobjdetect { -class Frame_BoxDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Frame_Box_default_instance_; -class FrameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Frame_default_instance_; -class ObjDetectDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ObjDetect_default_instance_; -} // namespace libopenshotobjdetect -static void InitDefaultsscc_info_Frame_objdetectdata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshotobjdetect::_Frame_default_instance_; - new (ptr) ::libopenshotobjdetect::Frame(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshotobjdetect::Frame::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Frame_objdetectdata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Frame_objdetectdata_2eproto}, { - &scc_info_Frame_Box_objdetectdata_2eproto.base,}}; - -static void InitDefaultsscc_info_Frame_Box_objdetectdata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshotobjdetect::_Frame_Box_default_instance_; - new (ptr) ::libopenshotobjdetect::Frame_Box(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshotobjdetect::Frame_Box::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Frame_Box_objdetectdata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Frame_Box_objdetectdata_2eproto}, {}}; - -static void InitDefaultsscc_info_ObjDetect_objdetectdata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshotobjdetect::_ObjDetect_default_instance_; - new (ptr) ::libopenshotobjdetect::ObjDetect(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshotobjdetect::ObjDetect::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ObjDetect_objdetectdata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ObjDetect_objdetectdata_2eproto}, { - &scc_info_Frame_objdetectdata_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_objdetectdata_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_objdetectdata_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_objdetectdata_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_objdetectdata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, x_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, y_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, w_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, h_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, classid_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame_Box, confidence_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame, id_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::Frame, bounding_box_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::ObjDetect, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::ObjDetect, frame_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::ObjDetect, last_updated_), - PROTOBUF_FIELD_OFFSET(::libopenshotobjdetect::ObjDetect, classnames_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::libopenshotobjdetect::Frame_Box)}, - { 11, -1, sizeof(::libopenshotobjdetect::Frame)}, - { 18, -1, sizeof(::libopenshotobjdetect::ObjDetect)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::libopenshotobjdetect::_Frame_Box_default_instance_), - reinterpret_cast(&::libopenshotobjdetect::_Frame_default_instance_), - reinterpret_cast(&::libopenshotobjdetect::_ObjDetect_default_instance_), -}; - -const char descriptor_table_protodef_objdetectdata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\023objdetectdata.proto\022\024libopenshotobjdet" - "ect\032\037google/protobuf/timestamp.proto\"\242\001\n" - "\005Frame\022\n\n\002id\030\001 \001(\005\0225\n\014bounding_box\030\002 \003(\013" - "2\037.libopenshotobjdetect.Frame.Box\032V\n\003Box" - "\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001w\030\003 \001(\002\022\t\n\001h\030\004" - " \001(\002\022\017\n\007classId\030\005 \001(\005\022\022\n\nconfidence\030\006 \001(" - "\002\"}\n\tObjDetect\022*\n\005frame\030\001 \003(\0132\033.libopens" - "hotobjdetect.Frame\0220\n\014last_updated\030\002 \001(\013" - "2\032.google.protobuf.Timestamp\022\022\n\nclassNam" - "es\030\003 \003(\tb\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_objdetectdata_2eproto_deps[1] = { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_objdetectdata_2eproto_sccs[3] = { - &scc_info_Frame_objdetectdata_2eproto.base, - &scc_info_Frame_Box_objdetectdata_2eproto.base, - &scc_info_ObjDetect_objdetectdata_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_objdetectdata_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_objdetectdata_2eproto = { - false, false, descriptor_table_protodef_objdetectdata_2eproto, "objdetectdata.proto", 376, - &descriptor_table_objdetectdata_2eproto_once, descriptor_table_objdetectdata_2eproto_sccs, descriptor_table_objdetectdata_2eproto_deps, 3, 1, - schemas, file_default_instances, TableStruct_objdetectdata_2eproto::offsets, - file_level_metadata_objdetectdata_2eproto, 3, file_level_enum_descriptors_objdetectdata_2eproto, file_level_service_descriptors_objdetectdata_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_objdetectdata_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_objdetectdata_2eproto)), true); -namespace libopenshotobjdetect { - -// =================================================================== - -void Frame_Box::InitAsDefaultInstance() { -} -class Frame_Box::_Internal { - public: -}; - -Frame_Box::Frame_Box(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshotobjdetect.Frame.Box) -} -Frame_Box::Frame_Box(const Frame_Box& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x_, &from.x_, - static_cast(reinterpret_cast(&confidence_) - - reinterpret_cast(&x_)) + sizeof(confidence_)); - // @@protoc_insertion_point(copy_constructor:libopenshotobjdetect.Frame.Box) -} - -void Frame_Box::SharedCtor() { - ::memset(&x_, 0, static_cast( - reinterpret_cast(&confidence_) - - reinterpret_cast(&x_)) + sizeof(confidence_)); -} - -Frame_Box::~Frame_Box() { - // @@protoc_insertion_point(destructor:libopenshotobjdetect.Frame.Box) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Frame_Box::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void Frame_Box::ArenaDtor(void* object) { - Frame_Box* _this = reinterpret_cast< Frame_Box* >(object); - (void)_this; -} -void Frame_Box::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Frame_Box::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Frame_Box& Frame_Box::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Frame_Box_objdetectdata_2eproto.base); - return *internal_default_instance(); -} - - -void Frame_Box::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshotobjdetect.Frame.Box) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&x_, 0, static_cast( - reinterpret_cast(&confidence_) - - reinterpret_cast(&x_)) + sizeof(confidence_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Frame_Box::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // float x = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float y = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float w = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { - w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float h = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { - h_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // int32 classId = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - classid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float confidence = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) { - confidence_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Frame_Box::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshotobjdetect.Frame.Box) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // float x = 1; - if (!(this->x() <= 0 && this->x() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target); - } - - // float y = 2; - if (!(this->y() <= 0 && this->y() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target); - } - - // float w = 3; - if (!(this->w() <= 0 && this->w() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_w(), target); - } - - // float h = 4; - if (!(this->h() <= 0 && this->h() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_h(), target); - } - - // int32 classId = 5; - if (this->classid() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_classid(), target); - } - - // float confidence = 6; - if (!(this->confidence() <= 0 && this->confidence() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_confidence(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshotobjdetect.Frame.Box) - return target; -} - -size_t Frame_Box::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshotobjdetect.Frame.Box) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float x = 1; - if (!(this->x() <= 0 && this->x() >= 0)) { - total_size += 1 + 4; - } - - // float y = 2; - if (!(this->y() <= 0 && this->y() >= 0)) { - total_size += 1 + 4; - } - - // float w = 3; - if (!(this->w() <= 0 && this->w() >= 0)) { - total_size += 1 + 4; - } - - // float h = 4; - if (!(this->h() <= 0 && this->h() >= 0)) { - total_size += 1 + 4; - } - - // int32 classId = 5; - if (this->classid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_classid()); - } - - // float confidence = 6; - if (!(this->confidence() <= 0 && this->confidence() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame_Box::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshotobjdetect.Frame.Box) - GOOGLE_DCHECK_NE(&from, this); - const Frame_Box* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshotobjdetect.Frame.Box) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshotobjdetect.Frame.Box) - MergeFrom(*source); - } -} - -void Frame_Box::MergeFrom(const Frame_Box& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshotobjdetect.Frame.Box) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!(from.x() <= 0 && from.x() >= 0)) { - _internal_set_x(from._internal_x()); - } - if (!(from.y() <= 0 && from.y() >= 0)) { - _internal_set_y(from._internal_y()); - } - if (!(from.w() <= 0 && from.w() >= 0)) { - _internal_set_w(from._internal_w()); - } - if (!(from.h() <= 0 && from.h() >= 0)) { - _internal_set_h(from._internal_h()); - } - if (from.classid() != 0) { - _internal_set_classid(from._internal_classid()); - } - if (!(from.confidence() <= 0 && from.confidence() >= 0)) { - _internal_set_confidence(from._internal_confidence()); - } -} - -void Frame_Box::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshotobjdetect.Frame.Box) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame_Box::CopyFrom(const Frame_Box& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshotobjdetect.Frame.Box) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame_Box::IsInitialized() const { - return true; -} - -void Frame_Box::InternalSwap(Frame_Box* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Frame_Box, confidence_) - + sizeof(Frame_Box::confidence_) - - PROTOBUF_FIELD_OFFSET(Frame_Box, x_)>( - reinterpret_cast(&x_), - reinterpret_cast(&other->x_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Frame_Box::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Frame::InitAsDefaultInstance() { -} -class Frame::_Internal { - public: -}; - -Frame::Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - bounding_box_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshotobjdetect.Frame) -} -Frame::Frame(const Frame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - bounding_box_(from.bounding_box_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_ = from.id_; - // @@protoc_insertion_point(copy_constructor:libopenshotobjdetect.Frame) -} - -void Frame::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Frame_objdetectdata_2eproto.base); - id_ = 0; -} - -Frame::~Frame() { - // @@protoc_insertion_point(destructor:libopenshotobjdetect.Frame) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Frame::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void Frame::ArenaDtor(void* object) { - Frame* _this = reinterpret_cast< Frame* >(object); - (void)_this; -} -void Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Frame& Frame::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Frame_objdetectdata_2eproto.base); - return *internal_default_instance(); -} - - -void Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshotobjdetect.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - bounding_box_.Clear(); - id_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int32 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .libopenshotobjdetect.Frame.Box bounding_box = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_bounding_box(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Frame::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshotobjdetect.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 id = 1; - if (this->id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); - } - - // repeated .libopenshotobjdetect.Frame.Box bounding_box = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_bounding_box_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_bounding_box(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshotobjdetect.Frame) - return target; -} - -size_t Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshotobjdetect.Frame) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .libopenshotobjdetect.Frame.Box bounding_box = 2; - total_size += 1UL * this->_internal_bounding_box_size(); - for (const auto& msg : this->bounding_box_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // int32 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_id()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshotobjdetect.Frame) - GOOGLE_DCHECK_NE(&from, this); - const Frame* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshotobjdetect.Frame) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshotobjdetect.Frame) - MergeFrom(*source); - } -} - -void Frame::MergeFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshotobjdetect.Frame) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - bounding_box_.MergeFrom(from.bounding_box_); - if (from.id() != 0) { - _internal_set_id(from._internal_id()); - } -} - -void Frame::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshotobjdetect.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame::CopyFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshotobjdetect.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame::IsInitialized() const { - return true; -} - -void Frame::InternalSwap(Frame* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - bounding_box_.InternalSwap(&other->bounding_box_); - swap(id_, other->id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Frame::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void ObjDetect::InitAsDefaultInstance() { - ::libopenshotobjdetect::_ObjDetect_default_instance_._instance.get_mutable()->last_updated_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); -} -class ObjDetect::_Internal { - public: - static const PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const ObjDetect* msg); -}; - -const PROTOBUF_NAMESPACE_ID::Timestamp& -ObjDetect::_Internal::last_updated(const ObjDetect* msg) { - return *msg->last_updated_; -} -void ObjDetect::clear_last_updated() { - if (GetArena() == nullptr && last_updated_ != nullptr) { - delete last_updated_; - } - last_updated_ = nullptr; -} -ObjDetect::ObjDetect(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - frame_(arena), - classnames_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshotobjdetect.ObjDetect) -} -ObjDetect::ObjDetect(const ObjDetect& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - frame_(from.frame_), - classnames_(from.classnames_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_last_updated()) { - last_updated_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); - } else { - last_updated_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:libopenshotobjdetect.ObjDetect) -} - -void ObjDetect::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ObjDetect_objdetectdata_2eproto.base); - last_updated_ = nullptr; -} - -ObjDetect::~ObjDetect() { - // @@protoc_insertion_point(destructor:libopenshotobjdetect.ObjDetect) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void ObjDetect::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete last_updated_; -} - -void ObjDetect::ArenaDtor(void* object) { - ObjDetect* _this = reinterpret_cast< ObjDetect* >(object); - (void)_this; -} -void ObjDetect::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ObjDetect::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObjDetect& ObjDetect::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ObjDetect_objdetectdata_2eproto.base); - return *internal_default_instance(); -} - - -void ObjDetect::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshotobjdetect.ObjDetect) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - frame_.Clear(); - classnames_.Clear(); - if (GetArena() == nullptr && last_updated_ != nullptr) { - delete last_updated_; - } - last_updated_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ObjDetect::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .libopenshotobjdetect.Frame frame = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_frame(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - // .google.protobuf.Timestamp last_updated = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_last_updated(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string classNames = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_classnames(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "libopenshotobjdetect.ObjDetect.classNames")); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* ObjDetect::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshotobjdetect.ObjDetect) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .libopenshotobjdetect.Frame frame = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_frame_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_frame(i), target, stream); - } - - // .google.protobuf.Timestamp last_updated = 2; - if (this->has_last_updated()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::last_updated(this), target, stream); - } - - // repeated string classNames = 3; - for (int i = 0, n = this->_internal_classnames_size(); i < n; i++) { - const auto& s = this->_internal_classnames(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "libopenshotobjdetect.ObjDetect.classNames"); - target = stream->WriteString(3, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshotobjdetect.ObjDetect) - return target; -} - -size_t ObjDetect::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshotobjdetect.ObjDetect) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .libopenshotobjdetect.Frame frame = 1; - total_size += 1UL * this->_internal_frame_size(); - for (const auto& msg : this->frame_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated string classNames = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(classnames_.size()); - for (int i = 0, n = classnames_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - classnames_.Get(i)); - } - - // .google.protobuf.Timestamp last_updated = 2; - if (this->has_last_updated()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *last_updated_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ObjDetect::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshotobjdetect.ObjDetect) - GOOGLE_DCHECK_NE(&from, this); - const ObjDetect* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshotobjdetect.ObjDetect) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshotobjdetect.ObjDetect) - MergeFrom(*source); - } -} - -void ObjDetect::MergeFrom(const ObjDetect& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshotobjdetect.ObjDetect) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - frame_.MergeFrom(from.frame_); - classnames_.MergeFrom(from.classnames_); - if (from.has_last_updated()) { - _internal_mutable_last_updated()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); - } -} - -void ObjDetect::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshotobjdetect.ObjDetect) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObjDetect::CopyFrom(const ObjDetect& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshotobjdetect.ObjDetect) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObjDetect::IsInitialized() const { - return true; -} - -void ObjDetect::InternalSwap(ObjDetect* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - frame_.InternalSwap(&other->frame_); - classnames_.InternalSwap(&other->classnames_); - swap(last_updated_, other->last_updated_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ObjDetect::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace libopenshotobjdetect -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::libopenshotobjdetect::Frame_Box* Arena::CreateMaybeMessage< ::libopenshotobjdetect::Frame_Box >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshotobjdetect::Frame_Box >(arena); -} -template<> PROTOBUF_NOINLINE ::libopenshotobjdetect::Frame* Arena::CreateMaybeMessage< ::libopenshotobjdetect::Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshotobjdetect::Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::libopenshotobjdetect::ObjDetect* Arena::CreateMaybeMessage< ::libopenshotobjdetect::ObjDetect >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshotobjdetect::ObjDetect >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/src/objdetectdata.pb.h b/src/objdetectdata.pb.h deleted file mode 100644 index 48630c17a..000000000 --- a/src/objdetectdata.pb.h +++ /dev/null @@ -1,1020 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: objdetectdata.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_objdetectdata_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_objdetectdata_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3012000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3012003 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_objdetectdata_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_objdetectdata_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_objdetectdata_2eproto; -namespace libopenshotobjdetect { -class Frame; -class FrameDefaultTypeInternal; -extern FrameDefaultTypeInternal _Frame_default_instance_; -class Frame_Box; -class Frame_BoxDefaultTypeInternal; -extern Frame_BoxDefaultTypeInternal _Frame_Box_default_instance_; -class ObjDetect; -class ObjDetectDefaultTypeInternal; -extern ObjDetectDefaultTypeInternal _ObjDetect_default_instance_; -} // namespace libopenshotobjdetect -PROTOBUF_NAMESPACE_OPEN -template<> ::libopenshotobjdetect::Frame* Arena::CreateMaybeMessage<::libopenshotobjdetect::Frame>(Arena*); -template<> ::libopenshotobjdetect::Frame_Box* Arena::CreateMaybeMessage<::libopenshotobjdetect::Frame_Box>(Arena*); -template<> ::libopenshotobjdetect::ObjDetect* Arena::CreateMaybeMessage<::libopenshotobjdetect::ObjDetect>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace libopenshotobjdetect { - -// =================================================================== - -class Frame_Box PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshotobjdetect.Frame.Box) */ { - public: - inline Frame_Box() : Frame_Box(nullptr) {}; - virtual ~Frame_Box(); - - Frame_Box(const Frame_Box& from); - Frame_Box(Frame_Box&& from) noexcept - : Frame_Box() { - *this = ::std::move(from); - } - - inline Frame_Box& operator=(const Frame_Box& from) { - CopyFrom(from); - return *this; - } - inline Frame_Box& operator=(Frame_Box&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Frame_Box& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame_Box* internal_default_instance() { - return reinterpret_cast( - &_Frame_Box_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Frame_Box& a, Frame_Box& b) { - a.Swap(&b); - } - inline void Swap(Frame_Box* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Frame_Box* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Frame_Box* New() const final { - return CreateMaybeMessage(nullptr); - } - - Frame_Box* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Frame_Box& from); - void MergeFrom(const Frame_Box& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame_Box* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshotobjdetect.Frame.Box"; - } - protected: - explicit Frame_Box(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_objdetectdata_2eproto); - return ::descriptor_table_objdetectdata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kWFieldNumber = 3, - kHFieldNumber = 4, - kClassIdFieldNumber = 5, - kConfidenceFieldNumber = 6, - }; - // float x = 1; - void clear_x(); - float x() const; - void set_x(float value); - private: - float _internal_x() const; - void _internal_set_x(float value); - public: - - // float y = 2; - void clear_y(); - float y() const; - void set_y(float value); - private: - float _internal_y() const; - void _internal_set_y(float value); - public: - - // float w = 3; - void clear_w(); - float w() const; - void set_w(float value); - private: - float _internal_w() const; - void _internal_set_w(float value); - public: - - // float h = 4; - void clear_h(); - float h() const; - void set_h(float value); - private: - float _internal_h() const; - void _internal_set_h(float value); - public: - - // int32 classId = 5; - void clear_classid(); - ::PROTOBUF_NAMESPACE_ID::int32 classid() const; - void set_classid(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_classid() const; - void _internal_set_classid(::PROTOBUF_NAMESPACE_ID::int32 value); - public: - - // float confidence = 6; - void clear_confidence(); - float confidence() const; - void set_confidence(float value); - private: - float _internal_confidence() const; - void _internal_set_confidence(float value); - public: - - // @@protoc_insertion_point(class_scope:libopenshotobjdetect.Frame.Box) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - float x_; - float y_; - float w_; - float h_; - ::PROTOBUF_NAMESPACE_ID::int32 classid_; - float confidence_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_objdetectdata_2eproto; -}; -// ------------------------------------------------------------------- - -class Frame PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshotobjdetect.Frame) */ { - public: - inline Frame() : Frame(nullptr) {}; - virtual ~Frame(); - - Frame(const Frame& from); - Frame(Frame&& from) noexcept - : Frame() { - *this = ::std::move(from); - } - - inline Frame& operator=(const Frame& from) { - CopyFrom(from); - return *this; - } - inline Frame& operator=(Frame&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Frame& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame* internal_default_instance() { - return reinterpret_cast( - &_Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Frame& a, Frame& b) { - a.Swap(&b); - } - inline void Swap(Frame* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Frame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Frame* New() const final { - return CreateMaybeMessage(nullptr); - } - - Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Frame& from); - void MergeFrom(const Frame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshotobjdetect.Frame"; - } - protected: - explicit Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_objdetectdata_2eproto); - return ::descriptor_table_objdetectdata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - typedef Frame_Box Box; - - // accessors ------------------------------------------------------- - - enum : int { - kBoundingBoxFieldNumber = 2, - kIdFieldNumber = 1, - }; - // repeated .libopenshotobjdetect.Frame.Box bounding_box = 2; - int bounding_box_size() const; - private: - int _internal_bounding_box_size() const; - public: - void clear_bounding_box(); - ::libopenshotobjdetect::Frame_Box* mutable_bounding_box(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame_Box >* - mutable_bounding_box(); - private: - const ::libopenshotobjdetect::Frame_Box& _internal_bounding_box(int index) const; - ::libopenshotobjdetect::Frame_Box* _internal_add_bounding_box(); - public: - const ::libopenshotobjdetect::Frame_Box& bounding_box(int index) const; - ::libopenshotobjdetect::Frame_Box* add_bounding_box(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame_Box >& - bounding_box() const; - - // int32 id = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int32 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const; - void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value); - public: - - // @@protoc_insertion_point(class_scope:libopenshotobjdetect.Frame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame_Box > bounding_box_; - ::PROTOBUF_NAMESPACE_ID::int32 id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_objdetectdata_2eproto; -}; -// ------------------------------------------------------------------- - -class ObjDetect PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshotobjdetect.ObjDetect) */ { - public: - inline ObjDetect() : ObjDetect(nullptr) {}; - virtual ~ObjDetect(); - - ObjDetect(const ObjDetect& from); - ObjDetect(ObjDetect&& from) noexcept - : ObjDetect() { - *this = ::std::move(from); - } - - inline ObjDetect& operator=(const ObjDetect& from) { - CopyFrom(from); - return *this; - } - inline ObjDetect& operator=(ObjDetect&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const ObjDetect& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ObjDetect* internal_default_instance() { - return reinterpret_cast( - &_ObjDetect_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ObjDetect& a, ObjDetect& b) { - a.Swap(&b); - } - inline void Swap(ObjDetect* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ObjDetect* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ObjDetect* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObjDetect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const ObjDetect& from); - void MergeFrom(const ObjDetect& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ObjDetect* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshotobjdetect.ObjDetect"; - } - protected: - explicit ObjDetect(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_objdetectdata_2eproto); - return ::descriptor_table_objdetectdata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFrameFieldNumber = 1, - kClassNamesFieldNumber = 3, - kLastUpdatedFieldNumber = 2, - }; - // repeated .libopenshotobjdetect.Frame frame = 1; - int frame_size() const; - private: - int _internal_frame_size() const; - public: - void clear_frame(); - ::libopenshotobjdetect::Frame* mutable_frame(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame >* - mutable_frame(); - private: - const ::libopenshotobjdetect::Frame& _internal_frame(int index) const; - ::libopenshotobjdetect::Frame* _internal_add_frame(); - public: - const ::libopenshotobjdetect::Frame& frame(int index) const; - ::libopenshotobjdetect::Frame* add_frame(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame >& - frame() const; - - // repeated string classNames = 3; - int classnames_size() const; - private: - int _internal_classnames_size() const; - public: - void clear_classnames(); - const std::string& classnames(int index) const; - std::string* mutable_classnames(int index); - void set_classnames(int index, const std::string& value); - void set_classnames(int index, std::string&& value); - void set_classnames(int index, const char* value); - void set_classnames(int index, const char* value, size_t size); - std::string* add_classnames(); - void add_classnames(const std::string& value); - void add_classnames(std::string&& value); - void add_classnames(const char* value); - void add_classnames(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& classnames() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_classnames(); - private: - const std::string& _internal_classnames(int index) const; - std::string* _internal_add_classnames(); - public: - - // .google.protobuf.Timestamp last_updated = 2; - bool has_last_updated() const; - private: - bool _internal_has_last_updated() const; - public: - void clear_last_updated(); - const PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); - public: - void unsafe_arena_set_allocated_last_updated( - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); - PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); - - // @@protoc_insertion_point(class_scope:libopenshotobjdetect.ObjDetect) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame > frame_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField classnames_; - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_objdetectdata_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Frame_Box - -// float x = 1; -inline void Frame_Box::clear_x() { - x_ = 0; -} -inline float Frame_Box::_internal_x() const { - return x_; -} -inline float Frame_Box::x() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.Box.x) - return _internal_x(); -} -inline void Frame_Box::_internal_set_x(float value) { - - x_ = value; -} -inline void Frame_Box::set_x(float value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.Box.x) -} - -// float y = 2; -inline void Frame_Box::clear_y() { - y_ = 0; -} -inline float Frame_Box::_internal_y() const { - return y_; -} -inline float Frame_Box::y() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.Box.y) - return _internal_y(); -} -inline void Frame_Box::_internal_set_y(float value) { - - y_ = value; -} -inline void Frame_Box::set_y(float value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.Box.y) -} - -// float w = 3; -inline void Frame_Box::clear_w() { - w_ = 0; -} -inline float Frame_Box::_internal_w() const { - return w_; -} -inline float Frame_Box::w() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.Box.w) - return _internal_w(); -} -inline void Frame_Box::_internal_set_w(float value) { - - w_ = value; -} -inline void Frame_Box::set_w(float value) { - _internal_set_w(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.Box.w) -} - -// float h = 4; -inline void Frame_Box::clear_h() { - h_ = 0; -} -inline float Frame_Box::_internal_h() const { - return h_; -} -inline float Frame_Box::h() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.Box.h) - return _internal_h(); -} -inline void Frame_Box::_internal_set_h(float value) { - - h_ = value; -} -inline void Frame_Box::set_h(float value) { - _internal_set_h(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.Box.h) -} - -// int32 classId = 5; -inline void Frame_Box::clear_classid() { - classid_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame_Box::_internal_classid() const { - return classid_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame_Box::classid() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.Box.classId) - return _internal_classid(); -} -inline void Frame_Box::_internal_set_classid(::PROTOBUF_NAMESPACE_ID::int32 value) { - - classid_ = value; -} -inline void Frame_Box::set_classid(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_classid(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.Box.classId) -} - -// float confidence = 6; -inline void Frame_Box::clear_confidence() { - confidence_ = 0; -} -inline float Frame_Box::_internal_confidence() const { - return confidence_; -} -inline float Frame_Box::confidence() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.Box.confidence) - return _internal_confidence(); -} -inline void Frame_Box::_internal_set_confidence(float value) { - - confidence_ = value; -} -inline void Frame_Box::set_confidence(float value) { - _internal_set_confidence(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.Box.confidence) -} - -// ------------------------------------------------------------------- - -// Frame - -// int32 id = 1; -inline void Frame::clear_id() { - id_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::_internal_id() const { - return id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::id() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.id) - return _internal_id(); -} -inline void Frame::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { - - id_ = value; -} -inline void Frame::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:libopenshotobjdetect.Frame.id) -} - -// repeated .libopenshotobjdetect.Frame.Box bounding_box = 2; -inline int Frame::_internal_bounding_box_size() const { - return bounding_box_.size(); -} -inline int Frame::bounding_box_size() const { - return _internal_bounding_box_size(); -} -inline void Frame::clear_bounding_box() { - bounding_box_.Clear(); -} -inline ::libopenshotobjdetect::Frame_Box* Frame::mutable_bounding_box(int index) { - // @@protoc_insertion_point(field_mutable:libopenshotobjdetect.Frame.bounding_box) - return bounding_box_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame_Box >* -Frame::mutable_bounding_box() { - // @@protoc_insertion_point(field_mutable_list:libopenshotobjdetect.Frame.bounding_box) - return &bounding_box_; -} -inline const ::libopenshotobjdetect::Frame_Box& Frame::_internal_bounding_box(int index) const { - return bounding_box_.Get(index); -} -inline const ::libopenshotobjdetect::Frame_Box& Frame::bounding_box(int index) const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.Frame.bounding_box) - return _internal_bounding_box(index); -} -inline ::libopenshotobjdetect::Frame_Box* Frame::_internal_add_bounding_box() { - return bounding_box_.Add(); -} -inline ::libopenshotobjdetect::Frame_Box* Frame::add_bounding_box() { - // @@protoc_insertion_point(field_add:libopenshotobjdetect.Frame.bounding_box) - return _internal_add_bounding_box(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame_Box >& -Frame::bounding_box() const { - // @@protoc_insertion_point(field_list:libopenshotobjdetect.Frame.bounding_box) - return bounding_box_; -} - -// ------------------------------------------------------------------- - -// ObjDetect - -// repeated .libopenshotobjdetect.Frame frame = 1; -inline int ObjDetect::_internal_frame_size() const { - return frame_.size(); -} -inline int ObjDetect::frame_size() const { - return _internal_frame_size(); -} -inline void ObjDetect::clear_frame() { - frame_.Clear(); -} -inline ::libopenshotobjdetect::Frame* ObjDetect::mutable_frame(int index) { - // @@protoc_insertion_point(field_mutable:libopenshotobjdetect.ObjDetect.frame) - return frame_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame >* -ObjDetect::mutable_frame() { - // @@protoc_insertion_point(field_mutable_list:libopenshotobjdetect.ObjDetect.frame) - return &frame_; -} -inline const ::libopenshotobjdetect::Frame& ObjDetect::_internal_frame(int index) const { - return frame_.Get(index); -} -inline const ::libopenshotobjdetect::Frame& ObjDetect::frame(int index) const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.ObjDetect.frame) - return _internal_frame(index); -} -inline ::libopenshotobjdetect::Frame* ObjDetect::_internal_add_frame() { - return frame_.Add(); -} -inline ::libopenshotobjdetect::Frame* ObjDetect::add_frame() { - // @@protoc_insertion_point(field_add:libopenshotobjdetect.ObjDetect.frame) - return _internal_add_frame(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotobjdetect::Frame >& -ObjDetect::frame() const { - // @@protoc_insertion_point(field_list:libopenshotobjdetect.ObjDetect.frame) - return frame_; -} - -// .google.protobuf.Timestamp last_updated = 2; -inline bool ObjDetect::_internal_has_last_updated() const { - return this != internal_default_instance() && last_updated_ != nullptr; -} -inline bool ObjDetect::has_last_updated() const { - return _internal_has_last_updated(); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& ObjDetect::_internal_last_updated() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& ObjDetect::last_updated() const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.ObjDetect.last_updated) - return _internal_last_updated(); -} -inline void ObjDetect::unsafe_arena_set_allocated_last_updated( - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); - } - last_updated_ = last_updated; - if (last_updated) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:libopenshotobjdetect.ObjDetect.last_updated) -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* ObjDetect::release_last_updated() { - auto temp = unsafe_arena_release_last_updated(); - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* ObjDetect::unsafe_arena_release_last_updated() { - // @@protoc_insertion_point(field_release:libopenshotobjdetect.ObjDetect.last_updated) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; - last_updated_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* ObjDetect::_internal_mutable_last_updated() { - - if (last_updated_ == nullptr) { - auto* p = CreateMaybeMessage(GetArena()); - last_updated_ = p; - } - return last_updated_; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* ObjDetect::mutable_last_updated() { - // @@protoc_insertion_point(field_mutable:libopenshotobjdetect.ObjDetect.last_updated) - return _internal_mutable_last_updated(); -} -inline void ObjDetect::set_allocated_last_updated(PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); - } - if (last_updated) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)->GetArena(); - if (message_arena != submessage_arena) { - last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, last_updated, submessage_arena); - } - - } else { - - } - last_updated_ = last_updated; - // @@protoc_insertion_point(field_set_allocated:libopenshotobjdetect.ObjDetect.last_updated) -} - -// repeated string classNames = 3; -inline int ObjDetect::_internal_classnames_size() const { - return classnames_.size(); -} -inline int ObjDetect::classnames_size() const { - return _internal_classnames_size(); -} -inline void ObjDetect::clear_classnames() { - classnames_.Clear(); -} -inline std::string* ObjDetect::add_classnames() { - // @@protoc_insertion_point(field_add_mutable:libopenshotobjdetect.ObjDetect.classNames) - return _internal_add_classnames(); -} -inline const std::string& ObjDetect::_internal_classnames(int index) const { - return classnames_.Get(index); -} -inline const std::string& ObjDetect::classnames(int index) const { - // @@protoc_insertion_point(field_get:libopenshotobjdetect.ObjDetect.classNames) - return _internal_classnames(index); -} -inline std::string* ObjDetect::mutable_classnames(int index) { - // @@protoc_insertion_point(field_mutable:libopenshotobjdetect.ObjDetect.classNames) - return classnames_.Mutable(index); -} -inline void ObjDetect::set_classnames(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:libopenshotobjdetect.ObjDetect.classNames) - classnames_.Mutable(index)->assign(value); -} -inline void ObjDetect::set_classnames(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:libopenshotobjdetect.ObjDetect.classNames) - classnames_.Mutable(index)->assign(std::move(value)); -} -inline void ObjDetect::set_classnames(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - classnames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:libopenshotobjdetect.ObjDetect.classNames) -} -inline void ObjDetect::set_classnames(int index, const char* value, size_t size) { - classnames_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:libopenshotobjdetect.ObjDetect.classNames) -} -inline std::string* ObjDetect::_internal_add_classnames() { - return classnames_.Add(); -} -inline void ObjDetect::add_classnames(const std::string& value) { - classnames_.Add()->assign(value); - // @@protoc_insertion_point(field_add:libopenshotobjdetect.ObjDetect.classNames) -} -inline void ObjDetect::add_classnames(std::string&& value) { - classnames_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:libopenshotobjdetect.ObjDetect.classNames) -} -inline void ObjDetect::add_classnames(const char* value) { - GOOGLE_DCHECK(value != nullptr); - classnames_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:libopenshotobjdetect.ObjDetect.classNames) -} -inline void ObjDetect::add_classnames(const char* value, size_t size) { - classnames_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:libopenshotobjdetect.ObjDetect.classNames) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ObjDetect::classnames() const { - // @@protoc_insertion_point(field_list:libopenshotobjdetect.ObjDetect.classNames) - return classnames_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ObjDetect::mutable_classnames() { - // @@protoc_insertion_point(field_mutable_list:libopenshotobjdetect.ObjDetect.classNames) - return &classnames_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace libopenshotobjdetect - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_objdetectdata_2eproto diff --git a/src/protobuf_messages/CMakeLists.txt b/src/protobuf_messages/CMakeLists.txt new file mode 100644 index 000000000..5752a2160 --- /dev/null +++ b/src/protobuf_messages/CMakeLists.txt @@ -0,0 +1,38 @@ +####################### CMakeLists.txt (libopenshot) ######################### +# @brief CMake build file for libopenshot (used to generate makefiles) +# @author Jonathan Thomas +# @author FeRD (Frank Dana) +# +# @section LICENSE +# +# Copyright (c) 2008-2020 OpenShot Studios, LLC +# . This file is part of +# OpenShot Library (libopenshot), an open-source project dedicated to +# delivering high quality video editing and animation solutions to the +# world. For more information visit . +# +# OpenShot Library (libopenshot) is free software: you can redistribute it +# and/or modify it under the terms of the GNU Lesser General Public License +# as published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# OpenShot Library (libopenshot) is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with OpenShot Library. If not, see . +################################################################################ + +# Dependencies +find_package(Protobuf 3) + +file(GLOB ProtoFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.proto") +PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders ${ProtoFiles}) +add_library(ProtoMessages SHARED ${ProtoSources} ${ProtoHeaders}) + +set(ProtobufMessagePath ${CMAKE_CURRENT_BINARY_DIR} + CACHE INTERNAL "Path to generated protobuf header files.") + +target_link_libraries(ProtoMessages ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY}) diff --git a/src/stabilizedata.pb.cc b/src/stabilizedata.pb.cc deleted file mode 100644 index 081aca108..000000000 --- a/src/stabilizedata.pb.cc +++ /dev/null @@ -1,722 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilizedata.proto - -#include "stabilizedata.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_stabilizedata_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Frame_stabilizedata_2eproto; -namespace libopenshotstabilize { -class FrameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Frame_default_instance_; -class StabilizationDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Stabilization_default_instance_; -} // namespace libopenshotstabilize -static void InitDefaultsscc_info_Frame_stabilizedata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshotstabilize::_Frame_default_instance_; - new (ptr) ::libopenshotstabilize::Frame(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshotstabilize::Frame::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Frame_stabilizedata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Frame_stabilizedata_2eproto}, {}}; - -static void InitDefaultsscc_info_Stabilization_stabilizedata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshotstabilize::_Stabilization_default_instance_; - new (ptr) ::libopenshotstabilize::Stabilization(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshotstabilize::Stabilization::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Stabilization_stabilizedata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Stabilization_stabilizedata_2eproto}, { - &scc_info_Frame_stabilizedata_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_stabilizedata_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_stabilizedata_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_stabilizedata_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_stabilizedata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, id_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, dx_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, dy_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, da_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, x_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, y_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Frame, a_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Stabilization, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Stabilization, frame_), - PROTOBUF_FIELD_OFFSET(::libopenshotstabilize::Stabilization, last_updated_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::libopenshotstabilize::Frame)}, - { 12, -1, sizeof(::libopenshotstabilize::Stabilization)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::libopenshotstabilize::_Frame_default_instance_), - reinterpret_cast(&::libopenshotstabilize::_Stabilization_default_instance_), -}; - -const char descriptor_table_protodef_stabilizedata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\023stabilizedata.proto\022\024libopenshotstabil" - "ize\032\037google/protobuf/timestamp.proto\"X\n\005" - "Frame\022\n\n\002id\030\001 \001(\005\022\n\n\002dx\030\002 \001(\002\022\n\n\002dy\030\003 \001(" - "\002\022\n\n\002da\030\004 \001(\002\022\t\n\001x\030\005 \001(\002\022\t\n\001y\030\006 \001(\002\022\t\n\001a" - "\030\007 \001(\002\"m\n\rStabilization\022*\n\005frame\030\001 \003(\0132\033" - ".libopenshotstabilize.Frame\0220\n\014last_upda" - "ted\030\002 \001(\0132\032.google.protobuf.Timestampb\006p" - "roto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_stabilizedata_2eproto_deps[1] = { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_stabilizedata_2eproto_sccs[2] = { - &scc_info_Frame_stabilizedata_2eproto.base, - &scc_info_Stabilization_stabilizedata_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_stabilizedata_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_stabilizedata_2eproto = { - false, false, descriptor_table_protodef_stabilizedata_2eproto, "stabilizedata.proto", 285, - &descriptor_table_stabilizedata_2eproto_once, descriptor_table_stabilizedata_2eproto_sccs, descriptor_table_stabilizedata_2eproto_deps, 2, 1, - schemas, file_default_instances, TableStruct_stabilizedata_2eproto::offsets, - file_level_metadata_stabilizedata_2eproto, 2, file_level_enum_descriptors_stabilizedata_2eproto, file_level_service_descriptors_stabilizedata_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_stabilizedata_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_stabilizedata_2eproto)), true); -namespace libopenshotstabilize { - -// =================================================================== - -void Frame::InitAsDefaultInstance() { -} -class Frame::_Internal { - public: -}; - -Frame::Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshotstabilize.Frame) -} -Frame::Frame(const Frame& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&a_) - - reinterpret_cast(&id_)) + sizeof(a_)); - // @@protoc_insertion_point(copy_constructor:libopenshotstabilize.Frame) -} - -void Frame::SharedCtor() { - ::memset(&id_, 0, static_cast( - reinterpret_cast(&a_) - - reinterpret_cast(&id_)) + sizeof(a_)); -} - -Frame::~Frame() { - // @@protoc_insertion_point(destructor:libopenshotstabilize.Frame) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Frame::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void Frame::ArenaDtor(void* object) { - Frame* _this = reinterpret_cast< Frame* >(object); - (void)_this; -} -void Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Frame& Frame::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Frame_stabilizedata_2eproto.base); - return *internal_default_instance(); -} - - -void Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshotstabilize.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&id_, 0, static_cast( - reinterpret_cast(&a_) - - reinterpret_cast(&id_)) + sizeof(a_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int32 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float dx = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { - dx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float dy = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { - dy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float da = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { - da_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float x = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 45)) { - x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float y = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 53)) { - y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float a = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) { - a_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Frame::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshotstabilize.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 id = 1; - if (this->id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); - } - - // float dx = 2; - if (!(this->dx() <= 0 && this->dx() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_dx(), target); - } - - // float dy = 3; - if (!(this->dy() <= 0 && this->dy() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_dy(), target); - } - - // float da = 4; - if (!(this->da() <= 0 && this->da() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_da(), target); - } - - // float x = 5; - if (!(this->x() <= 0 && this->x() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(5, this->_internal_x(), target); - } - - // float y = 6; - if (!(this->y() <= 0 && this->y() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(6, this->_internal_y(), target); - } - - // float a = 7; - if (!(this->a() <= 0 && this->a() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(7, this->_internal_a(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshotstabilize.Frame) - return target; -} - -size_t Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshotstabilize.Frame) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int32 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_id()); - } - - // float dx = 2; - if (!(this->dx() <= 0 && this->dx() >= 0)) { - total_size += 1 + 4; - } - - // float dy = 3; - if (!(this->dy() <= 0 && this->dy() >= 0)) { - total_size += 1 + 4; - } - - // float da = 4; - if (!(this->da() <= 0 && this->da() >= 0)) { - total_size += 1 + 4; - } - - // float x = 5; - if (!(this->x() <= 0 && this->x() >= 0)) { - total_size += 1 + 4; - } - - // float y = 6; - if (!(this->y() <= 0 && this->y() >= 0)) { - total_size += 1 + 4; - } - - // float a = 7; - if (!(this->a() <= 0 && this->a() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshotstabilize.Frame) - GOOGLE_DCHECK_NE(&from, this); - const Frame* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshotstabilize.Frame) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshotstabilize.Frame) - MergeFrom(*source); - } -} - -void Frame::MergeFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshotstabilize.Frame) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id() != 0) { - _internal_set_id(from._internal_id()); - } - if (!(from.dx() <= 0 && from.dx() >= 0)) { - _internal_set_dx(from._internal_dx()); - } - if (!(from.dy() <= 0 && from.dy() >= 0)) { - _internal_set_dy(from._internal_dy()); - } - if (!(from.da() <= 0 && from.da() >= 0)) { - _internal_set_da(from._internal_da()); - } - if (!(from.x() <= 0 && from.x() >= 0)) { - _internal_set_x(from._internal_x()); - } - if (!(from.y() <= 0 && from.y() >= 0)) { - _internal_set_y(from._internal_y()); - } - if (!(from.a() <= 0 && from.a() >= 0)) { - _internal_set_a(from._internal_a()); - } -} - -void Frame::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshotstabilize.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame::CopyFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshotstabilize.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame::IsInitialized() const { - return true; -} - -void Frame::InternalSwap(Frame* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Frame, a_) - + sizeof(Frame::a_) - - PROTOBUF_FIELD_OFFSET(Frame, id_)>( - reinterpret_cast(&id_), - reinterpret_cast(&other->id_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Frame::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Stabilization::InitAsDefaultInstance() { - ::libopenshotstabilize::_Stabilization_default_instance_._instance.get_mutable()->last_updated_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); -} -class Stabilization::_Internal { - public: - static const PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const Stabilization* msg); -}; - -const PROTOBUF_NAMESPACE_ID::Timestamp& -Stabilization::_Internal::last_updated(const Stabilization* msg) { - return *msg->last_updated_; -} -void Stabilization::clear_last_updated() { - if (GetArena() == nullptr && last_updated_ != nullptr) { - delete last_updated_; - } - last_updated_ = nullptr; -} -Stabilization::Stabilization(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - frame_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshotstabilize.Stabilization) -} -Stabilization::Stabilization(const Stabilization& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - frame_(from.frame_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_last_updated()) { - last_updated_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); - } else { - last_updated_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:libopenshotstabilize.Stabilization) -} - -void Stabilization::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Stabilization_stabilizedata_2eproto.base); - last_updated_ = nullptr; -} - -Stabilization::~Stabilization() { - // @@protoc_insertion_point(destructor:libopenshotstabilize.Stabilization) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Stabilization::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete last_updated_; -} - -void Stabilization::ArenaDtor(void* object) { - Stabilization* _this = reinterpret_cast< Stabilization* >(object); - (void)_this; -} -void Stabilization::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Stabilization::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Stabilization& Stabilization::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Stabilization_stabilizedata_2eproto.base); - return *internal_default_instance(); -} - - -void Stabilization::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshotstabilize.Stabilization) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - frame_.Clear(); - if (GetArena() == nullptr && last_updated_ != nullptr) { - delete last_updated_; - } - last_updated_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Stabilization::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .libopenshotstabilize.Frame frame = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_frame(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - // .google.protobuf.Timestamp last_updated = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_last_updated(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Stabilization::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshotstabilize.Stabilization) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .libopenshotstabilize.Frame frame = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_frame_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_frame(i), target, stream); - } - - // .google.protobuf.Timestamp last_updated = 2; - if (this->has_last_updated()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::last_updated(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshotstabilize.Stabilization) - return target; -} - -size_t Stabilization::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshotstabilize.Stabilization) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .libopenshotstabilize.Frame frame = 1; - total_size += 1UL * this->_internal_frame_size(); - for (const auto& msg : this->frame_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .google.protobuf.Timestamp last_updated = 2; - if (this->has_last_updated()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *last_updated_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Stabilization::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshotstabilize.Stabilization) - GOOGLE_DCHECK_NE(&from, this); - const Stabilization* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshotstabilize.Stabilization) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshotstabilize.Stabilization) - MergeFrom(*source); - } -} - -void Stabilization::MergeFrom(const Stabilization& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshotstabilize.Stabilization) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - frame_.MergeFrom(from.frame_); - if (from.has_last_updated()) { - _internal_mutable_last_updated()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); - } -} - -void Stabilization::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshotstabilize.Stabilization) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Stabilization::CopyFrom(const Stabilization& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshotstabilize.Stabilization) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Stabilization::IsInitialized() const { - return true; -} - -void Stabilization::InternalSwap(Stabilization* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - frame_.InternalSwap(&other->frame_); - swap(last_updated_, other->last_updated_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Stabilization::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace libopenshotstabilize -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::libopenshotstabilize::Frame* Arena::CreateMaybeMessage< ::libopenshotstabilize::Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshotstabilize::Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::libopenshotstabilize::Stabilization* Arena::CreateMaybeMessage< ::libopenshotstabilize::Stabilization >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshotstabilize::Stabilization >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/src/stabilizedata.pb.h b/src/stabilizedata.pb.h deleted file mode 100644 index 208a4f8f5..000000000 --- a/src/stabilizedata.pb.h +++ /dev/null @@ -1,723 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: stabilizedata.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_stabilizedata_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_stabilizedata_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3012000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3012003 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_stabilizedata_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_stabilizedata_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_stabilizedata_2eproto; -namespace libopenshotstabilize { -class Frame; -class FrameDefaultTypeInternal; -extern FrameDefaultTypeInternal _Frame_default_instance_; -class Stabilization; -class StabilizationDefaultTypeInternal; -extern StabilizationDefaultTypeInternal _Stabilization_default_instance_; -} // namespace libopenshotstabilize -PROTOBUF_NAMESPACE_OPEN -template<> ::libopenshotstabilize::Frame* Arena::CreateMaybeMessage<::libopenshotstabilize::Frame>(Arena*); -template<> ::libopenshotstabilize::Stabilization* Arena::CreateMaybeMessage<::libopenshotstabilize::Stabilization>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace libopenshotstabilize { - -// =================================================================== - -class Frame PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshotstabilize.Frame) */ { - public: - inline Frame() : Frame(nullptr) {}; - virtual ~Frame(); - - Frame(const Frame& from); - Frame(Frame&& from) noexcept - : Frame() { - *this = ::std::move(from); - } - - inline Frame& operator=(const Frame& from) { - CopyFrom(from); - return *this; - } - inline Frame& operator=(Frame&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Frame& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame* internal_default_instance() { - return reinterpret_cast( - &_Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Frame& a, Frame& b) { - a.Swap(&b); - } - inline void Swap(Frame* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Frame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Frame* New() const final { - return CreateMaybeMessage(nullptr); - } - - Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Frame& from); - void MergeFrom(const Frame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshotstabilize.Frame"; - } - protected: - explicit Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_stabilizedata_2eproto); - return ::descriptor_table_stabilizedata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIdFieldNumber = 1, - kDxFieldNumber = 2, - kDyFieldNumber = 3, - kDaFieldNumber = 4, - kXFieldNumber = 5, - kYFieldNumber = 6, - kAFieldNumber = 7, - }; - // int32 id = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int32 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const; - void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value); - public: - - // float dx = 2; - void clear_dx(); - float dx() const; - void set_dx(float value); - private: - float _internal_dx() const; - void _internal_set_dx(float value); - public: - - // float dy = 3; - void clear_dy(); - float dy() const; - void set_dy(float value); - private: - float _internal_dy() const; - void _internal_set_dy(float value); - public: - - // float da = 4; - void clear_da(); - float da() const; - void set_da(float value); - private: - float _internal_da() const; - void _internal_set_da(float value); - public: - - // float x = 5; - void clear_x(); - float x() const; - void set_x(float value); - private: - float _internal_x() const; - void _internal_set_x(float value); - public: - - // float y = 6; - void clear_y(); - float y() const; - void set_y(float value); - private: - float _internal_y() const; - void _internal_set_y(float value); - public: - - // float a = 7; - void clear_a(); - float a() const; - void set_a(float value); - private: - float _internal_a() const; - void _internal_set_a(float value); - public: - - // @@protoc_insertion_point(class_scope:libopenshotstabilize.Frame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int32 id_; - float dx_; - float dy_; - float da_; - float x_; - float y_; - float a_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_stabilizedata_2eproto; -}; -// ------------------------------------------------------------------- - -class Stabilization PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshotstabilize.Stabilization) */ { - public: - inline Stabilization() : Stabilization(nullptr) {}; - virtual ~Stabilization(); - - Stabilization(const Stabilization& from); - Stabilization(Stabilization&& from) noexcept - : Stabilization() { - *this = ::std::move(from); - } - - inline Stabilization& operator=(const Stabilization& from) { - CopyFrom(from); - return *this; - } - inline Stabilization& operator=(Stabilization&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Stabilization& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Stabilization* internal_default_instance() { - return reinterpret_cast( - &_Stabilization_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Stabilization& a, Stabilization& b) { - a.Swap(&b); - } - inline void Swap(Stabilization* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Stabilization* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Stabilization* New() const final { - return CreateMaybeMessage(nullptr); - } - - Stabilization* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Stabilization& from); - void MergeFrom(const Stabilization& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Stabilization* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshotstabilize.Stabilization"; - } - protected: - explicit Stabilization(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_stabilizedata_2eproto); - return ::descriptor_table_stabilizedata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFrameFieldNumber = 1, - kLastUpdatedFieldNumber = 2, - }; - // repeated .libopenshotstabilize.Frame frame = 1; - int frame_size() const; - private: - int _internal_frame_size() const; - public: - void clear_frame(); - ::libopenshotstabilize::Frame* mutable_frame(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotstabilize::Frame >* - mutable_frame(); - private: - const ::libopenshotstabilize::Frame& _internal_frame(int index) const; - ::libopenshotstabilize::Frame* _internal_add_frame(); - public: - const ::libopenshotstabilize::Frame& frame(int index) const; - ::libopenshotstabilize::Frame* add_frame(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotstabilize::Frame >& - frame() const; - - // .google.protobuf.Timestamp last_updated = 2; - bool has_last_updated() const; - private: - bool _internal_has_last_updated() const; - public: - void clear_last_updated(); - const PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); - public: - void unsafe_arena_set_allocated_last_updated( - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); - PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); - - // @@protoc_insertion_point(class_scope:libopenshotstabilize.Stabilization) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotstabilize::Frame > frame_; - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_stabilizedata_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Frame - -// int32 id = 1; -inline void Frame::clear_id() { - id_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::_internal_id() const { - return id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::id() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.id) - return _internal_id(); -} -inline void Frame::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { - - id_ = value; -} -inline void Frame::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.id) -} - -// float dx = 2; -inline void Frame::clear_dx() { - dx_ = 0; -} -inline float Frame::_internal_dx() const { - return dx_; -} -inline float Frame::dx() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.dx) - return _internal_dx(); -} -inline void Frame::_internal_set_dx(float value) { - - dx_ = value; -} -inline void Frame::set_dx(float value) { - _internal_set_dx(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.dx) -} - -// float dy = 3; -inline void Frame::clear_dy() { - dy_ = 0; -} -inline float Frame::_internal_dy() const { - return dy_; -} -inline float Frame::dy() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.dy) - return _internal_dy(); -} -inline void Frame::_internal_set_dy(float value) { - - dy_ = value; -} -inline void Frame::set_dy(float value) { - _internal_set_dy(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.dy) -} - -// float da = 4; -inline void Frame::clear_da() { - da_ = 0; -} -inline float Frame::_internal_da() const { - return da_; -} -inline float Frame::da() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.da) - return _internal_da(); -} -inline void Frame::_internal_set_da(float value) { - - da_ = value; -} -inline void Frame::set_da(float value) { - _internal_set_da(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.da) -} - -// float x = 5; -inline void Frame::clear_x() { - x_ = 0; -} -inline float Frame::_internal_x() const { - return x_; -} -inline float Frame::x() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.x) - return _internal_x(); -} -inline void Frame::_internal_set_x(float value) { - - x_ = value; -} -inline void Frame::set_x(float value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.x) -} - -// float y = 6; -inline void Frame::clear_y() { - y_ = 0; -} -inline float Frame::_internal_y() const { - return y_; -} -inline float Frame::y() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.y) - return _internal_y(); -} -inline void Frame::_internal_set_y(float value) { - - y_ = value; -} -inline void Frame::set_y(float value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.y) -} - -// float a = 7; -inline void Frame::clear_a() { - a_ = 0; -} -inline float Frame::_internal_a() const { - return a_; -} -inline float Frame::a() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Frame.a) - return _internal_a(); -} -inline void Frame::_internal_set_a(float value) { - - a_ = value; -} -inline void Frame::set_a(float value) { - _internal_set_a(value); - // @@protoc_insertion_point(field_set:libopenshotstabilize.Frame.a) -} - -// ------------------------------------------------------------------- - -// Stabilization - -// repeated .libopenshotstabilize.Frame frame = 1; -inline int Stabilization::_internal_frame_size() const { - return frame_.size(); -} -inline int Stabilization::frame_size() const { - return _internal_frame_size(); -} -inline void Stabilization::clear_frame() { - frame_.Clear(); -} -inline ::libopenshotstabilize::Frame* Stabilization::mutable_frame(int index) { - // @@protoc_insertion_point(field_mutable:libopenshotstabilize.Stabilization.frame) - return frame_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotstabilize::Frame >* -Stabilization::mutable_frame() { - // @@protoc_insertion_point(field_mutable_list:libopenshotstabilize.Stabilization.frame) - return &frame_; -} -inline const ::libopenshotstabilize::Frame& Stabilization::_internal_frame(int index) const { - return frame_.Get(index); -} -inline const ::libopenshotstabilize::Frame& Stabilization::frame(int index) const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Stabilization.frame) - return _internal_frame(index); -} -inline ::libopenshotstabilize::Frame* Stabilization::_internal_add_frame() { - return frame_.Add(); -} -inline ::libopenshotstabilize::Frame* Stabilization::add_frame() { - // @@protoc_insertion_point(field_add:libopenshotstabilize.Stabilization.frame) - return _internal_add_frame(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshotstabilize::Frame >& -Stabilization::frame() const { - // @@protoc_insertion_point(field_list:libopenshotstabilize.Stabilization.frame) - return frame_; -} - -// .google.protobuf.Timestamp last_updated = 2; -inline bool Stabilization::_internal_has_last_updated() const { - return this != internal_default_instance() && last_updated_ != nullptr; -} -inline bool Stabilization::has_last_updated() const { - return _internal_has_last_updated(); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& Stabilization::_internal_last_updated() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& Stabilization::last_updated() const { - // @@protoc_insertion_point(field_get:libopenshotstabilize.Stabilization.last_updated) - return _internal_last_updated(); -} -inline void Stabilization::unsafe_arena_set_allocated_last_updated( - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); - } - last_updated_ = last_updated; - if (last_updated) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:libopenshotstabilize.Stabilization.last_updated) -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Stabilization::release_last_updated() { - auto temp = unsafe_arena_release_last_updated(); - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Stabilization::unsafe_arena_release_last_updated() { - // @@protoc_insertion_point(field_release:libopenshotstabilize.Stabilization.last_updated) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; - last_updated_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Stabilization::_internal_mutable_last_updated() { - - if (last_updated_ == nullptr) { - auto* p = CreateMaybeMessage(GetArena()); - last_updated_ = p; - } - return last_updated_; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Stabilization::mutable_last_updated() { - // @@protoc_insertion_point(field_mutable:libopenshotstabilize.Stabilization.last_updated) - return _internal_mutable_last_updated(); -} -inline void Stabilization::set_allocated_last_updated(PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); - } - if (last_updated) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)->GetArena(); - if (message_arena != submessage_arena) { - last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, last_updated, submessage_arena); - } - - } else { - - } - last_updated_ = last_updated; - // @@protoc_insertion_point(field_set_allocated:libopenshotstabilize.Stabilization.last_updated) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace libopenshotstabilize - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_stabilizedata_2eproto diff --git a/src/trackerdata.pb.cc b/src/trackerdata.pb.cc deleted file mode 100644 index 8536f4594..000000000 --- a/src/trackerdata.pb.cc +++ /dev/null @@ -1,961 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: trackerdata.proto - -#include "trackerdata.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_trackerdata_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Frame_trackerdata_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_trackerdata_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Frame_Box_trackerdata_2eproto; -namespace libopenshottracker { -class Frame_BoxDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Frame_Box_default_instance_; -class FrameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Frame_default_instance_; -class TrackerDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Tracker_default_instance_; -} // namespace libopenshottracker -static void InitDefaultsscc_info_Frame_trackerdata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshottracker::_Frame_default_instance_; - new (ptr) ::libopenshottracker::Frame(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshottracker::Frame::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Frame_trackerdata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Frame_trackerdata_2eproto}, { - &scc_info_Frame_Box_trackerdata_2eproto.base,}}; - -static void InitDefaultsscc_info_Frame_Box_trackerdata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshottracker::_Frame_Box_default_instance_; - new (ptr) ::libopenshottracker::Frame_Box(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshottracker::Frame_Box::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Frame_Box_trackerdata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Frame_Box_trackerdata_2eproto}, {}}; - -static void InitDefaultsscc_info_Tracker_trackerdata_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::libopenshottracker::_Tracker_default_instance_; - new (ptr) ::libopenshottracker::Tracker(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::libopenshottracker::Tracker::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Tracker_trackerdata_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Tracker_trackerdata_2eproto}, { - &scc_info_Frame_trackerdata_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_trackerdata_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_trackerdata_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_trackerdata_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_trackerdata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame_Box, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame_Box, x1_), - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame_Box, y1_), - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame_Box, x2_), - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame_Box, y2_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame, id_), - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame, rotation_), - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Frame, bounding_box_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Tracker, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Tracker, frame_), - PROTOBUF_FIELD_OFFSET(::libopenshottracker::Tracker, last_updated_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::libopenshottracker::Frame_Box)}, - { 9, -1, sizeof(::libopenshottracker::Frame)}, - { 17, -1, sizeof(::libopenshottracker::Tracker)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::libopenshottracker::_Frame_Box_default_instance_), - reinterpret_cast(&::libopenshottracker::_Frame_default_instance_), - reinterpret_cast(&::libopenshottracker::_Tracker_default_instance_), -}; - -const char descriptor_table_protodef_trackerdata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021trackerdata.proto\022\022libopenshottracker\032" - "\037google/protobuf/timestamp.proto\"\221\001\n\005Fra" - "me\022\n\n\002id\030\001 \001(\005\022\020\n\010rotation\030\002 \001(\002\0223\n\014boun" - "ding_box\030\003 \001(\0132\035.libopenshottracker.Fram" - "e.Box\0325\n\003Box\022\n\n\002x1\030\001 \001(\002\022\n\n\002y1\030\002 \001(\002\022\n\n\002" - "x2\030\003 \001(\002\022\n\n\002y2\030\004 \001(\002\"e\n\007Tracker\022(\n\005frame" - "\030\001 \003(\0132\031.libopenshottracker.Frame\0220\n\014las" - "t_updated\030\002 \001(\0132\032.google.protobuf.Timest" - "ampb\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_trackerdata_2eproto_deps[1] = { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_trackerdata_2eproto_sccs[3] = { - &scc_info_Frame_trackerdata_2eproto.base, - &scc_info_Frame_Box_trackerdata_2eproto.base, - &scc_info_Tracker_trackerdata_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_trackerdata_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_trackerdata_2eproto = { - false, false, descriptor_table_protodef_trackerdata_2eproto, "trackerdata.proto", 331, - &descriptor_table_trackerdata_2eproto_once, descriptor_table_trackerdata_2eproto_sccs, descriptor_table_trackerdata_2eproto_deps, 3, 1, - schemas, file_default_instances, TableStruct_trackerdata_2eproto::offsets, - file_level_metadata_trackerdata_2eproto, 3, file_level_enum_descriptors_trackerdata_2eproto, file_level_service_descriptors_trackerdata_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_trackerdata_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_trackerdata_2eproto)), true); -namespace libopenshottracker { - -// =================================================================== - -void Frame_Box::InitAsDefaultInstance() { -} -class Frame_Box::_Internal { - public: -}; - -Frame_Box::Frame_Box(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshottracker.Frame.Box) -} -Frame_Box::Frame_Box(const Frame_Box& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&x1_, &from.x1_, - static_cast(reinterpret_cast(&y2_) - - reinterpret_cast(&x1_)) + sizeof(y2_)); - // @@protoc_insertion_point(copy_constructor:libopenshottracker.Frame.Box) -} - -void Frame_Box::SharedCtor() { - ::memset(&x1_, 0, static_cast( - reinterpret_cast(&y2_) - - reinterpret_cast(&x1_)) + sizeof(y2_)); -} - -Frame_Box::~Frame_Box() { - // @@protoc_insertion_point(destructor:libopenshottracker.Frame.Box) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Frame_Box::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void Frame_Box::ArenaDtor(void* object) { - Frame_Box* _this = reinterpret_cast< Frame_Box* >(object); - (void)_this; -} -void Frame_Box::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Frame_Box::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Frame_Box& Frame_Box::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Frame_Box_trackerdata_2eproto.base); - return *internal_default_instance(); -} - - -void Frame_Box::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshottracker.Frame.Box) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&x1_, 0, static_cast( - reinterpret_cast(&y2_) - - reinterpret_cast(&x1_)) + sizeof(y2_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Frame_Box::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // float x1 = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) { - x1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float y1 = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { - y1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float x2 = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) { - x2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // float y2 = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { - y2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Frame_Box::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshottracker.Frame.Box) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // float x1 = 1; - if (!(this->x1() <= 0 && this->x1() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x1(), target); - } - - // float y1 = 2; - if (!(this->y1() <= 0 && this->y1() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y1(), target); - } - - // float x2 = 3; - if (!(this->x2() <= 0 && this->x2() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_x2(), target); - } - - // float y2 = 4; - if (!(this->y2() <= 0 && this->y2() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_y2(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshottracker.Frame.Box) - return target; -} - -size_t Frame_Box::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshottracker.Frame.Box) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float x1 = 1; - if (!(this->x1() <= 0 && this->x1() >= 0)) { - total_size += 1 + 4; - } - - // float y1 = 2; - if (!(this->y1() <= 0 && this->y1() >= 0)) { - total_size += 1 + 4; - } - - // float x2 = 3; - if (!(this->x2() <= 0 && this->x2() >= 0)) { - total_size += 1 + 4; - } - - // float y2 = 4; - if (!(this->y2() <= 0 && this->y2() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame_Box::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshottracker.Frame.Box) - GOOGLE_DCHECK_NE(&from, this); - const Frame_Box* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshottracker.Frame.Box) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshottracker.Frame.Box) - MergeFrom(*source); - } -} - -void Frame_Box::MergeFrom(const Frame_Box& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshottracker.Frame.Box) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (!(from.x1() <= 0 && from.x1() >= 0)) { - _internal_set_x1(from._internal_x1()); - } - if (!(from.y1() <= 0 && from.y1() >= 0)) { - _internal_set_y1(from._internal_y1()); - } - if (!(from.x2() <= 0 && from.x2() >= 0)) { - _internal_set_x2(from._internal_x2()); - } - if (!(from.y2() <= 0 && from.y2() >= 0)) { - _internal_set_y2(from._internal_y2()); - } -} - -void Frame_Box::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshottracker.Frame.Box) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame_Box::CopyFrom(const Frame_Box& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshottracker.Frame.Box) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame_Box::IsInitialized() const { - return true; -} - -void Frame_Box::InternalSwap(Frame_Box* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Frame_Box, y2_) - + sizeof(Frame_Box::y2_) - - PROTOBUF_FIELD_OFFSET(Frame_Box, x1_)>( - reinterpret_cast(&x1_), - reinterpret_cast(&other->x1_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Frame_Box::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Frame::InitAsDefaultInstance() { - ::libopenshottracker::_Frame_default_instance_._instance.get_mutable()->bounding_box_ = const_cast< ::libopenshottracker::Frame_Box*>( - ::libopenshottracker::Frame_Box::internal_default_instance()); -} -class Frame::_Internal { - public: - static const ::libopenshottracker::Frame_Box& bounding_box(const Frame* msg); -}; - -const ::libopenshottracker::Frame_Box& -Frame::_Internal::bounding_box(const Frame* msg) { - return *msg->bounding_box_; -} -Frame::Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshottracker.Frame) -} -Frame::Frame(const Frame& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_bounding_box()) { - bounding_box_ = new ::libopenshottracker::Frame_Box(*from.bounding_box_); - } else { - bounding_box_ = nullptr; - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&rotation_) - - reinterpret_cast(&id_)) + sizeof(rotation_)); - // @@protoc_insertion_point(copy_constructor:libopenshottracker.Frame) -} - -void Frame::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Frame_trackerdata_2eproto.base); - ::memset(&bounding_box_, 0, static_cast( - reinterpret_cast(&rotation_) - - reinterpret_cast(&bounding_box_)) + sizeof(rotation_)); -} - -Frame::~Frame() { - // @@protoc_insertion_point(destructor:libopenshottracker.Frame) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Frame::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete bounding_box_; -} - -void Frame::ArenaDtor(void* object) { - Frame* _this = reinterpret_cast< Frame* >(object); - (void)_this; -} -void Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Frame& Frame::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Frame_trackerdata_2eproto.base); - return *internal_default_instance(); -} - - -void Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshottracker.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArena() == nullptr && bounding_box_ != nullptr) { - delete bounding_box_; - } - bounding_box_ = nullptr; - ::memset(&id_, 0, static_cast( - reinterpret_cast(&rotation_) - - reinterpret_cast(&id_)) + sizeof(rotation_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int32 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float rotation = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) { - rotation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // .libopenshottracker.Frame.Box bounding_box = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_bounding_box(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Frame::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshottracker.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 id = 1; - if (this->id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_id(), target); - } - - // float rotation = 2; - if (!(this->rotation() <= 0 && this->rotation() >= 0)) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_rotation(), target); - } - - // .libopenshottracker.Frame.Box bounding_box = 3; - if (this->has_bounding_box()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::bounding_box(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshottracker.Frame) - return target; -} - -size_t Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshottracker.Frame) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .libopenshottracker.Frame.Box bounding_box = 3; - if (this->has_bounding_box()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bounding_box_); - } - - // int32 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_id()); - } - - // float rotation = 2; - if (!(this->rotation() <= 0 && this->rotation() >= 0)) { - total_size += 1 + 4; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshottracker.Frame) - GOOGLE_DCHECK_NE(&from, this); - const Frame* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshottracker.Frame) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshottracker.Frame) - MergeFrom(*source); - } -} - -void Frame::MergeFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshottracker.Frame) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_bounding_box()) { - _internal_mutable_bounding_box()->::libopenshottracker::Frame_Box::MergeFrom(from._internal_bounding_box()); - } - if (from.id() != 0) { - _internal_set_id(from._internal_id()); - } - if (!(from.rotation() <= 0 && from.rotation() >= 0)) { - _internal_set_rotation(from._internal_rotation()); - } -} - -void Frame::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshottracker.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Frame::CopyFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshottracker.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Frame::IsInitialized() const { - return true; -} - -void Frame::InternalSwap(Frame* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Frame, rotation_) - + sizeof(Frame::rotation_) - - PROTOBUF_FIELD_OFFSET(Frame, bounding_box_)>( - reinterpret_cast(&bounding_box_), - reinterpret_cast(&other->bounding_box_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Frame::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void Tracker::InitAsDefaultInstance() { - ::libopenshottracker::_Tracker_default_instance_._instance.get_mutable()->last_updated_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); -} -class Tracker::_Internal { - public: - static const PROTOBUF_NAMESPACE_ID::Timestamp& last_updated(const Tracker* msg); -}; - -const PROTOBUF_NAMESPACE_ID::Timestamp& -Tracker::_Internal::last_updated(const Tracker* msg) { - return *msg->last_updated_; -} -void Tracker::clear_last_updated() { - if (GetArena() == nullptr && last_updated_ != nullptr) { - delete last_updated_; - } - last_updated_ = nullptr; -} -Tracker::Tracker(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - frame_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); - // @@protoc_insertion_point(arena_constructor:libopenshottracker.Tracker) -} -Tracker::Tracker(const Tracker& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - frame_(from.frame_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_last_updated()) { - last_updated_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_updated_); - } else { - last_updated_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:libopenshottracker.Tracker) -} - -void Tracker::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Tracker_trackerdata_2eproto.base); - last_updated_ = nullptr; -} - -Tracker::~Tracker() { - // @@protoc_insertion_point(destructor:libopenshottracker.Tracker) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Tracker::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete last_updated_; -} - -void Tracker::ArenaDtor(void* object) { - Tracker* _this = reinterpret_cast< Tracker* >(object); - (void)_this; -} -void Tracker::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Tracker::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Tracker& Tracker::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Tracker_trackerdata_2eproto.base); - return *internal_default_instance(); -} - - -void Tracker::Clear() { -// @@protoc_insertion_point(message_clear_start:libopenshottracker.Tracker) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - frame_.Clear(); - if (GetArena() == nullptr && last_updated_ != nullptr) { - delete last_updated_; - } - last_updated_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Tracker::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .libopenshottracker.Frame frame = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_frame(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - // .google.protobuf.Timestamp last_updated = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_last_updated(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Tracker::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:libopenshottracker.Tracker) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .libopenshottracker.Frame frame = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_frame_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_frame(i), target, stream); - } - - // .google.protobuf.Timestamp last_updated = 2; - if (this->has_last_updated()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::last_updated(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:libopenshottracker.Tracker) - return target; -} - -size_t Tracker::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:libopenshottracker.Tracker) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .libopenshottracker.Frame frame = 1; - total_size += 1UL * this->_internal_frame_size(); - for (const auto& msg : this->frame_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // .google.protobuf.Timestamp last_updated = 2; - if (this->has_last_updated()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *last_updated_); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Tracker::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:libopenshottracker.Tracker) - GOOGLE_DCHECK_NE(&from, this); - const Tracker* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:libopenshottracker.Tracker) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:libopenshottracker.Tracker) - MergeFrom(*source); - } -} - -void Tracker::MergeFrom(const Tracker& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:libopenshottracker.Tracker) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - frame_.MergeFrom(from.frame_); - if (from.has_last_updated()) { - _internal_mutable_last_updated()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_updated()); - } -} - -void Tracker::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:libopenshottracker.Tracker) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Tracker::CopyFrom(const Tracker& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:libopenshottracker.Tracker) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Tracker::IsInitialized() const { - return true; -} - -void Tracker::InternalSwap(Tracker* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - frame_.InternalSwap(&other->frame_); - swap(last_updated_, other->last_updated_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Tracker::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace libopenshottracker -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::libopenshottracker::Frame_Box* Arena::CreateMaybeMessage< ::libopenshottracker::Frame_Box >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshottracker::Frame_Box >(arena); -} -template<> PROTOBUF_NOINLINE ::libopenshottracker::Frame* Arena::CreateMaybeMessage< ::libopenshottracker::Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshottracker::Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::libopenshottracker::Tracker* Arena::CreateMaybeMessage< ::libopenshottracker::Tracker >(Arena* arena) { - return Arena::CreateMessageInternal< ::libopenshottracker::Tracker >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/src/trackerdata.pb.h b/src/trackerdata.pb.h deleted file mode 100644 index d30c6ef10..000000000 --- a/src/trackerdata.pb.h +++ /dev/null @@ -1,931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: trackerdata.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_trackerdata_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_trackerdata_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3012000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3012003 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_trackerdata_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_trackerdata_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_trackerdata_2eproto; -namespace libopenshottracker { -class Frame; -class FrameDefaultTypeInternal; -extern FrameDefaultTypeInternal _Frame_default_instance_; -class Frame_Box; -class Frame_BoxDefaultTypeInternal; -extern Frame_BoxDefaultTypeInternal _Frame_Box_default_instance_; -class Tracker; -class TrackerDefaultTypeInternal; -extern TrackerDefaultTypeInternal _Tracker_default_instance_; -} // namespace libopenshottracker -PROTOBUF_NAMESPACE_OPEN -template<> ::libopenshottracker::Frame* Arena::CreateMaybeMessage<::libopenshottracker::Frame>(Arena*); -template<> ::libopenshottracker::Frame_Box* Arena::CreateMaybeMessage<::libopenshottracker::Frame_Box>(Arena*); -template<> ::libopenshottracker::Tracker* Arena::CreateMaybeMessage<::libopenshottracker::Tracker>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace libopenshottracker { - -// =================================================================== - -class Frame_Box PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshottracker.Frame.Box) */ { - public: - inline Frame_Box() : Frame_Box(nullptr) {}; - virtual ~Frame_Box(); - - Frame_Box(const Frame_Box& from); - Frame_Box(Frame_Box&& from) noexcept - : Frame_Box() { - *this = ::std::move(from); - } - - inline Frame_Box& operator=(const Frame_Box& from) { - CopyFrom(from); - return *this; - } - inline Frame_Box& operator=(Frame_Box&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Frame_Box& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame_Box* internal_default_instance() { - return reinterpret_cast( - &_Frame_Box_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Frame_Box& a, Frame_Box& b) { - a.Swap(&b); - } - inline void Swap(Frame_Box* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Frame_Box* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Frame_Box* New() const final { - return CreateMaybeMessage(nullptr); - } - - Frame_Box* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Frame_Box& from); - void MergeFrom(const Frame_Box& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame_Box* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshottracker.Frame.Box"; - } - protected: - explicit Frame_Box(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_trackerdata_2eproto); - return ::descriptor_table_trackerdata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kX1FieldNumber = 1, - kY1FieldNumber = 2, - kX2FieldNumber = 3, - kY2FieldNumber = 4, - }; - // float x1 = 1; - void clear_x1(); - float x1() const; - void set_x1(float value); - private: - float _internal_x1() const; - void _internal_set_x1(float value); - public: - - // float y1 = 2; - void clear_y1(); - float y1() const; - void set_y1(float value); - private: - float _internal_y1() const; - void _internal_set_y1(float value); - public: - - // float x2 = 3; - void clear_x2(); - float x2() const; - void set_x2(float value); - private: - float _internal_x2() const; - void _internal_set_x2(float value); - public: - - // float y2 = 4; - void clear_y2(); - float y2() const; - void set_y2(float value); - private: - float _internal_y2() const; - void _internal_set_y2(float value); - public: - - // @@protoc_insertion_point(class_scope:libopenshottracker.Frame.Box) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - float x1_; - float y1_; - float x2_; - float y2_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_trackerdata_2eproto; -}; -// ------------------------------------------------------------------- - -class Frame PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshottracker.Frame) */ { - public: - inline Frame() : Frame(nullptr) {}; - virtual ~Frame(); - - Frame(const Frame& from); - Frame(Frame&& from) noexcept - : Frame() { - *this = ::std::move(from); - } - - inline Frame& operator=(const Frame& from) { - CopyFrom(from); - return *this; - } - inline Frame& operator=(Frame&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Frame& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Frame* internal_default_instance() { - return reinterpret_cast( - &_Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Frame& a, Frame& b) { - a.Swap(&b); - } - inline void Swap(Frame* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Frame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Frame* New() const final { - return CreateMaybeMessage(nullptr); - } - - Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Frame& from); - void MergeFrom(const Frame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshottracker.Frame"; - } - protected: - explicit Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_trackerdata_2eproto); - return ::descriptor_table_trackerdata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - typedef Frame_Box Box; - - // accessors ------------------------------------------------------- - - enum : int { - kBoundingBoxFieldNumber = 3, - kIdFieldNumber = 1, - kRotationFieldNumber = 2, - }; - // .libopenshottracker.Frame.Box bounding_box = 3; - bool has_bounding_box() const; - private: - bool _internal_has_bounding_box() const; - public: - void clear_bounding_box(); - const ::libopenshottracker::Frame_Box& bounding_box() const; - ::libopenshottracker::Frame_Box* release_bounding_box(); - ::libopenshottracker::Frame_Box* mutable_bounding_box(); - void set_allocated_bounding_box(::libopenshottracker::Frame_Box* bounding_box); - private: - const ::libopenshottracker::Frame_Box& _internal_bounding_box() const; - ::libopenshottracker::Frame_Box* _internal_mutable_bounding_box(); - public: - void unsafe_arena_set_allocated_bounding_box( - ::libopenshottracker::Frame_Box* bounding_box); - ::libopenshottracker::Frame_Box* unsafe_arena_release_bounding_box(); - - // int32 id = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int32 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const; - void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value); - public: - - // float rotation = 2; - void clear_rotation(); - float rotation() const; - void set_rotation(float value); - private: - float _internal_rotation() const; - void _internal_set_rotation(float value); - public: - - // @@protoc_insertion_point(class_scope:libopenshottracker.Frame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::libopenshottracker::Frame_Box* bounding_box_; - ::PROTOBUF_NAMESPACE_ID::int32 id_; - float rotation_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_trackerdata_2eproto; -}; -// ------------------------------------------------------------------- - -class Tracker PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:libopenshottracker.Tracker) */ { - public: - inline Tracker() : Tracker(nullptr) {}; - virtual ~Tracker(); - - Tracker(const Tracker& from); - Tracker(Tracker&& from) noexcept - : Tracker() { - *this = ::std::move(from); - } - - inline Tracker& operator=(const Tracker& from) { - CopyFrom(from); - return *this; - } - inline Tracker& operator=(Tracker&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Tracker& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Tracker* internal_default_instance() { - return reinterpret_cast( - &_Tracker_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Tracker& a, Tracker& b) { - a.Swap(&b); - } - inline void Swap(Tracker* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Tracker* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Tracker* New() const final { - return CreateMaybeMessage(nullptr); - } - - Tracker* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Tracker& from); - void MergeFrom(const Tracker& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Tracker* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "libopenshottracker.Tracker"; - } - protected: - explicit Tracker(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_trackerdata_2eproto); - return ::descriptor_table_trackerdata_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kFrameFieldNumber = 1, - kLastUpdatedFieldNumber = 2, - }; - // repeated .libopenshottracker.Frame frame = 1; - int frame_size() const; - private: - int _internal_frame_size() const; - public: - void clear_frame(); - ::libopenshottracker::Frame* mutable_frame(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshottracker::Frame >* - mutable_frame(); - private: - const ::libopenshottracker::Frame& _internal_frame(int index) const; - ::libopenshottracker::Frame* _internal_add_frame(); - public: - const ::libopenshottracker::Frame& frame(int index) const; - ::libopenshottracker::Frame* add_frame(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshottracker::Frame >& - frame() const; - - // .google.protobuf.Timestamp last_updated = 2; - bool has_last_updated() const; - private: - bool _internal_has_last_updated() const; - public: - void clear_last_updated(); - const PROTOBUF_NAMESPACE_ID::Timestamp& last_updated() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_last_updated(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_updated(); - void set_allocated_last_updated(PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_updated() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_updated(); - public: - void unsafe_arena_set_allocated_last_updated( - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated); - PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_updated(); - - // @@protoc_insertion_point(class_scope:libopenshottracker.Tracker) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshottracker::Frame > frame_; - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_trackerdata_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Frame_Box - -// float x1 = 1; -inline void Frame_Box::clear_x1() { - x1_ = 0; -} -inline float Frame_Box::_internal_x1() const { - return x1_; -} -inline float Frame_Box::x1() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.Box.x1) - return _internal_x1(); -} -inline void Frame_Box::_internal_set_x1(float value) { - - x1_ = value; -} -inline void Frame_Box::set_x1(float value) { - _internal_set_x1(value); - // @@protoc_insertion_point(field_set:libopenshottracker.Frame.Box.x1) -} - -// float y1 = 2; -inline void Frame_Box::clear_y1() { - y1_ = 0; -} -inline float Frame_Box::_internal_y1() const { - return y1_; -} -inline float Frame_Box::y1() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.Box.y1) - return _internal_y1(); -} -inline void Frame_Box::_internal_set_y1(float value) { - - y1_ = value; -} -inline void Frame_Box::set_y1(float value) { - _internal_set_y1(value); - // @@protoc_insertion_point(field_set:libopenshottracker.Frame.Box.y1) -} - -// float x2 = 3; -inline void Frame_Box::clear_x2() { - x2_ = 0; -} -inline float Frame_Box::_internal_x2() const { - return x2_; -} -inline float Frame_Box::x2() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.Box.x2) - return _internal_x2(); -} -inline void Frame_Box::_internal_set_x2(float value) { - - x2_ = value; -} -inline void Frame_Box::set_x2(float value) { - _internal_set_x2(value); - // @@protoc_insertion_point(field_set:libopenshottracker.Frame.Box.x2) -} - -// float y2 = 4; -inline void Frame_Box::clear_y2() { - y2_ = 0; -} -inline float Frame_Box::_internal_y2() const { - return y2_; -} -inline float Frame_Box::y2() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.Box.y2) - return _internal_y2(); -} -inline void Frame_Box::_internal_set_y2(float value) { - - y2_ = value; -} -inline void Frame_Box::set_y2(float value) { - _internal_set_y2(value); - // @@protoc_insertion_point(field_set:libopenshottracker.Frame.Box.y2) -} - -// ------------------------------------------------------------------- - -// Frame - -// int32 id = 1; -inline void Frame::clear_id() { - id_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::_internal_id() const { - return id_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::id() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.id) - return _internal_id(); -} -inline void Frame::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { - - id_ = value; -} -inline void Frame::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:libopenshottracker.Frame.id) -} - -// float rotation = 2; -inline void Frame::clear_rotation() { - rotation_ = 0; -} -inline float Frame::_internal_rotation() const { - return rotation_; -} -inline float Frame::rotation() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.rotation) - return _internal_rotation(); -} -inline void Frame::_internal_set_rotation(float value) { - - rotation_ = value; -} -inline void Frame::set_rotation(float value) { - _internal_set_rotation(value); - // @@protoc_insertion_point(field_set:libopenshottracker.Frame.rotation) -} - -// .libopenshottracker.Frame.Box bounding_box = 3; -inline bool Frame::_internal_has_bounding_box() const { - return this != internal_default_instance() && bounding_box_ != nullptr; -} -inline bool Frame::has_bounding_box() const { - return _internal_has_bounding_box(); -} -inline void Frame::clear_bounding_box() { - if (GetArena() == nullptr && bounding_box_ != nullptr) { - delete bounding_box_; - } - bounding_box_ = nullptr; -} -inline const ::libopenshottracker::Frame_Box& Frame::_internal_bounding_box() const { - const ::libopenshottracker::Frame_Box* p = bounding_box_; - return p != nullptr ? *p : *reinterpret_cast( - &::libopenshottracker::_Frame_Box_default_instance_); -} -inline const ::libopenshottracker::Frame_Box& Frame::bounding_box() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Frame.bounding_box) - return _internal_bounding_box(); -} -inline void Frame::unsafe_arena_set_allocated_bounding_box( - ::libopenshottracker::Frame_Box* bounding_box) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bounding_box_); - } - bounding_box_ = bounding_box; - if (bounding_box) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:libopenshottracker.Frame.bounding_box) -} -inline ::libopenshottracker::Frame_Box* Frame::release_bounding_box() { - auto temp = unsafe_arena_release_bounding_box(); - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline ::libopenshottracker::Frame_Box* Frame::unsafe_arena_release_bounding_box() { - // @@protoc_insertion_point(field_release:libopenshottracker.Frame.bounding_box) - - ::libopenshottracker::Frame_Box* temp = bounding_box_; - bounding_box_ = nullptr; - return temp; -} -inline ::libopenshottracker::Frame_Box* Frame::_internal_mutable_bounding_box() { - - if (bounding_box_ == nullptr) { - auto* p = CreateMaybeMessage<::libopenshottracker::Frame_Box>(GetArena()); - bounding_box_ = p; - } - return bounding_box_; -} -inline ::libopenshottracker::Frame_Box* Frame::mutable_bounding_box() { - // @@protoc_insertion_point(field_mutable:libopenshottracker.Frame.bounding_box) - return _internal_mutable_bounding_box(); -} -inline void Frame::set_allocated_bounding_box(::libopenshottracker::Frame_Box* bounding_box) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete bounding_box_; - } - if (bounding_box) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(bounding_box); - if (message_arena != submessage_arena) { - bounding_box = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bounding_box, submessage_arena); - } - - } else { - - } - bounding_box_ = bounding_box; - // @@protoc_insertion_point(field_set_allocated:libopenshottracker.Frame.bounding_box) -} - -// ------------------------------------------------------------------- - -// Tracker - -// repeated .libopenshottracker.Frame frame = 1; -inline int Tracker::_internal_frame_size() const { - return frame_.size(); -} -inline int Tracker::frame_size() const { - return _internal_frame_size(); -} -inline void Tracker::clear_frame() { - frame_.Clear(); -} -inline ::libopenshottracker::Frame* Tracker::mutable_frame(int index) { - // @@protoc_insertion_point(field_mutable:libopenshottracker.Tracker.frame) - return frame_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshottracker::Frame >* -Tracker::mutable_frame() { - // @@protoc_insertion_point(field_mutable_list:libopenshottracker.Tracker.frame) - return &frame_; -} -inline const ::libopenshottracker::Frame& Tracker::_internal_frame(int index) const { - return frame_.Get(index); -} -inline const ::libopenshottracker::Frame& Tracker::frame(int index) const { - // @@protoc_insertion_point(field_get:libopenshottracker.Tracker.frame) - return _internal_frame(index); -} -inline ::libopenshottracker::Frame* Tracker::_internal_add_frame() { - return frame_.Add(); -} -inline ::libopenshottracker::Frame* Tracker::add_frame() { - // @@protoc_insertion_point(field_add:libopenshottracker.Tracker.frame) - return _internal_add_frame(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::libopenshottracker::Frame >& -Tracker::frame() const { - // @@protoc_insertion_point(field_list:libopenshottracker.Tracker.frame) - return frame_; -} - -// .google.protobuf.Timestamp last_updated = 2; -inline bool Tracker::_internal_has_last_updated() const { - return this != internal_default_instance() && last_updated_ != nullptr; -} -inline bool Tracker::has_last_updated() const { - return _internal_has_last_updated(); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& Tracker::_internal_last_updated() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_updated_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& Tracker::last_updated() const { - // @@protoc_insertion_point(field_get:libopenshottracker.Tracker.last_updated) - return _internal_last_updated(); -} -inline void Tracker::unsafe_arena_set_allocated_last_updated( - PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); - } - last_updated_ = last_updated; - if (last_updated) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:libopenshottracker.Tracker.last_updated) -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Tracker::release_last_updated() { - auto temp = unsafe_arena_release_last_updated(); - if (GetArena() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Tracker::unsafe_arena_release_last_updated() { - // @@protoc_insertion_point(field_release:libopenshottracker.Tracker.last_updated) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_updated_; - last_updated_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Tracker::_internal_mutable_last_updated() { - - if (last_updated_ == nullptr) { - auto* p = CreateMaybeMessage(GetArena()); - last_updated_ = p; - } - return last_updated_; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Tracker::mutable_last_updated() { - // @@protoc_insertion_point(field_mutable:libopenshottracker.Tracker.last_updated) - return _internal_mutable_last_updated(); -} -inline void Tracker::set_allocated_last_updated(PROTOBUF_NAMESPACE_ID::Timestamp* last_updated) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated_); - } - if (last_updated) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_updated)->GetArena(); - if (message_arena != submessage_arena) { - last_updated = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, last_updated, submessage_arena); - } - - } else { - - } - last_updated_ = last_updated; - // @@protoc_insertion_point(field_set_allocated:libopenshottracker.Tracker.last_updated) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace libopenshottracker - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_trackerdata_2eproto