[cvs] / xvidcore / src / encoder.h Repository:
ViewVC logotype

Diff of /xvidcore/src/encoder.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10, Thu Jun 13 21:45:24 2002 UTC revision 1.20, Wed Sep 4 21:03:29 2002 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Encoder header -   *  - Encoder header -
5   *   *
6     *  Copyright(C) 2002 Michael Militzer
7     *
8   *  This program is an implementation of a part of one or more MPEG-4   *  This program is an implementation of a part of one or more MPEG-4
9   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending
10   *  to use this software module in hardware or software products are   *  to use this software module in hardware or software products are
# Line 27  Line 29 
29   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
30   *   *
31   ****************************************************************************/   ****************************************************************************/
 /*****************************************************************************  
  *  
  *  History  
  *  
  *  - 13.06.2002 Added legal header  
  *  - 22.08.2001 Added support for EXT_MODE encoding mode  
  *               support for EXTENDED API  
  *  - 22.08.2001 fixed bug in iDQtab  
  *  
  *  $Id$  
  *  
  ****************************************************************************/  
32    
33  #ifndef _ENCODER_H_  #ifndef _ENCODER_H_
34  #define _ENCODER_H_  #define _ENCODER_H_
# Line 92  Line 82 
82          uint32_t fincr;          uint32_t fincr;
83          uint32_t fbase;          uint32_t fbase;
84    
85  #ifdef BFRAMES  #ifdef _SMP
86          int max_bframes;          int num_threads;
87  #endif  #endif
88    
89          /* rounding type; alternate 0-1 after each interframe */          /* rounding type; alternate 0-1 after each interframe */
# Line 108  Line 98 
98    
99          HINTINFO *hint;          HINTINFO *hint;
100    
 #ifdef BFRAMES  
101          uint32_t m_seconds;          uint32_t m_seconds;
102          uint32_t m_ticks;          uint32_t m_ticks;
 #endif  
103    
104  }  }
105  MBParam;  MBParam;
# Line 128  Line 116 
116          uint32_t fcode;          uint32_t fcode;
117          uint32_t bcode;          uint32_t bcode;
118    
 #ifdef BFRAMES  
119          uint32_t seconds;          uint32_t seconds;
120          uint32_t ticks;          uint32_t ticks;
 #endif  
121    
122          IMAGE image;          IMAGE image;
123    
# Line 167  Line 153 
153          FRAMEINFO *current;          FRAMEINFO *current;
154          FRAMEINFO *reference;          FRAMEINFO *reference;
155    
156  #ifdef _DEBUG  #ifdef _DEBUG_PSNR
157          IMAGE sOriginal;          IMAGE sOriginal;
158  #endif  #endif
159          IMAGE vInterH;          IMAGE vInterH;
# Line 176  Line 162 
162          IMAGE vInterHV;          IMAGE vInterHV;
163          IMAGE vInterHVf;          IMAGE vInterHVf;
164    
 #ifdef BFRAMES  
         /* constants */  
         int bquant_ratio;  
         /* vars */  
         int bframenum_head;  
         int bframenum_tail;  
         int flush_bframes;  
   
         FRAMEINFO **bframes;  
         IMAGE f_refh;  
         IMAGE f_refv;  
         IMAGE f_refhv;  
 #endif  
165          Statistics sStat;          Statistics sStat;
166          RateControl rate_control;          RateControl rate_control;
167  }  }
# Line 239  Line 212 
212                                     XVID_ENC_FRAME * pFrame,                                     XVID_ENC_FRAME * pFrame,
213                                     XVID_ENC_STATS * pResult);                                     XVID_ENC_STATS * pResult);
214    
215    int encoder_encode_bframes(Encoder * pEnc,
216                                       XVID_ENC_FRAME * pFrame,
217                                       XVID_ENC_STATS * pResult);
218    
219  #endif  #endif

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.20

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4