IltmmCapture::get_DVDecoderResolution Example for C

// This function will change the small resolution
// into the second highest resolution
void SetupDV(IltmmCapture *pCapture) 
{
   ltmmDVResolution res; 

   IltmmCapture__get_DVDecoderResolution(pCapture, &res); 

   if(res == ltmmDVResolution_DC) 
      IltmmCapture__put_DVDecoderResolution(pCapture, ltmmDVResolution_Quarter); 
   if(res == ltmmDVResolution_Quarter) 
      IltmmCapture__put_DVDecoderResolution (pCapture, ltmmDVResolution_Half); 
   if(res == ltmmDVResolution_Half) 
      IltmmCapture__put_DVDecoderResolution (pCapture, ltmmDVResolution_Full); 
}