Searched refs:wrk (Results 1 – 9 of 9) sorted by relevance
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/ |
A D | rescaler_utils.c | 41 wrk->x_add = wrk->x_expand ? (x_sub - 1) : x_add; in WebPRescalerInit() 42 wrk->x_sub = wrk->x_expand ? (x_add - 1) : x_sub; in WebPRescalerInit() 44 wrk->fx_scale = WEBP_RESCALER_FRAC(1, wrk->x_sub); in WebPRescalerInit() 47 wrk->y_add = wrk->y_expand ? y_add - 1 : y_add; in WebPRescalerInit() 48 wrk->y_sub = wrk->y_expand ? y_sub - 1 : y_sub; in WebPRescalerInit() 49 wrk->y_accum = wrk->y_expand ? wrk->y_sub : wrk->y_add; in WebPRescalerInit() 65 wrk->fy_scale = WEBP_RESCALER_FRAC(1, wrk->y_sub); in WebPRescalerInit() 111 const int num_lines = (wrk->y_accum + wrk->y_sub - 1) / wrk->y_sub; in WebPRescaleNeededLines() 121 wrk->irow = wrk->frow; in WebPRescalerImport() 128 wrk->irow[x] += wrk->frow[x]; in WebPRescalerImport() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/ |
A D | rescaler.c | 32 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerImportRowExpand_C() 64 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerImportRowShrink_C() 85 wrk->frow[x_out] = sum * wrk->x_sub - frac; in WebPRescalerImportRowShrink_C() 102 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerExportRowExpand_C() 133 const int x_out_max = wrk->dst_width * wrk->num_channels; in WebPRescalerExportRowShrink_C() 135 const uint32_t yscale = wrk->fy_scale * (-wrk->y_accum); in WebPRescalerExportRowShrink_C() 182 assert(wrk->src_height == wrk->dst_height && wrk->x_add == 1); in WebPRescalerExportRow() 183 assert(wrk->src_width == 1 && wrk->dst_width <= 2); in WebPRescalerExportRow() 185 wrk->dst[i] = wrk->irow[i]; in WebPRescalerExportRow() 189 wrk->y_accum += wrk->y_add; in WebPRescalerExportRow() [all …]
|
A D | rescaler_mips32.c | 27 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowShrink_MIPS32() 33 assert(!wrk->x_expand); in ImportRowShrink_MIPS32() 87 const int x_out_max = wrk->dst_width * wrk->num_channels; in ImportRowExpand_MIPS32() 93 assert(wrk->x_expand); in ImportRowExpand_MIPS32() 150 uint8_t* dst = wrk->dst; in ExportRowExpand_MIPS32() 152 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowExpand_MIPS32() 159 assert(wrk->y_expand); in ExportRowExpand_MIPS32() 182 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in ExportRowExpand_MIPS32() 214 const int x_out_max = wrk->dst_width * wrk->num_channels; 218 const int yscale = wrk->fy_scale * (-wrk->y_accum); [all …]
|
A D | rescaler_mips_dsp_r2.c | 31 const int x_out_max = wrk->dst_width * wrk->num_channels; 32 uint8_t* dst = wrk->dst; 35 const int yscale = wrk->fy_scale * (-wrk->y_accum); 40 assert(wrk->y_accum <= 0); 41 assert(!wrk->y_expand); 170 uint8_t* dst = wrk->dst; in ExportRowExpand_MIPSdspR2() 172 const int x_out_max = wrk->dst_width * wrk->num_channels; in ExportRowExpand_MIPSdspR2() 179 assert(wrk->y_expand); in ExportRowExpand_MIPSdspR2() 180 assert(wrk->y_sub != 0); in ExportRowExpand_MIPSdspR2() 181 if (wrk->y_accum == 0) { in ExportRowExpand_MIPSdspR2() [all …]
|
A D | rescaler_sse2.c | 49 const rescaler_t* const frow_end = frow + wrk->dst_width * wrk->num_channels; in RescalerImportRowExpand_SSE2() 61 assert(wrk->x_expand); in RescalerImportRowExpand_SSE2() 122 const rescaler_t* const frow_end = wrk->frow + 4 * wrk->dst_width; in RescalerImportRowShrink_SSE2() 124 if (wrk->num_channels != 4 || wrk->x_add > (x_sub << 7)) { in RescalerImportRowShrink_SSE2() 133 accum += wrk->x_add; in RescalerImportRowShrink_SSE2() 261 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowExpand_SSE2() 263 const __m128i mult = _mm_set_epi32(0, wrk->fy_scale, 0, wrk->fy_scale); in RescalerExportRowExpand_SSE2() 266 assert(wrk->y_accum <= 0 && wrk->y_sub + wrk->y_accum >= 0); in RescalerExportRowExpand_SSE2() 281 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in RescalerExportRowExpand_SSE2() 321 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowShrink_SSE2() [all …]
|
A D | rescaler_neon.c | 65 uint8_t* const dst = wrk->dst; in RescalerExportRowExpand_NEON() 67 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowExpand_NEON() 73 assert(wrk->y_accum <= 0); in RescalerExportRowExpand_NEON() 74 assert(wrk->y_expand); in RescalerExportRowExpand_NEON() 75 assert(wrk->y_sub != 0); in RescalerExportRowExpand_NEON() 76 if (wrk->y_accum == 0) { in RescalerExportRowExpand_NEON() 94 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in RescalerExportRowExpand_NEON() 123 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowShrink_NEON() 126 const uint32_t yscale = wrk->fy_scale * (-wrk->y_accum); in RescalerExportRowShrink_NEON() 132 assert(wrk->y_accum <= 0); in RescalerExportRowShrink_NEON() [all …]
|
A D | rescaler_msa.c | 178 const uint32_t B = WEBP_RESCALER_FRAC(-wrk->y_accum, wrk->y_sub); in ExportRowExpand_1() 251 uint8_t* dst = wrk->dst; in RescalerExportRowExpand_MIPSdspR2() 253 const int x_out_max = wrk->dst_width * wrk->num_channels; in RescalerExportRowExpand_MIPSdspR2() 256 assert(wrk->y_accum <= 0); in RescalerExportRowExpand_MIPSdspR2() 257 assert(wrk->y_expand); in RescalerExportRowExpand_MIPSdspR2() 258 assert(wrk->y_sub != 0); in RescalerExportRowExpand_MIPSdspR2() 259 if (wrk->y_accum == 0) { in RescalerExportRowExpand_MIPSdspR2() 417 uint8_t* dst = wrk->dst; 419 const int x_out_max = wrk->dst_width * wrk->num_channels; 421 const uint32_t yscale = wrk->fy_scale * (-wrk->y_accum); [all …]
|
A D | dsp.h | 531 typedef void (*WebPRescalerImportRowFunc)(struct WebPRescaler* const wrk, 540 typedef void (*WebPRescalerExportRowFunc)(struct WebPRescaler* const wrk); 545 extern void WebPRescalerImportRowExpand_C(struct WebPRescaler* const wrk, 547 extern void WebPRescalerImportRowShrink_C(struct WebPRescaler* const wrk, 549 extern void WebPRescalerExportRowExpand_C(struct WebPRescaler* const wrk); 550 extern void WebPRescalerExportRowShrink_C(struct WebPRescaler* const wrk); 553 extern void WebPRescalerImportRow(struct WebPRescaler* const wrk, 556 extern void WebPRescalerExportRow(struct WebPRescaler* const wrk);
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | io_dec.c | 246 int new_lines, WebPRescaler* const wrk) { in Rescale() argument 249 const int lines_in = WebPRescalerImport(wrk, new_lines, src, src_stride); in Rescale() 252 num_lines_out += WebPRescalerExport(wrk); // emit output row(s) in Rescale()
|
Completed in 16 milliseconds