Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add example CLI project #25

wants to merge 6 commits into from

Conversation

Erik-White
Copy link
Contributor

@Erik-White Erik-White commented Apr 23, 2024

Adds an example CLI project.

The CLI can be used to run Valgrind and the readme has been updated with instructions.

@Erik-White Erik-White added the enhancement New feature or request label Apr 23, 2024
option(BUILD_EXAMPLES "build examples" OFF)

if(CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE "Debug")
Copy link
Contributor Author

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
Copy link
Contributor Author

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)

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants