IltmmCapture::get_DVDecoderResolution Example for C

This function will change the small resolution into the second highest resolution.

void IltmmCapture_get_DVDecoderResolution_Example (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); 
}