tinyimg 1.1.1
Lightweight image manipulation library for WebAssembly
Loading...
Searching...
No Matches
work.h
1#ifndef TINYIMG_WORK_H
2#define TINYIMG_WORK_H
3
4#include "tinyimg/tinyimg.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
24typedef enum
25{
27 TINYIMG_WORK_SOURCE_SAMPLES = 0,
29 TINYIMG_WORK_DECODED_SAMPLES = 1,
31 TINYIMG_WORK_BLOCKS = 2,
33 TINYIMG_WORK_TRANSFORMS = 3,
41 TINYIMG_WORK_TRANSFORM_SAMPLES = 4,
43 TINYIMG_WORK_MACROBLOCKS = 5,
45 TINYIMG_WORK_FILTERED = 6,
47 TINYIMG_WORK_RESAMPLED = 7,
49 TINYIMG_WORK_ENCODED = 8,
51 TINYIMG_WORK_PASSES = 9,
59 TINYIMG_WORK_SCANS_SKIPPED = 10,
60} TinyWorkCounter;
61
68void tiny_work_reset(void);
69
79uint32_t tiny_work_read(TinyWorkCounter counter);
80
90void tiny_work_add(TinyWorkCounter counter, uint32_t amount);
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif
Umbrella header, version and error codes.