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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 188 - (view) (download)

1 : Isibaar 3 #ifndef _RATECONTROL_H_
2 :     #define _RATECONTROL_H_
3 :    
4 :     #include "../portab.h"
5 :    
6 : edgomez 188 typedef struct {
7 :     int64_t size;
8 :     int32_t count;
9 :     } QuantInfo;
10 : Isibaar 3
11 : edgomez 188 typedef struct
12 :     {
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 : Isibaar 3
31 : edgomez 188 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 : Isibaar 3
40 : edgomez 188 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 : Isibaar 3 #endif /* _RATECONTROL_H_ */
49 :    

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