-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gines
committed
Jul 11, 2017
1 parent
c047d13
commit 39a0d76
Showing
135 changed files
with
377 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef OPENPOSE_CORE_COMMON_HPP | ||
#define OPENPOSE_CORE_COMMON_HPP | ||
|
||
#include "rectangle.hpp" | ||
#include "array.hpp" | ||
#include "macros.hpp" | ||
#include "point.hpp" | ||
|
||
#endif // OPENPOSE_CORE_COMMON_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef OPENPOSE_UTILITIES_MACROS_HPP | ||
#define OPENPOSE_UTILITIES_MACROS_HPP | ||
|
||
#ifndef _WIN32 | ||
#define OP_API | ||
#elif defined OP_EXPORTS | ||
#define OP_API __declspec(dllexport) | ||
#else | ||
#define OP_API __declspec(dllimport) | ||
#endif | ||
|
||
#define DATUM_BASE_NO_PTR std::vector<Datum> | ||
#define DATUM_BASE std::shared_ptr<DATUM_BASE_NO_PTR> | ||
#define DEFINE_TEMPLATE_DATUM(templateName) template class OP_API templateName<DATUM_BASE> | ||
#define COMPILE_TEMPLATE_DATUM(templateName) extern DEFINE_TEMPLATE_DATUM(templateName) | ||
|
||
#define UNUSED(unusedVariable) (void)(unusedVariable) | ||
|
||
#define DELETE_COPY(className) \ | ||
className(const className&) = delete; \ | ||
className& operator=(const className&) = delete | ||
|
||
#define COMPILE_TEMPLATE_BASIC_TYPES_CLASS(className) COMPILE_TEMPLATE_BASIC_TYPES(className, class) | ||
|
||
#define COMPILE_TEMPLATE_BASIC_TYPES_STRUCT(className) COMPILE_TEMPLATE_BASIC_TYPES(className, struct) | ||
|
||
#define COMPILE_TEMPLATE_BASIC_TYPES(className, classType) \ | ||
template classType OP_API className<char>; \ | ||
template classType OP_API className<signed char>; \ | ||
template classType OP_API className<short>; \ | ||
template classType OP_API className<int>; \ | ||
template classType OP_API className<long>; \ | ||
template classType OP_API className<long long>; \ | ||
template classType OP_API className<unsigned char>; \ | ||
template classType OP_API className<unsigned short>; \ | ||
template classType OP_API className<unsigned int>; \ | ||
template classType OP_API className<unsigned long>; \ | ||
template classType OP_API className<unsigned long long>; \ | ||
template classType OP_API className<float>; \ | ||
template classType OP_API className<double>; \ | ||
template classType OP_API className<long double> | ||
|
||
// Includes at the end, since this macros class does not need them, but the files that call this | ||
// file. However, keeping the files at the beginning might create a circular include linking problem. | ||
#include <memory> // std::shared_ptr | ||
#include <vector> | ||
#include <openpose/core/datum.hpp> | ||
#include <openpose/core/point.hpp> | ||
#include <openpose/core/rectangle.hpp> | ||
#include <openpose/core/macros.hpp> | ||
|
||
#endif // OPENPOSE_UTILITIES_MACROS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.