1 ///////////////////////////////////////////////////////////////////////////
2 // Workfile: tvout.c (Implementation)
3 // Author: Daniel Giritzer
5 // Description: Simple Program to move the picture of the composite video
9 // Copyright (C) 2017, Daniel Giritzer (giri@nwrk.biz)
10 ///////////////////////////////////////////////////////////////////////////
17 int main(int argc, char **argv)
19 unsigned long to_write = 0;
25 fprintf(stdout, "++++++++++++++++++++++++++++++\n");
26 fprintf(stdout, "Usage: tvout <move x> <move y>\n");
27 fprintf(stdout, "The parameter values should be in px.\n\n");
28 fprintf(stdout, "This program was created for the Armbian Project.\n");
29 fprintf(stdout, "(c) 2017, Daniel G.\n");
30 fprintf(stdout, "++++++++++++++++++++++++++++++\n");
35 to_write += strtoul(argv[1], 0, 0) << X_REG_OFFSET;
38 to_write += strtoul(argv[2], 0, 0) << Y_REG_OFFSET;
41 writemem(TV_ENCODER_RESYNC, to_write, 'w');