set up the kernels
| 4131 | |
| 4132 | // set up the kernels |
| 4133 | static void stbi__setup_jpeg(stbi__jpeg* j) { |
| 4134 | j->idct_block_kernel = stbi__idct_block; |
| 4135 | j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row; |
| 4136 | j->resample_row_hv_2_kernel = stbi__resample_row_hv_2; |
| 4137 | |
| 4138 | #ifdef STBI_SSE2 |
| 4139 | if (stbi__sse2_available()) { |
| 4140 | j->idct_block_kernel = stbi__idct_simd; |
| 4141 | j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; |
| 4142 | j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; |
| 4143 | } |
| 4144 | #endif |
| 4145 | |
| 4146 | #ifdef STBI_NEON |
| 4147 | j->idct_block_kernel = stbi__idct_simd; |
| 4148 | j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; |
| 4149 | j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; |
| 4150 | #endif |
| 4151 | } |
| 4152 | |
| 4153 | // clean up the temporary component buffers |
| 4154 | static void stbi__cleanup_jpeg(stbi__jpeg* j) { |
no test coverage detected