|
30 | 30 | #ifndef GPUJPEG_PREPROCESSOR_COMMON_CUH_DCC657E3_2EDF_47E2_90F4_F7CA26829E81 |
31 | 31 | #define GPUJPEG_PREPROCESSOR_COMMON_CUH_DCC657E3_2EDF_47E2_90F4_F7CA26829E81 |
32 | 32 |
|
| 33 | +#include <cassert> |
| 34 | +#include <cstdint> |
| 35 | + |
33 | 36 | #include "../libgpujpeg/gpujpeg_common.h" |
34 | 37 | #include "../libgpujpeg/gpujpeg_type.h" |
35 | | - |
36 | | -#ifndef __cplusplus |
37 | | -#include <stdbool.h> |
38 | | -#endif |
| 38 | +#include "gpujpeg_common_internal.h" |
39 | 39 |
|
40 | 40 | #define RGB_8BIT_THREADS 256 |
41 | 41 |
|
42 | | -/** |
43 | | - * Preprocessor data for component |
44 | | - */ |
45 | | -struct gpujpeg_preprocessor_data_component |
46 | | -{ |
47 | | - uint8_t* d_data; |
48 | | - int data_width; |
49 | | - struct gpujpeg_component_sampling_factor sampling_factor; |
50 | | -}; |
51 | | - |
52 | | -/** |
53 | | - * Preprocessor data |
54 | | - */ |
55 | | -struct gpujpeg_preprocessor_data |
56 | | -{ |
57 | | - struct gpujpeg_preprocessor_data_component comp[GPUJPEG_MAX_COMPONENT_COUNT]; |
58 | | -}; |
59 | | - |
60 | | -struct gpujpeg_preprocessor { |
61 | | - void* kernel; // function poitner |
62 | | - bool input_flipped; // [preprocess only] input is flipped |
63 | | - struct gpujpeg_preprocessor_data data; |
64 | | -}; |
65 | | - |
66 | | -#ifdef PREPROCESSOR_INTERNAL_API |
67 | | -#include "gpujpeg_common_internal.h" |
68 | | -#include <cassert> |
69 | | -#include <cstdint> |
70 | 42 | /** Value that means that sampling factor has dynamic value */ |
71 | 43 | #define GPUJPEG_DYNAMIC 16 |
72 | 44 |
|
@@ -135,7 +107,6 @@ gpujpeg_preprocessor_make_sampling_factor_i(int comp_count, int numerator_h, int |
135 | 107 | coder->component[1].sampling_factor.horizontal, coder->component[1].sampling_factor.vertical, \ |
136 | 108 | coder->component[2].sampling_factor.horizontal, coder->component[2].sampling_factor.vertical, \ |
137 | 109 | coder->component[3].sampling_factor.horizontal, coder->component[3].sampling_factor.vertical) |
138 | | -#endif // defined PREPROCESSOR_INTERNAL_API |
139 | 110 |
|
140 | 111 | #endif // defined GPUJPEG_PREPROCESSOR_COMMON_CUH_DCC657E3_2EDF_47E2_90F4_F7CA26829E81 |
141 | 112 | /* vi: set expandtab sw=4: */ |
0 commit comments