[svn] / trunk / xvidcore / src / utils / ratecontrol.h Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/utils/ratecontrol.h

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

revision 187, Tue Jun 4 02:29:19 2002 UTC revision 188, Fri Jun 7 10:21:48 2002 UTC
# Line 1  Line 1 
1  #ifndef _RATECONTROL_H_  #ifndef _RATECONTROL_H_
2  #define _RATECONTROL_H_  #define _RATECONTROL_H_
3    
 #include "../encoder.h"  
4  #include "../portab.h"  #include "../portab.h"
5    
6  void RateControlInit(uint32_t target_rate, uint32_t reaction_delay_factor,  typedef struct {
7                                           uint32_t averaging_period, uint32_t buffer,          int64_t size;
8                                           int framerate, int max_quant, int min_quant);          int32_t count;
9    } QuantInfo;
10  int RateControlGetQ(int keyframe);  
11    typedef struct
12  void RateControlUpdate(int16_t quant, int frame_size, int keyframe);  {
13            int32_t rtn_quant;
14            int64_t frames;
15            int64_t total_size;
16            double framerate;
17            int32_t target_rate;
18            int16_t max_quant;
19            int16_t min_quant;
20            int64_t last_change;
21            int64_t quant_sum;
22            double quant_error[32];
23            double avg_framesize;
24            double target_framesize;
25            double sequence_quality;
26            int32_t averaging_period;
27            int32_t reaction_delay_factor;
28            int32_t buffer;
29    } RateControl;
30    
31    void RateControlInit(RateControl *rate_control,
32                         uint32_t target_rate,
33                         uint32_t reaction_delay_factor,
34                         uint32_t averaging_period,
35                         uint32_t buffer,
36                         int framerate,
37                         int max_quant,
38                         int min_quant);
39    
40    int RateControlGetQ(RateControl *rate_control,
41                        int keyframe);
42    
43    void RateControlUpdate(RateControl *rate_control,
44                           int16_t quant,
45                           int frame_size,
46                           int keyframe);
47    
48  #endif /* _RATECONTROL_H_ */  #endif /* _RATECONTROL_H_ */
49    

Legend:
Removed from v.187  
changed lines
  Added in v.188

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