comparison postprocess_template.c @ 48:72675332ed82 libpostproc

misc spelling fixes
author diego
date Tue, 12 Jun 2007 09:29:25 +0000
parents 0e28dba3f9e7
children cdfe8fc50090
comparison
equal deleted inserted replaced
47:b260cd785240 48:72675332ed82
71 #define PMAXUB(a,b) \ 71 #define PMAXUB(a,b) \
72 "psubusb " #a ", " #b " \n\t"\ 72 "psubusb " #a ", " #b " \n\t"\
73 "paddb " #a ", " #b " \n\t" 73 "paddb " #a ", " #b " \n\t"
74 #endif 74 #endif
75 75
76 //FIXME? |255-0| = 1 (shouldnt be a problem ...) 76 //FIXME? |255-0| = 1 (should not be a problem ...)
77 #ifdef HAVE_MMX 77 #ifdef HAVE_MMX
78 /** 78 /**
79 * Check if the middle 8x8 Block in the given 8x16 block is flat 79 * Check if the middle 8x8 Block in the given 8x16 block is flat
80 */ 80 */
81 static inline int RENAME(vertClassify)(uint8_t src[], int stride, PPContext *c){ 81 static inline int RENAME(vertClassify)(uint8_t src[], int stride, PPContext *c){
476 476
477 /** 477 /**
478 * Experimental Filter 1 478 * Experimental Filter 1
479 * will not damage linear gradients 479 * will not damage linear gradients
480 * Flat blocks should look like they where passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter 480 * Flat blocks should look like they where passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter
481 * can only smooth blocks at the expected locations (it cant smooth them if they did move) 481 * can only smooth blocks at the expected locations (it cannot smooth them if they did move)
482 * MMX2 version does correct clipping C version doesnt 482 * MMX2 version does correct clipping C version does not
483 */ 483 */
484 static inline void RENAME(vertX1Filter)(uint8_t *src, int stride, PPContext *co) 484 static inline void RENAME(vertX1Filter)(uint8_t *src, int stride, PPContext *co)
485 { 485 {
486 #if defined (HAVE_MMX2) || defined (HAVE_3DNOW) 486 #if defined (HAVE_MMX2) || defined (HAVE_3DNOW)
487 src+= stride*3; 487 src+= stride*3;
3181 3181
3182 static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height, 3182 static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,
3183 QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c); 3183 QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c);
3184 3184
3185 /** 3185 /**
3186 * Copies a block from src to dst and fixes the blacklevel 3186 * Copies a block from src to dst and fixes the blacklevel.
3187 * levelFix == 0 -> dont touch the brighness & contrast 3187 * levelFix == 0 -> do not touch the brighness & contrast
3188 */ 3188 */
3189 #undef SCALED_CPY 3189 #undef SCALED_CPY
3190 3190
3191 static inline void RENAME(blockCopy)(uint8_t dst[], int dstStride, uint8_t src[], int srcStride, 3191 static inline void RENAME(blockCopy)(uint8_t dst[], int dstStride, uint8_t src[], int srcStride,
3192 int levelFix, int64_t *packedOffsetAndScale) 3192 int levelFix, int64_t *packedOffsetAndScale)