Home
last modified time | relevance | path

Searched refs:encode_buffer (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/stb/
H A Dstb_image_resize.h548 …float* encode_buffer; // A temporary buffer to store floats so we don't lose precision while we do… member
1692 …(stbir__info* stbir_info, int num_pixels, void *output_buffer, float *encode_buffer, int channels,… in stbir__encode_scanline() argument
1705 float alpha = encode_buffer[pixel_index + alpha_channel]; in stbir__encode_scanline()
1711 encode_buffer[pixel_index + n] *= reciprocal_alpha; in stbir__encode_scanline()
1751 … ((unsigned char*)output_buffer)[index] = STBIR__ENCODE_LINEAR8(encode_buffer[index]); in stbir__encode_scanline()
1764 … ((unsigned char*)output_buffer)[index] = stbir__linear_to_srgb_uchar(encode_buffer[index]); in stbir__encode_scanline()
1768 …*)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR8(encode_buffer[pixel_index+al… in stbir__encode_scanline()
1780 … ((unsigned short*)output_buffer)[index] = STBIR__ENCODE_LINEAR16(encode_buffer[index]); in stbir__encode_scanline()
1793 …unsigned short)STBIR__ROUND_INT(stbir__linear_to_srgb(stbir__saturate(encode_buffer[index])) * stb… in stbir__encode_scanline()
1797 …)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR16(encode_buffer[pixel_index + … in stbir__encode_scanline()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/include/stb/
H A Dstb_image_resize.h548 …float* encode_buffer; // A temporary buffer to store floats so we don't lose precision while we do… member
1692 …(stbir__info* stbir_info, int num_pixels, void *output_buffer, float *encode_buffer, int channels,… in stbir__encode_scanline() argument
1705 float alpha = encode_buffer[pixel_index + alpha_channel]; in stbir__encode_scanline()
1711 encode_buffer[pixel_index + n] *= reciprocal_alpha; in stbir__encode_scanline()
1751 … ((unsigned char*)output_buffer)[index] = STBIR__ENCODE_LINEAR8(encode_buffer[index]); in stbir__encode_scanline()
1764 … ((unsigned char*)output_buffer)[index] = stbir__linear_to_srgb_uchar(encode_buffer[index]); in stbir__encode_scanline()
1768 …*)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR8(encode_buffer[pixel_index+al… in stbir__encode_scanline()
1780 … ((unsigned short*)output_buffer)[index] = STBIR__ENCODE_LINEAR16(encode_buffer[index]); in stbir__encode_scanline()
1793 …unsigned short)STBIR__ROUND_INT(stbir__linear_to_srgb(stbir__saturate(encode_buffer[index])) * stb… in stbir__encode_scanline()
1797 …)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR16(encode_buffer[pixel_index + … in stbir__encode_scanline()
[all …]