Skip to content

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.

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

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"?

// GCC
#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.

3 participants