-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add example CLI project #25
base: main
Are you sure you want to change the base?
Conversation
option(BUILD_EXAMPLES "build examples" OFF) | ||
|
||
if(CMAKE_BUILD_TYPE STREQUAL "") | ||
set(CMAKE_BUILD_TYPE "Debug") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Building from the command line was not working (cmake -S . -B build_linux/
) since CMAKE_BUILD_TYPE was not set at that stage. That mean that the ffmpeg packages couldn't be found because the path was incomplete.
@@ -31,69 +31,32 @@ | |||
static bool initialized = false; | |||
static vx_log_callback log_cb = NULL; | |||
|
|||
struct vx_audio_info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to move these to the header file so they could be used in the new CLI
|
||
for (int i = 0; i < video->frame_queue_count; i++) { | ||
av_frame_unref(video->frame_queue[i]); | ||
av_frame_free(&video->frame_queue[i]); | ||
} | ||
|
||
if (video->hw_device_ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the "måsvinge"?
#define VX_DECLSPEC __attribute__((visibility("default"))) | ||
#define VX_CDECL __attribute__((__cdecl__)) | ||
#define VX_CDECL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure this change doesn't cause any issues on Linux
Adds an example CLI project.
The CLI can be used to run Valgrind and the readme has been updated with instructions.