Home | History | Annotate | Download | only in tests

Lines Matching full:optarg

396             XCAM_ASSERT (optarg);
397 if (!strcmp (optarg, "simple"))
400 else if (!strcmp (optarg, "aiq"))
403 else if (!strcmp (optarg, "dynamic"))
405 else if (!strcmp (optarg, "hybrid"))
417 XCAM_ASSERT (optarg);
418 if (!strcmp (optarg, "dma"))
420 else if (!strcmp (optarg, "mmap"))
431 XCAM_ASSERT (optarg);
432 interval_frames = atoi(optarg);
435 XCAM_ASSERT (optarg);
436 save_frames = atoi(optarg);
439 XCAM_ASSERT (optarg);
440 CHECK_EXP ((strlen(optarg) == 4), "invalid pixel format\n");
441 pixel_format = v4l2_fourcc ((unsigned)optarg[0],
442 (unsigned)optarg[1],
443 (unsigned)optarg[2],
444 (unsigned)optarg[3]);
447 XCAM_ASSERT (optarg);
448 if (!strcmp (optarg, "still"))
450 else if (!strcmp (optarg, "video"))
458 XCAM_ASSERT (optarg);
460 usb_device_name = optarg;
464 XCAM_ASSERT (optarg);
465 frame_width = atoi(optarg);
468 XCAM_ASSERT (optarg);
469 frame_height = atoi(optarg);
473 XCAM_ASSERT (optarg);
474 if (!strcmp (optarg, "primary"))
476 else if (!strcmp (optarg, "overlay"))
497 XCAM_ASSERT (optarg);
498 brightness_level = atoi(optarg);
511 XCAM_ASSERT (optarg);
513 if (!strcmp (optarg, "disabled"))
515 else if (!strcmp (optarg, "retinex"))
517 optarg, "dcp"))
526 XCAM_ASSERT (optarg);
527 if (atoi(optarg) < 0 || atoi(optarg) > 255) {
531 if (atoi(optarg) == 1) {
534 } else if (atoi(optarg) == 2) {
537 } else if (atoi(optarg) == 3) {
540 } else if (atoi(optarg) == 4) {
543 } else if (atoi(optarg) == 5) {
546 } else if (atoi(optarg) == 6) {
556 XCAM_ASSERT (optarg);
558 if (!strcmp (optarg, "disabled"))
560 else if (!strcmp (optarg, "yuv"))
562 else if (!strcmp (optarg, "uv"))
579 XCAM_ASSERT (optarg);
580 if (!strcasecmp (optarg, "yuv"))
583 printf ("--tnr only support <yuv>, <%s> is not supported\n", optarg);
590 XCAM_ASSERT (optarg);
591 if (atoi(optarg) < 0 || atoi(optarg) > 255) {
595 tnr_level = atoi(optarg);
599 XCAM_ASSERT (optarg);
600 if (!strcasecmp (optarg, "gaussian"))
602 else if (!strcasecmp (optarg, "haleq"))
610 XCAM_ASSERT (optarg);
611 if (!strcasecmp (optarg, "basic"))
613 else if (!strcasecmp (optarg, "advance"))
615 else if (!strcasecmp (optarg, "extreme"))
624 XCAM_ASSERT (optarg);
625 if (!strcmp (optarg, "bayer"))
635 XCAM_ASSERT (optarg);
636 XCAM_LOG_INFO ("use raw image %s as input source", optarg);
637 path_to_fake = optarg;