--- Ronald Bultje <[EMAIL PROTECTED]> wrote: > Hey Richard, > > On Fri, 2003-03-07 at 14:13, Richard Ellis wrote: > > Note, w/h appear to be the result of subtracting two from unsigned > > int's that were initialized to zero, instead of being initialized to > > the incoming frame width/height from the yuv4mpeg header. > > Yup, they're uint16_t's (see yuvdenoise/global.h). They'd need to be > signed in order for this to work. Simple remove the 'u' and it'll work.
But would that change do anything? The output from yuvdenoise says: INFO: [yuvdenoise] Frame border : x: 2 y: 2 w:65534 h:65534 w/h look like (w)idth/(h)eight. Say for example, the incoming image size was 640x480, then with -b 2,2,-2,-2, shouldn't the output be: INFO: [yuvdenoise] Frame border : x: 2 y: 2 w:636 h:476 I.e., shouldn't the code look something like this (where b(x), b(y), b(w) b(h) are the values given to the -b flag): x=b(x); y=b(y) if ( b(w) < 0 ) { w=incoming_header_width - b(x) + b(w); } else { w=b(w); } if ( b(h) < 0 ) { h=incoming_header_height - b(y)+ b(h); } else { h=b(h); } __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users