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

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


   IltmmCapture_get_VideoCompressors(pCapture, &pVideoCompressors);

   IltmmCompressors_get_Count(pVideoCompressors, &lCount);

   for ( i=0; i<lCount; i++ )
   {
      IltmmCompressors_put_Selection(pVideoCompressors, i);

      IltmmCompressors_Item(pVideoCompressors, i, &pCompressor);

      IltmmCompressor_get_Reliability(pCompressor, &lReliability);

      IltmmCompressor_Release(pCompressor);

      if( lReliability == ltmmCompressor_Reliability_Stable )
      {
         IltmmCompressors_put_Selection(pVideoCompressors, i);

         break;
      }
   }
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.