Program to access USB webcam

siddhu8990
Hi Friends,
 Can anyone send me a code to access USB webcam?
 My webcam is not being detected as uvc class.But something else.
 I have enabled uvc while compiling kernel.
 Sample program that comes with board runs USB Camera.
 Can you provide source code of the same?