Changeset 3870
- Timestamp:
- 02/26/07 12:36:48 (2 years ago)
- Files:
-
- ivtvtv/trunk/ivtvtv.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ivtvtv/trunk/ivtvtv.cpp
r3711 r3870 16 16 int g_spd = 0; 17 17 int idx = 0; 18 19 static unsigned int osd[576][720]; 18 20 19 21 #if 0 … … 143 145 144 146 static int dir = 0; 145 static int av = 0;146 147 147 148 void speed(int fh, int delta) … … 171 172 dir = 0; 172 173 speed(fh, 0); 173 ioctl(fh, IVTV_IOC_PLAY, 0);174 // ioctl(fh, IVTV_IOC_PLAY, 0); 174 175 break; 175 176 case 'd': … … 228 229 int fin, fout, fmax = 0; 229 230 int fidx; 231 int ffb; 230 232 char *buf; 231 233 int bufsz = 0; … … 242 244 if (fin < 0) { 243 245 fprintf(stderr, "Cannot open file %s\n", argv[1]); 246 exit(1); 247 } 248 ffb = open("/dev/fb0", O_RDWR); 249 if (fin < 0) { 250 fprintf(stderr, "Cannot open file %s\n", "/dev/fb0"); 244 251 exit(1); 245 252 } … … 281 288 int cnt = 0; 282 289 int quit = 0; 283 290 291 for (int y = 0; y < 576; y++) { 292 for (int x = 0; x < 720; x++) { 293 osd[y][x] = ((x >> 2) &1) ? 0xff00ff00: 0xff0000ff; 294 } 295 } 296 #if 0 297 struct ivtvfb_ioctl_dma_host_to_ivtv_args fbargs; 298 fbargs.source = osd; 299 fbargs.dest_offset = 0; 300 fbargs.count = sizeof(osd); 301 ioctl(ffb, IVTVFB_IOCTL_PREP_FRAME, &fbargs); 302 struct ivtvfb_alpha alpha; 303 ioctl(ffb, IVTVFB_IOCTL_GET_ALPHA, &alpha); 304 printf("%d %d %d %x %x\n", alpha.global_alpha_state, alpha.local_alpha_state, alpha.color_key_state, alpha.global_alpha, alpha.color_key); 305 alpha.color_key_state = 1; 306 alpha.color_key = 0xff0000ff; 307 ioctl(ffb, IVTVFB_IOCTL_SET_ALPHA, &alpha); 308 exit(0); 309 #endif 284 310 t1 = time(NULL); 285 311 if (argc >= 4) {
