Lines Matching defs:height

339 static void RENAME(spatial_compose_dd97i_dy)(DWTContext *d, int level, int width, int height, int stride)
349 b[6] = d->buffer + av_clip(y+5, 0, height-2)*stride;
350 b[7] = d->buffer + av_clip(y+6, 1, height-1)*stride;
352 if(y+5<(unsigned)height) vertical_compose_l0( b[5], b[6], b[7], width);
353 if(y+1<(unsigned)height) vertical_compose_h0(b[0], b[2], b[3], b[4], b[6], width);
355 if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width);
356 if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width);
363 static void RENAME(spatial_compose_dirac53i_dy)(DWTContext *d, int level, int width, int height, int stride)
371 b[2] = d->buffer + avpriv_mirror(y+1, height-1)*stride;
372 b[3] = d->buffer + avpriv_mirror(y+2, height-1)*stride;
374 if(y+1<(unsigned)height) vertical_compose_l0(b[1], b[2], b[3], width);
375 if(y+0<(unsigned)height) vertical_compose_h0(b[0], b[1], b[2], width);
377 if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width);
378 if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width);
385 static void RENAME(spatial_compose_dd137i_dy)(DWTContext *d, int level, int width, int height, int stride)
395 b[8] = d->buffer + av_clip(y+7, 0, height-2)*stride;
396 b[9] = d->buffer + av_clip(y+8, 1, height-1)*stride;
398 if(y+5<(unsigned)height) vertical_compose_l0(b[3], b[5], b[6], b[7], b[9], width);
399 if(y+1<(unsigned)height) vertical_compose_h0(b[0], b[2], b[3], b[4], b[6], width);
401 if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width);
402 if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width);
409 // haar makes the assumption that height is even (always true for dirac)
410 static void RENAME(spatial_compose_haari_dy)(DWTContext *d, int level, int width, int height, int stride)
426 static void RENAME(spatial_compose_fidelity)(DWTContext *d, int level, int width, int height, int stride)
433 for (y = 1; y < height; y += 2) {
435 b[i] = d->buffer + av_clip((y-7 + 2*i), 0, height-2)*stride;
439 for (y = 0; y < height; y += 2) {
441 b[i] = d->buffer + av_clip((y-7 + 2*i), 1, height-1)*stride;
445 for (y = 0; y < height; y++)
448 d->cs[level].y = height+1;
451 static void RENAME(spatial_compose_daub97i_dy)(DWTContext *d, int level, int width, int height, int stride)
463 b[4] = d->buffer + avpriv_mirror(y+3, height-1)*stride;
464 b[5] = d->buffer + avpriv_mirror(y+4, height-1)*stride;
466 if(y+3<(unsigned)height) vertical_compose_l1(b[3], b[4], b[5], width);
467 if(y+2<(unsigned)height) vertical_compose_h1(b[2], b[3], b[4], width);
468 if(y+1<(unsigned)height) vertical_compose_l0(b[1], b[2], b[3], width);
469 if(y+0<(unsigned)height) vertical_compose_h0(b[0], b[1], b[2], width);
471 if(y-1<(unsigned)height) d->horizontal_compose(b[0], d->temp, width);
472 if(y+0<(unsigned)height) d->horizontal_compose(b[1], d->temp, width);
479 static void RENAME(spatial_compose97i_init)(DWTCompose *cs, uint8_t *buffer, int height, int stride)
481 cs->b[0] = buffer + avpriv_mirror(-3-1, height-1)*stride;
482 cs->b[1] = buffer + avpriv_mirror(-3 , height-1)*stride;
483 cs->b[2] = buffer + avpriv_mirror(-3+1, height-1)*stride;
484 cs->b[3] = buffer + avpriv_mirror(-3+2, height-1)*stride;
488 static void RENAME(spatial_compose53i_init)(DWTCompose *cs, uint8_t *buffer, int height, int stride)
490 cs->b[0] = buffer + avpriv_mirror(-1-1, height-1)*stride;
491 cs->b[1] = buffer + avpriv_mirror(-1 , height-1)*stride;
495 static void RENAME(spatial_compose_dd97i_init)(DWTCompose *cs, uint8_t *buffer, int height, int stride)
497 cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride;
498 cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride;
499 cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride;
500 cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride;
501 cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride;
502 cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride;
506 static void RENAME(spatial_compose_dd137i_init)(DWTCompose *cs, uint8_t *buffer, int height, int stride)
508 cs->b[0] = buffer + av_clip(-5-1, 0, height-2)*stride;
509 cs->b[1] = buffer + av_clip(-5 , 1, height-1)*stride;
510 cs->b[2] = buffer + av_clip(-5+1, 0, height-2)*stride;
511 cs->b[3] = buffer + av_clip(-5+2, 1, height-1)*stride;
512 cs->b[4] = buffer + av_clip(-5+3, 0, height-2)*stride;
513 cs->b[5] = buffer + av_clip(-5+4, 1, height-1)*stride;
514 cs->b[6] = buffer + av_clip(-5+5, 0, height-2)*stride;
515 cs->b[7] = buffer + av_clip(-5+6, 1, height-1)*stride;
526 int hl = d->height >> level;