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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.