IltmmPlay::get_DVDecoderResolution Example for C++

// This function will change the small resolution 
// into the next highest resolution 
HRESULT GetPlayDVDDecoderResolution(IltmmPlay *pPlay) 
{ 
   ltmmDVResolution DVRes; 
   CString strDV; 
 
   // call the Play object to retrieve the DVD Decoder resolution 
   HRESULT hr = pPlay->get_DVDecoderResolution(&DVRes); 
 
   if (SUCCEEDED(hr)) 
   { 
      // increase the resolution 
      if(DVRes == ltmmDVResolution_DC) 
         pPlay->put_DVDecoderResolution(ltmmDVResolution_Quarter); 
      if(DVRes == ltmmDVResolution_Quarter) 
         pPlay->put_DVDecoderResolution(ltmmDVResolution_Half); 
      if(DVRes == ltmmDVResolution_Half) 
         pPlay->put_DVDecoderResolution(ltmmDVResolution_Full); 
 
      // display the current resolution 
      strDV.Format(TEXT("DV Decoder resolution = %d"), (int)DVRes); 
      MessageBox(NULL, strDV, TEXT("DVD Decoder Resolution"), MB_OK); 
   } 
 
   return hr; 
} 
Help Version 22.0.2023.1.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.