Initialize class/struct variables with default values in modules/
This commit is contained in:
parent
57e2822a05
commit
f7209b459b
100 changed files with 533 additions and 772 deletions
|
|
@ -37,26 +37,26 @@
|
|||
#include <ConvectionKernels.h>
|
||||
|
||||
struct CVTTCompressionJobParams {
|
||||
bool is_hdr;
|
||||
bool is_signed;
|
||||
int bytes_per_pixel;
|
||||
bool is_hdr = false;
|
||||
bool is_signed = false;
|
||||
int bytes_per_pixel = 0;
|
||||
|
||||
cvtt::Options options;
|
||||
};
|
||||
|
||||
struct CVTTCompressionRowTask {
|
||||
const uint8_t *in_mm_bytes;
|
||||
uint8_t *out_mm_bytes;
|
||||
int y_start;
|
||||
int width;
|
||||
int height;
|
||||
uint8_t *out_mm_bytes = nullptr;
|
||||
int y_start = 0;
|
||||
int width = 0;
|
||||
int height = 0;
|
||||
};
|
||||
|
||||
struct CVTTCompressionJobQueue {
|
||||
CVTTCompressionJobParams job_params;
|
||||
const CVTTCompressionRowTask *job_tasks;
|
||||
uint32_t num_tasks;
|
||||
uint32_t current_task;
|
||||
uint32_t num_tasks = 0;
|
||||
uint32_t current_task = 0;
|
||||
};
|
||||
|
||||
static void _digest_row_task(const CVTTCompressionJobParams &p_job_params, const CVTTCompressionRowTask &p_row_task) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue