Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_signal_compressor.h
Show All 30 Lines | |||||
31 | * | 31 | * | ||
32 | * There are three behaviors to choose from. | 32 | * There are three behaviors to choose from. | ||
33 | * | 33 | * | ||
34 | * POSTPONE resets the timer after each call. Therefore if the calls are made | 34 | * POSTPONE resets the timer after each call. Therefore if the calls are made | ||
35 | * quickly enough, the timer will never be activated. | 35 | * quickly enough, the timer will never be activated. | ||
36 | * | 36 | * | ||
37 | * FIRST_ACTIVE emits the timeout() event immediately and sets a timer of | 37 | * FIRST_ACTIVE emits the timeout() event immediately and sets a timer of | ||
38 | * duration \p delay. If the compressor is triggered during this time, it will | 38 | * duration \p delay. If the compressor is triggered during this time, it will | ||
39 | * fire another signal at the end of the delay period. Further events are | 39 | * wait until the end of the delay period to fire the signal. Further events are | ||
40 | * ignored until the timer elapses. Think of it as a queue with size 1, and | 40 | * ignored until the timer elapses. Think of it as a queue with size 1, and | ||
41 | * where the leading element is popped every \p delay ms. | 41 | * where the leading element is popped every \p delay ms. | ||
42 | * | 42 | * | ||
43 | * FIRST_INACTIVE emits the timeout() event at the end of a timer of duration \p | 43 | * FIRST_INACTIVE emits the timeout() event at the end of a timer of duration \p | ||
44 | * delay ms. The compressor becomes inactive and all events are ignored until | 44 | * delay ms. The compressor becomes inactive and all events are ignored until | ||
45 | * the timer has elapsed. | 45 | * the timer has elapsed. | ||
46 | * | 46 | * | ||
47 | */ | 47 | */ | ||
Show All 38 Lines |