From 9fc3d05056930fc05ee328e3b730f6225c179493 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 19 Apr 2024 19:54:58 +0000 Subject: [PATCH] Formatted cpp project with clang-format --- modules/video/include/video.h | 38 +++++++++++++++++------------------ modules/video/src/video.cpp | 12 +++++------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/modules/video/include/video.h b/modules/video/include/video.h index 6359cee..cba9d9a 100644 --- a/modules/video/include/video.h +++ b/modules/video/include/video.h @@ -37,27 +37,27 @@ extern "C" { * @brief The VideoPlayer struct represents a video player. */ struct VideoPlayer { - /** - * @brief Constructs a new VideoPlayer object. - */ - VideoPlayer(); + /** + * @brief Constructs a new VideoPlayer object. + */ + VideoPlayer(); - AVFormatContext* formatContext; - AVCodecParameters* codecParameters; - AVCodecContext* codecContext; - SDL_Window* window; - SDL_Renderer* renderer; - SDL_Texture* texture; - struct SwsContext* swsContext; - AVFrame* frame; - int videoStream; - AVRational timeBase; - double frameDuration; + AVFormatContext* formatContext; + AVCodecParameters* codecParameters; + AVCodecContext* codecContext; + SDL_Window* window; + SDL_Renderer* renderer; + SDL_Texture* texture; + struct SwsContext* swsContext; + AVFrame* frame; + int videoStream; + AVRational timeBase; + double frameDuration; }; /** * @brief Initializes the video player. - * + * * @param player Reference to the VideoPlayer object. * @return True if initialization succeeds, false otherwise. */ @@ -65,7 +65,7 @@ bool initVideoPlayer(VideoPlayer& player); /** * @brief Loads a video file into the video player. - * + * * @param player Reference to the VideoPlayer object. * @param filename The path to the video file. * @return True if loading succeeds, false otherwise. @@ -74,14 +74,14 @@ bool loadVideo(VideoPlayer& player, const char* filename); /** * @brief Starts playing the loaded video. - * + * * @param player Reference to the VideoPlayer object. */ void playVideo(VideoPlayer& player); /** * @brief Closes the video player and releases resources. - * + * * @param player Reference to the VideoPlayer object. */ void closeVideoPlayer(VideoPlayer& player); diff --git a/modules/video/src/video.cpp b/modules/video/src/video.cpp index 4d75a13..0a39c76 100644 --- a/modules/video/src/video.cpp +++ b/modules/video/src/video.cpp @@ -23,8 +23,8 @@ #include /** -* @brief Constructs a new VideoPlayer object. -*/ + * @brief Constructs a new VideoPlayer object. + */ VideoPlayer::VideoPlayer() { formatContext = nullptr; codecParameters = nullptr; @@ -39,7 +39,7 @@ VideoPlayer::VideoPlayer() { /** * @brief Initializes the video player. - * + * * @param player Reference to the VideoPlayer object. * @return True if initialization succeeds, false otherwise. */ @@ -59,7 +59,7 @@ bool initVideoPlayer(VideoPlayer& player) { /** * @brief Loads a video file into the video player. - * + * * @param player Reference to the VideoPlayer object. * @param filename The path to the video file. * @return True if loading succeeds, false otherwise. @@ -152,7 +152,7 @@ bool loadVideo(VideoPlayer& player, const char* filename) { /** * @brief Starts playing the loaded video. - * + * * @param player Reference to the VideoPlayer object. */ void playVideo(VideoPlayer& player) { @@ -196,7 +196,7 @@ void playVideo(VideoPlayer& player) { /** * @brief Closes the video player and releases resources. - * + * * @param player Reference to the VideoPlayer object. */ void closeVideoPlayer(VideoPlayer& player) {