From 4051e208911b7bbf7e98bf13edda8fe07eb95b3c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 2 Jun 2025 09:38:32 +0200 Subject: [PATCH] video_compress: move compress_init_t below In the header, first is external API and then internal (explicitily) so moved it the right place. updated @file doxy a bit (is for ext+int API) --- src/video_compress.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/video_compress.h b/src/video_compress.h index 8506b908a..c27fa415e 100644 --- a/src/video_compress.h +++ b/src/video_compress.h @@ -5,10 +5,10 @@ * @author Martin Pulec * @ingroup video_compress * - * @brief API for video compress drivers. + * @brief external vcompress API + internal one for video compress drivers */ /* - * Copyright (c) 2009-2024 CESNET, z. s. p. o. + * Copyright (c) 2009-2025 CESNET * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -80,15 +80,6 @@ struct module; // // Begins external API for video compression use // -/** - * @brief Initializes video compression - * - * @param[in] parent parent module - * @param[in] cfg configuration string - * @return driver internal state - */ -typedef struct module *(*compress_init_t)(struct module *parent, - const char *cfg); // documented at definition void show_compress_help(bool full); // documented at definition @@ -111,6 +102,16 @@ std::shared_ptr compress_pop(struct compress_state *); #include #include +/** + * @brief Initializes video compression + * + * @param[in] parent parent module + * @param[in] cfg configuration string + * @return driver internal state + */ +typedef struct module *(*compress_init_t)(struct module *parent, + const char *cfg); + /** * @brief Compresses video frame *