IltmmCompressor::get_Reliability Example for C

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; 
      } 
   } 
} 
Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help