And now the patch really is attached.

On 10/10/05, Adam Forsyth <[EMAIL PROTECTED]> wrote:
> I've rewritten ivtvfbctl using getopt.
> http://ivtvdriver.org/trac/attachment/ticket/38/ivtvfbctl.c?format=raw
> It seemed to be too big to send to the list.
>
> Please test it, as I can't because I don't have a tv right now. Note
> that I have cleaned up a few typos and the patch is attached (just so
> you don't correct things I've already fixed)
>
--- ivtvfbctl.c	2005-10-09 13:56:29.000000000 -0500
+++ ivtvfbctl.c.new	2005-10-09 14:03:17.000000000 -0500
@@ -75,11 +75,6 @@
 
 static char options[OptLast];
 
-/* Codec's specified */
-#define CAspect			(1L<<1)
-#define CBitrateMode		(1L<<2)
-#define CBitrate		(1L<<3)
-
 static struct option long_options[] = {
 	/* Please keep in alphabetical order of the short option.
 	   That makes it easier to see which options are still free. */
@@ -113,16 +108,16 @@
 	printf("                        toggle flicker reduction\n");
 	printf("  -g, --globalalpha=<on>|<off>\n");
 	printf("                        toggle global alpha layer\n");
-	printf("  -h, --help            display this help");
+	printf("  -h, --help            display this help\n");
 	printf("  -l, --localalpha=<on>|<off>\n");
 	printf("                        toggle local alpha layer\n");
 	printf("  -v, --alpha=<val>     sets the OSD alpha level\n");
-	printf("  -w, --window=left=val,top=<val>,width=<val>,height=<val>\n");
+	printf("  -w, --window=left=<val>,top=<val>,width=<val>,height=<val>\n");
 	printf("                        sets the screen area to use for video\n");
-	printf("Expert Options:");
+	printf("Expert Options:\n");
 	printf("  -b, --bltcopy         does a BLT copy\n");
 	printf("  -n, --nosleep         don't sleep while doing prepdma\n");
-	printf("  -o, --osdoffset=right=<val>,bottom=<val>)\n");
+	printf("  -o, --osdoffset=right=<val>,bottom=<val>\n");
 	printf("                        sets the offset (from the bottom right) for the OSD\n");
 	printf("  -p, --prepdma         prepare DMA\n");
 	printf("  -s, --osdstride=<val> sets the pixel stride (width) for the OSD\n");
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to