Lines Matching refs:temp
178 static void horizontal_decompose53i(DWTELEM *b, DWTELEM *temp, int width)
185 temp[x] = b[2 * x];
186 temp[x + w2] = b[2 * x + 1];
189 temp[x] = b[2 * x];
190 lift(b + w2, temp + w2, temp, 1, 1, 1, width, -1, 0, 1, 1, 0);
191 lift(b, temp, b + w2, 1, 1, 1, width, 1, 2, 2, 0, 0);
212 static void spatial_decompose53i(DWTELEM *buffer, DWTELEM *temp,
224 horizontal_decompose53i(b2, temp, width);
226 horizontal_decompose53i(b3, temp, width);
238 static void horizontal_decompose97i(DWTELEM *b, DWTELEM *temp, int width)
242 lift(temp + w2, b + 1, b, 1, 2, 2, width, W_AM, W_AO, W_AS, 1, 1);
243 liftS(temp, b, temp + w2, 1, 2, 1, width, W_BM, W_BO, W_BS, 0, 0);
244 lift(b + w2, temp + w2, temp, 1, 1, 1, width, W_CM, W_CO, W_CS, 1, 0);
245 lift(b, temp, b + w2, 1, 1, 1, width, W_DM, W_DO, W_DS, 0, 0);
285 static void spatial_decompose97i(DWTELEM *buffer, DWTELEM *temp,
299 horizontal_decompose97i(b4, temp, width);
301 horizontal_decompose97i(b5, temp, width);
319 void ff_spatial_dwt(DWTELEM *buffer, DWTELEM *temp, int width, int height,
327 spatial_decompose97i(buffer, temp,
332 spatial_decompose53i(buffer, temp,
340 static void horizontal_compose53i(IDWTELEM *b, IDWTELEM *temp, int width)
347 temp[2 * x] = b[x];
348 temp[2 * x + 1] = b[x + w2];
351 temp[2 * x] = b[x];
353 b[0] = temp[0] - ((temp[1] + 1) >> 1);
355 b[x] = temp[x] - ((temp[x - 1] + temp[x + 1] + 2) >> 2);
356 b[x - 1] = temp[x - 1] + ((b[x - 2] + b[x] + 1) >> 1);
359 b[x] = temp[x] - ((temp[x - 1] + 1) >> 1);
360 b[x - 1] = temp[x - 1] + ((b[x - 2] + b[x] + 1) >> 1);
362 b[x - 1] = temp[x - 1] + b[x - 2];
401 IDWTELEM *temp,
431 horizontal_compose53i(b0, temp, width);
433 horizontal_compose53i(b1, temp, width);
441 IDWTELEM *temp, int width, int height,
456 horizontal_compose53i(b0, temp, width);
458 horizontal_compose53i(b1, temp, width);
465 static void snow_horizontal_compose97i(IDWTELEM *b, IDWTELEM *temp, int width)
470 temp[0] = b[0] - ((3 * b[w2] + 2) >> 2);
472 temp[2 * x] = b[x] - ((3 * (b[x + w2 - 1] + b[x + w2]) + 4) >> 3);
473 temp[2 * x - 1] = b[x + w2 - 1] - temp[2 * x - 2] - temp[2 * x];
476 temp[2 * x] = b[x] - ((3 * b[x + w2 - 1] + 2) >> 2);
477 temp[2 * x - 1] = b[x + w2 - 1] - temp[2 * x - 2] - temp[2 * x];
479 temp[2 * x - 1] = b[x + w2 - 1] - 2 * temp[2 * x - 2];
481 b[0] = temp[0] + ((2 * temp[0] + temp[1] + 4) >> 3);
483 b[x] = temp[x] + ((4 * temp[x] + temp[x - 1] + temp[x + 1] + 8) >> 4);
484 b[x - 1] = temp[x - 1] + ((3 * (b[x - 2] + b[x])) >> 1);
487 b[x] = temp[x] + ((2 * temp[x] + temp[x - 1] + 4) >> 3);
488 b[x - 1] = temp[x - 1] + ((3 * (b[x - 2] + b[x])) >> 1);
490 b[x - 1] = temp[x - 1] + 3 * b[x - 2];
564 slice_buffer * sb, IDWTELEM *temp,
595 dsp->horizontal_compose97i(b0, temp, width);
597 dsp->horizontal_compose97i(b1, temp, width);
607 IDWTELEM *temp, int width, int height,
628 snow_horizontal_compose97i(b0, temp, width);
630 snow_horizontal_compose97i(b1, temp, width);
659 slice_buffer *slice_buf, IDWTELEM *temp,
672 spatial_compose97i_dy_buffered(dsp, cs + level, slice_buf, temp,
678 spatial_compose53i_dy_buffered(cs + level, slice_buf, temp,
707 IDWTELEM *temp, int width, int height,
720 spatial_compose97i_dy(cs + level, buffer, temp, width >> level,
724 spatial_compose53i_dy(cs + level, buffer, temp, width >> level,
731 void ff_spatial_idwt(IDWTELEM *buffer, IDWTELEM *temp, int width, int height,
739 spatial_idwt_slice(cs, buffer, temp, width, height, stride, type,