Mercurial > libavcodec.hg
comparison libpostproc/postprocess_template.c @ 172:a0efaf471d6b libavcodec
compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound
| author | michael |
|---|---|
| date | Tue, 27 Nov 2001 02:25:31 +0000 |
| parents | 20bcd5b70886 |
| children | 37eaaa9596cc |
comparison
equal
deleted
inserted
replaced
| 171:fa9734559c98 | 172:a0efaf471d6b |
|---|---|
| 2551 */ | 2551 */ |
| 2552 static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, | 2552 static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, |
| 2553 QP_STORE_T QPs[], int QPStride, int isColor, struct PPMode *ppMode) | 2553 QP_STORE_T QPs[], int QPStride, int isColor, struct PPMode *ppMode) |
| 2554 { | 2554 { |
| 2555 int x,y; | 2555 int x,y; |
| 2556 #ifdef COMPILE_TIME_MODE | |
| 2557 const int mode= COMPILE_TIME_MODE; | |
| 2558 #else | |
| 2556 const int mode= isColor ? ppMode->chromMode : ppMode->lumMode; | 2559 const int mode= isColor ? ppMode->chromMode : ppMode->lumMode; |
| 2557 | 2560 #endif |
| 2558 /* we need 64bit here otherwise weŽll going to have a problem | 2561 /* we need 64bit here otherwise weŽll going to have a problem |
| 2559 after watching a black picture for 5 hours*/ | 2562 after watching a black picture for 5 hours*/ |
| 2560 static uint64_t *yHistogram= NULL; | 2563 static uint64_t *yHistogram= NULL; |
| 2561 int black=0, white=255; // blackest black and whitest white in the picture | 2564 int black=0, white=255; // blackest black and whitest white in the picture |
| 2562 int QPCorrecture= 256; | 2565 int QPCorrecture= 256; |
