Skip to content

Commit 4051e20

Browse files
committed
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)
1 parent 43f589a commit 4051e20

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/video_compress.h

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @author Martin Pulec <[email protected]>
66
* @ingroup video_compress
77
*
8-
* @brief API for video compress drivers.
8+
* @brief external vcompress API + internal one for video compress drivers
99
*/
1010
/*
11-
* Copyright (c) 2009-2024 CESNET, z. s. p. o.
11+
* Copyright (c) 2009-2025 CESNET
1212
* All rights reserved.
1313
*
1414
* Redistribution and use in source and binary forms, with or without
@@ -80,15 +80,6 @@ struct module;
8080
//
8181
// Begins external API for video compression use
8282
//
83-
/**
84-
* @brief Initializes video compression
85-
*
86-
* @param[in] parent parent module
87-
* @param[in] cfg configuration string
88-
* @return driver internal state
89-
*/
90-
typedef struct module *(*compress_init_t)(struct module *parent,
91-
const char *cfg);
9283
// documented at definition
9384
void show_compress_help(bool full);
9485
// documented at definition
@@ -111,6 +102,16 @@ std::shared_ptr<video_frame> compress_pop(struct compress_state *);
111102
#include <string>
112103
#include <vector>
113104

105+
/**
106+
* @brief Initializes video compression
107+
*
108+
* @param[in] parent parent module
109+
* @param[in] cfg configuration string
110+
* @return driver internal state
111+
*/
112+
typedef struct module *(*compress_init_t)(struct module *parent,
113+
const char *cfg);
114+
114115
/**
115116
* @brief Compresses video frame
116117
*

0 commit comments

Comments
 (0)