MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__setup_jpeg

Function stbi__setup_jpeg

lite/example/cpp_example/mge/cv/stb_image.h:4133–4151  ·  view source on GitHub ↗

set up the kernels

Source from the content-addressed store, hash-verified

4131
4132// set up the kernels
4133static 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
4154static void stbi__cleanup_jpeg(stbi__jpeg* j) {

Callers 2

stbi__jpeg_loadFunction · 0.85
stbi__jpeg_testFunction · 0.85

Calls 1

stbi__sse2_availableFunction · 0.85

Tested by

no test coverage detected