forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update capi and remove qt dependency
- Loading branch information
Showing
4 changed files
with
39 additions
and
64 deletions.
There are no files selected for viewing
Submodule capi
updated
10 files
+6 −6 | README.md | |
+149 −30 | capi.h | |
+5 −0 | test/sdl/CMakeLists.txt | |
+2 −7 | test/sdl/sdl.pro | |
+20 −15 | test/sdl/sdl_api.cpp | |
+34 −9 | test/sdl/sdl_api.h | |
+2 −5 | test/sdl/sdl_api_test.cpp | |
+5 −0 | test/zlib/CMakeLists.txt | |
+8 −3 | test/zlib/zlib.pro | |
+6 −4 | test/zlib/zlib_api.cpp |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/****************************************************************************** | ||
mkapi dynamic load code generation for capi template | ||
Copyright (C) 2014 Wang Bin <[email protected]> | ||
Copyright (C) 2014-2015 Wang Bin <[email protected]> | ||
https://github.com/wang-bin/mkapi | ||
https://github.com/wang-bin/capi | ||
|
@@ -23,7 +23,6 @@ | |
//#define DEBUG_LOAD | ||
//#define CAPI_IS_LAZY_RESOLVE 0 | ||
#ifndef CAPI_LINK_ASS | ||
#include <QtCore/QLibrary> | ||
#include "capi.h" | ||
#endif | ||
#include "ass_api.h" //include last to avoid covering types later | ||
|
@@ -46,18 +45,18 @@ static const int versions[] = { | |
5, 4 | ||
, ::capi::EndVersion | ||
}; | ||
CAPI_BEGIN_DLL_VER(names, versions, QLibrary) | ||
CAPI_BEGIN_DLL_VER(names, versions, ::capi::dso) | ||
# else | ||
CAPI_BEGIN_DLL(names, QLibrary) | ||
CAPI_BEGIN_DLL(names, ::capi::dso) | ||
# endif //1 | ||
// CAPI_DEFINE_RESOLVER(argc, return_type, name, argv_no_name) | ||
// mkapi code generation BEGIN | ||
//CAPI_DEFINE_ENTRY(int, ass_library_version, CAPI_ARG0()) | ||
CAPI_DEFINE_ENTRY(ASS_Library *, ass_library_init, CAPI_ARG0()) | ||
CAPI_DEFINE_ENTRY(void, ass_library_done, CAPI_ARG1(ASS_Library *)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_fonts_dir, CAPI_ARG2(ASS_Library *, const char *)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_extract_fonts, CAPI_ARG2(ASS_Library *, int)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_style_overrides, CAPI_ARG2(ASS_Library *, char **)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_extract_fonts, CAPI_ARG2(ASS_Library *, int)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_style_overrides, CAPI_ARG2(ASS_Library *, char **)) | ||
//CAPI_DEFINE_ENTRY(void, ass_process_force_style, CAPI_ARG1(ASS_Track *)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_message_cb, CAPI_ARG3(ASS_Library *, void (*msg_cb) | ||
(int level, const char *fmt, va_list args, void *data), void *)) | ||
|
@@ -66,11 +65,11 @@ CAPI_DEFINE_ENTRY(void, ass_renderer_done, CAPI_ARG1(ASS_Renderer *)) | |
CAPI_DEFINE_ENTRY(void, ass_set_frame_size, CAPI_ARG3(ASS_Renderer *, int, int)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_storage_size, CAPI_ARG3(ASS_Renderer *, int, int)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_shaper, CAPI_ARG2(ASS_Renderer *, ASS_ShapingLevel)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_margins, CAPI_ARG5(ASS_Renderer *, int, int, int, int)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_use_margins, CAPI_ARG2(ASS_Renderer *, int)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_margins, CAPI_ARG5(ASS_Renderer *, int, int, int, int)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_use_margins, CAPI_ARG2(ASS_Renderer *, int)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_pixel_aspect, CAPI_ARG2(ASS_Renderer *, double)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_aspect_ratio, CAPI_ARG3(ASS_Renderer *, double, double)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_font_scale, CAPI_ARG2(ASS_Renderer *, double)) | ||
CAPI_DEFINE_ENTRY(void, ass_set_font_scale, CAPI_ARG2(ASS_Renderer *, double)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_hinting, CAPI_ARG2(ASS_Renderer *, ASS_Hinting)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_line_spacing, CAPI_ARG2(ASS_Renderer *, double)) | ||
//CAPI_DEFINE_ENTRY(void, ass_set_line_position, CAPI_ARG2(ASS_Renderer *, double)) | ||
|
@@ -107,20 +106,20 @@ typedef void (*ass_set_message_cb_msg_cb1) | |
CAPI_DEFINE(ASS_Library *, ass_library_init, CAPI_ARG0()) | ||
CAPI_DEFINE(void, ass_library_done, CAPI_ARG1(ASS_Library *)) | ||
CAPI_DEFINE(void, ass_set_fonts_dir, CAPI_ARG2(ASS_Library *, const char *)) | ||
//CAPI_DEFINE(void, ass_set_extract_fonts, CAPI_ARG2(ASS_Library *, int)) | ||
//CAPI_DEFINE(void, ass_set_style_overrides, CAPI_ARG2(ASS_Library *, char **)) | ||
CAPI_DEFINE(void, ass_set_extract_fonts, CAPI_ARG2(ASS_Library *, int)) | ||
CAPI_DEFINE(void, ass_set_style_overrides, CAPI_ARG2(ASS_Library *, char **)) | ||
//CAPI_DEFINE(void, ass_process_force_style, CAPI_ARG1(ASS_Track *)) | ||
CAPI_DEFINE(void, ass_set_message_cb, CAPI_ARG3(ASS_Library *, ass_set_message_cb_msg_cb1, void *)) | ||
CAPI_DEFINE(ASS_Renderer *, ass_renderer_init, CAPI_ARG1(ASS_Library *)) | ||
CAPI_DEFINE(void, ass_renderer_done, CAPI_ARG1(ASS_Renderer *)) | ||
CAPI_DEFINE(void, ass_set_frame_size, CAPI_ARG3(ASS_Renderer *, int, int)) | ||
//CAPI_DEFINE(void, ass_set_storage_size, CAPI_ARG3(ASS_Renderer *, int, int)) | ||
CAPI_DEFINE(void, ass_set_shaper, CAPI_ARG2(ASS_Renderer *, ASS_ShapingLevel)) | ||
//CAPI_DEFINE(void, ass_set_margins, CAPI_ARG5(ASS_Renderer *, int, int, int, int)) | ||
//CAPI_DEFINE(void, ass_set_use_margins, CAPI_ARG2(ASS_Renderer *, int)) | ||
CAPI_DEFINE(void, ass_set_margins, CAPI_ARG5(ASS_Renderer *, int, int, int, int)) | ||
CAPI_DEFINE(void, ass_set_use_margins, CAPI_ARG2(ASS_Renderer *, int)) | ||
//CAPI_DEFINE(void, ass_set_pixel_aspect, CAPI_ARG2(ASS_Renderer *, double)) | ||
//CAPI_DEFINE(void, ass_set_aspect_ratio, CAPI_ARG3(ASS_Renderer *, double, double)) | ||
//CAPI_DEFINE(void, ass_set_font_scale, CAPI_ARG2(ASS_Renderer *, double)) | ||
CAPI_DEFINE(void, ass_set_font_scale, CAPI_ARG2(ASS_Renderer *, double)) | ||
//CAPI_DEFINE(void, ass_set_hinting, CAPI_ARG2(ASS_Renderer *, ASS_Hinting)) | ||
//CAPI_DEFINE(void, ass_set_line_spacing, CAPI_ARG2(ASS_Renderer *, double)) | ||
//CAPI_DEFINE(void, ass_set_line_position, CAPI_ARG2(ASS_Renderer *, double)) | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/****************************************************************************** | ||
mkapi dynamic load code generation for capi template | ||
Copyright (C) 2014 Wang Bin <[email protected]> | ||
Copyright (C) 2014-2015 Wang Bin <[email protected]> | ||
https://github.com/wang-bin/mkapi | ||
https://github.com/wang-bin/capi | ||
|