IltmmCompressor::get_Reliability Example for C++

// 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; 
      } 
   } 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Multimedia C API Help