--- ratecontrol.h 2002/06/07 10:21:48 1.4 +++ ratecontrol.h 2002/06/12 20:38:41 1.5 @@ -3,10 +3,12 @@ #include "../portab.h" -typedef struct { +typedef struct +{ int64_t size; int32_t count; -} QuantInfo; +} +QuantInfo; typedef struct { @@ -26,24 +28,24 @@ int32_t averaging_period; int32_t reaction_delay_factor; int32_t buffer; -} RateControl; - -void RateControlInit(RateControl *rate_control, - uint32_t target_rate, - uint32_t reaction_delay_factor, - uint32_t averaging_period, - uint32_t buffer, - int framerate, - int max_quant, - int min_quant); - -int RateControlGetQ(RateControl *rate_control, - int keyframe); - -void RateControlUpdate(RateControl *rate_control, - int16_t quant, - int frame_size, - int keyframe); +} +RateControl; -#endif /* _RATECONTROL_H_ */ +void RateControlInit(RateControl * rate_control, + uint32_t target_rate, + uint32_t reaction_delay_factor, + uint32_t averaging_period, + uint32_t buffer, + int framerate, + int max_quant, + int min_quant); + +int RateControlGetQ(RateControl * rate_control, + int keyframe); + +void RateControlUpdate(RateControl * rate_control, + int16_t quant, + int frame_size, + int keyframe); +#endif /* _RATECONTROL_H_ */