SIMD-accelerated NULL convert routine for MIPS DSPr2

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1304 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2014-05-15 18:26:01 +00:00
parent a3c3bbc2f4
commit 1b3fd7eead
6 changed files with 201 additions and 23 deletions

View File

@@ -139,6 +139,22 @@ jsimd_can_ycc_rgb (void)
return 0;
}
GLOBAL(int)
jsimd_c_can_null_convert (void)
{
init_simd();
/* The code is optimised for these values only */
if (BITS_IN_JSAMPLE != 8)
return 0;
if (sizeof(JDIMENSION) != 4)
return 0;
if (simd_support & JSIMD_MIPS_DSPR2)
return 1;
return 0;
}
GLOBAL(void)
jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
@@ -262,6 +278,16 @@ jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
input_row, output_buf, num_rows);
}
GLOBAL(void)
jsimd_c_null_convert (j_compress_ptr cinfo,
JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
JDIMENSION output_row, int num_rows)
{
if (simd_support & JSIMD_MIPS_DSPR2)
jsimd_null_convert_compr_mips_dspr2 (cinfo->image_width, input_buf,
output_buf, output_row, num_rows, cinfo->num_components);
}
GLOBAL(int)
jsimd_can_h2v2_downsample (void)
{