MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / horizontal_compose53i

Function horizontal_compose53i

libavcodec/dwt.c:403–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static void horizontal_compose53i(IDWTELEM *b, int width){
404 IDWTELEM temp[width];
405 const int width2= width>>1;
406 const int w2= (width+1)>>1;
407 int x;
408
409 for(x=0; x<width2; x++){
410 temp[2*x ]= b[x ];
411 temp[2*x + 1]= b[x+w2];
412 }
413 if(width&1)
414 temp[2*x ]= b[x ];
415
416 b[0] = temp[0] - ((temp[1]+1)>>1);
417 for(x=2; x<width-1; x+=2){
418 b[x ] = temp[x ] - ((temp[x-1] + temp[x+1]+2)>>2);
419 b[x-1] = temp[x-1] + ((b [x-2] + b [x ]+1)>>1);
420 }
421 if(width&1){
422 b[x ] = temp[x ] - ((temp[x-1]+1)>>1);
423 b[x-1] = temp[x-1] + ((b [x-2] + b [x ]+1)>>1);
424 }else
425 b[x-1] = temp[x-1] + b[x-2];
426}
427
428static void vertical_compose53iH0(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, int width){
429 int i;

Callers 2

spatial_compose53i_dyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected