203 |
/* Normalize the global luminance accumulator */ |
/* Normalize the global luminance accumulator */ |
204 |
global /= data->mb_width*data->mb_height; |
global /= data->mb_width*data->mb_height; |
205 |
|
|
206 |
DarkThres = DarkThres*global/127.0; |
DarkThres = DarkThres*global/127.0f; |
207 |
BrightThres = BrightThres*global/127.0; |
BrightThres = BrightThres*global/127.0f; |
208 |
|
|
209 |
|
|
210 |
/* Apply luminance masking only to frames where the global luminance is |
/* Apply luminance masking only to frames where the global luminance is |