MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__setup_jpeg

Function stbi__setup_jpeg

include/stb/stb_image.h:3821–3840  ·  view source on GitHub ↗

set up the kernels

Source from the content-addressed store, hash-verified

3819
3820// set up the kernels
3821static void stbi__setup_jpeg(stbi__jpeg *j)
3822{
3823 j->idct_block_kernel = stbi__idct_block;
3824 j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row;
3825 j->resample_row_hv_2_kernel = stbi__resample_row_hv_2;
3826
3827#ifdef STBI_SSE2
3828 if (stbi__sse2_available()) {
3829 j->idct_block_kernel = stbi__idct_simd;
3830 j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd;
3831 j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd;
3832 }
3833#endif
3834
3835#ifdef STBI_NEON
3836 j->idct_block_kernel = stbi__idct_simd;
3837 j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd;
3838 j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd;
3839#endif
3840}
3841
3842// clean up the temporary component buffers
3843static 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