IltmmPlay::get_DVDecoderResolution Example for C

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

   IltmmPlay__get_DVDecoderResolution(pPlay, &res); 

   if(res == ltmmDVResolution_DC) 
      IltmmPlay__put_DVDecoderResolution(pPlay, ltmmDVResolution_Quarter); 
   if(res == ltmmDVResolution_Quarter) 
      IltmmPlay__put_DVDecoderResolution (pPlay, ltmmDVResolution_Half); 
   if(res == ltmmDVResolution_Half) 
      IltmmPlay__put_DVDecoderResolution (pPlay, ltmmDVResolution_Full); 
}

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

L_MULTIMEDIATEX_API void IltmmPlay_get_DVDecoderResolution_Example (IltmmPlay* pPlay)
{
	ltmmDVResolution res; 

	IltmmPlay_get_DVDecoderResolution(pPlay, &res); 

	if(res == ltmmDVResolution_DC) 
		IltmmPlay_put_DVDecoderResolution(pPlay, ltmmDVResolution_Quarter); 

	if(res == ltmmDVResolution_Quarter) 
		IltmmPlay_put_DVDecoderResolution (pPlay, ltmmDVResolution_Half); 

	if(res == ltmmDVResolution_Half) 
		IltmmPlay_put_DVDecoderResolution (pPlay, ltmmDVResolution_Full); 
}