For a while it has seemed to me that negative width and height values
given to yuvdenoise on the -b parameter have not in fact created a
black border on the bottom and/or right of a filtered image.  So I
started looking around in the code to see what was up.

The man page says that the -b parameter should accept negative values
for width and height.  But, inside main.c (lines 374-386), the four
values given to -b are put into the structure denoiser.border.[xywh]. 
The definition of the denoiser.border structure in global.h defines
border.[xywh] as uint16_t, or unsigned.  This appears to be the
source of this bug in the info dump:

INFO: [yuvdenoise]  Frame border     : x:  4 y:  4 w:65532 h:65532

Note the w: and h: sizes.  The border was specified as -b 4,4,-4,-4,
and when a -4 signed int is stuffed into an unsigned int variable,
65532 is the resultant value.

Unfortunately, I do not understand the black border code at all
enough yet to determine what to change to make negative width and
height values given to -b work correctly while not breaking the code
at the same time.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to