-
Notifications
You must be signed in to change notification settings - Fork 38
APV versioning changes #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
8ebc1ef
b3ef663
184fd24
ae2736a
d00ba13
c517562
a0af74c
80342c7
1c62d66
0235af9
9448256
d1e72dd
bb44b85
3eabf4c
559e92d
35ffde0
99ca127
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,17 +36,34 @@ | |
| extern "C" { | ||
| #endif | ||
|
|
||
| #include <oapv_config.h> | ||
|
|
||
| #if defined(OAPV_LIBVERSION_HEADER) | ||
| #include <oapv/oapv_libversion.h> | ||
| #endif | ||
|
|
||
| #if defined(OAPV_EXPORT_HEADER) && !defined(OAPV_STATIC_DEFINE) | ||
| #include <oapv/oapv_exports.h> | ||
| #if defined(ANDROID) || defined(OAPV_STATIC_DEFINE) | ||
| #define OAPV_EXPORT | ||
| #else | ||
| #define OAPV_EXPORT | ||
| #include <oapv/oapv_exports.h> | ||
| #endif | ||
|
|
||
| #if !defined(ANDROID) | ||
| #include <oapv/oapv_version.h> | ||
| #endif | ||
|
|
||
| /* macro for version */ | ||
| #define OAPV_GET_VERSION(apiset, major, minor, patch) ((apiset << 24) | (major << 16) | (minor << 8) | patch) | ||
|
|
||
| #define OAPV_GET_APISET(v) (((v) >> 24) & 0xFF) | ||
| #define OAPV_GET_MAJOR(v) (((v) >> 16) & 0xFF) | ||
| #define OAPV_GET_MINOR(v) (((v) >> 8) & 0xFF) | ||
| #define OAPV_GET_PATCH(v) ( (v) & 0xFF) | ||
|
|
||
| #define OAPV_VERSION_2_STRING(version) \ | ||
| ({ \ | ||
| static char buffer[16]; \ | ||
| snprintf(buffer, sizeof(buffer), "%d.%d.%d.%d", \ | ||
| (version >> 24) & 0xFF, \ | ||
| (version >> 16) & 0xFF, \ | ||
| (version >> 8) & 0xFF, \ | ||
| version & 0xFF); \ | ||
| buffer; \ | ||
| }) | ||
|
|
||
| /* size of macroblock */ | ||
| #define OAPV_LOG2_MB (4) | ||
|
|
@@ -662,9 +679,15 @@ OAPV_EXPORT int oapvd_decode(oapvd_t did, oapv_bitb_t *bitb, oapv_frms_t *ofrms, | |
| OAPV_EXPORT int oapvd_info(void *au, int au_size, oapv_au_info_t *aui); | ||
|
|
||
| /***************************************************************************** | ||
| * openapv version | ||
| * openapv project version | ||
| *****************************************************************************/ | ||
| OAPV_EXPORT char *oapv_version(); | ||
| OAPV_EXPORT unsigned oapv_version(); | ||
|
||
|
|
||
| /***************************************************************************** | ||
| * openapv library version | ||
| *****************************************************************************/ | ||
| OAPV_EXPORT unsigned oapv_libversion(); | ||
|
||
|
|
||
|
|
||
| #ifdef __cplusplus | ||
| } /* extern "C" */ | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/@LIB_NAME_BASE@ | |
| Name: oapv | ||
| Description: Advanced Professional Video Codec | ||
|
|
||
| Version: @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@ | ||
| Version: @LIB_VERSION_MAJOR@.@LIB_VERSION_MINOR@.@LIB_VERSION_PATCH@ | ||
|
||
|
|
||
| Requires: | ||
| Libs: -L${libdir} -l@LIB_NAME_BASE@ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v0.1.13 | ||
| v0.1.13.1 |
Uh oh!
There was an error while loading. Please reload this page.