m-kariche...@ti.com wrote:
From: Muralidharan Karicheri<a0868...@gt516km11.gt.design.ti.com>

VPFE Capture driver for DaVinci Media SOCs :- DM355 and DM6446

is this the same set of patches present in the branch staging/vpfe ?

I'm having a doubt with that set of patches. Particularly, I'm having problems when detecting the video format, because I don't find the define VPFE_STD_AUTO any more.

My code is

  std = VPFE_STD_AUTO;

  if (ioctl (worker_acquire->fd, VIDIOC_S_STD, &std) == -1)
    {
      fprintf (stderr, "set_data_format: ioctl VIDIOC_S_STD failed\n");
      return -1;
    }

  /* wait until decoder is fully locked */
  sleep (1);

  if (ioctl (worker_acquire->fd, VIDIOC_QUERYSTD, &std) == -1)
    {
      fprintf (stderr, "set_data_format: ioctl VIDIOC_QUERYSTD failed\n");
      return -1;
    }

  if (std == V4L2_STD_NTSC)
    {
      fprintf (stdout, "NTSC camera detected\n");
    }
  else if (std == V4L2_STD_PAL)
    {
      fprintf (stdout, "PAL camera detected\n");
    }
  else
    {
      fprintf (stdout, "Unknown video input standard\n");
      return -1;
    }

But VPFE_STD_AUTO does not exist:

otta...@debian2:~$ grep -r VPFE_STD_AUTO /home/ottavio/Projects/stuff/openembedded/tmp/work/dm6446-evm-angstrom-linux-gnueabi/linux-davinci-2.6.29+2.6.30-rc7-r8+gitr03022e38318bef016836dae71c70b9ea975723e7-r8/git/*
otta...@debian2:~$

So the question is: how do I autodetect the video format? Do you have some reference code?

Thank you,

Ottavio

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to