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

IltmmCompressor::get_Reliability Example for C++

Show in webframe

// Selecting the first stable video compressor: 
void GetCompressorReliability(IltmmCapture *pCapture)
{
   IltmmCompressors *pVideoCompressors;
   IltmmCompressor *pCompressor;
   long i, lCount, lReliability;

   // get the video compressors object
   pCapture->get_VideoCompressors(&pVideoCompressors);

   // get the count of compressors
   pVideoCompressors->get_Count(&lCount);

   // enumerate the compressors collection
   for (i=0; i<lCount; i++)
   {
      // get the compressor
      pVideoCompressors->Item(i, &pCompressor);
      
      // get it's reliability
      pCompressor->get_Reliability(&lReliability);

      // release the compressor object
      pCompressor->Release();

      // if stable, select it and break
      if (lReliability == ltmmCompressor_Reliability_Stable)
      {
         pVideoCompressors->put_Selection(i);
         break;
      }
   }
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.