How to detect video format automatically?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Dear all,

Does anyone know how to detect video format (NTSC or PAL) automatically in
driver? I try to use the following code according to the data sheet:

if (btread(BT848_DSTATUS) & BT848_DSTATUS_NUML) { // PAL ???
...
}
else { // NTSC ???
...
}

But the result is not correct unless I use the VIDIOCSCHAN ioctl from user
mode application to set the right value first. I had ever seen that some
Windows drivers have this ability, so is there anything I do wrong? Thanks!

Regards,
Kevin






[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux