Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmPlay::get_DVDecoderResolution Example for C++

Show in webframe

// 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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.