[MPlayer-cvslog] r23556 - in trunk/libswscale: rgb2rgb_template.c swscale.c swscale.h swscale_internal.h yuv2rgb_init.c

diego subversion at mplayerhq.hu
Wed Jun 13 19:48:15 CEST 2007


Author: diego
Date: Wed Jun 13 19:48:15 2007
New Revision: 23556

Log:
misc spelling fixes


Modified:
   trunk/libswscale/rgb2rgb_template.c
   trunk/libswscale/swscale.c
   trunk/libswscale/swscale.h
   trunk/libswscale/swscale_internal.h
   trunk/libswscale/yuv2rgb_init.c

Modified: trunk/libswscale/rgb2rgb_template.c
==============================================================================
--- trunk/libswscale/rgb2rgb_template.c	(original)
+++ trunk/libswscale/rgb2rgb_template.c	Wed Jun 13 19:48:15 2007
@@ -350,7 +350,7 @@ static inline void RENAME(rgb32to16)(con
     end = s + src_size;
 #ifdef HAVE_MMX
     mm_end = end - 15;
-#if 1 //is faster only if multiplies are reasonable fast (FIXME figure out on which cpus this is faster, on Athlon its slightly faster)
+#if 1 //is faster only if multiplies are reasonable fast (FIXME figure out on which CPUs this is faster, on Athlon it is slightly faster)
     asm volatile(
     "movq           %3, %%mm5   \n\t"
     "movq           %4, %%mm6   \n\t"
@@ -509,7 +509,7 @@ static inline void RENAME(rgb32to15)(con
     end = s + src_size;
 #ifdef HAVE_MMX
     mm_end = end - 15;
-#if 1 //is faster only if multiplies are reasonable fast (FIXME figure out on which cpus this is faster, on Athlon its slightly faster)
+#if 1 //is faster only if multiplies are reasonable fast (FIXME figure out on which CPUs this is faster, on Athlon it is slightly faster)
     asm volatile(
     "movq           %3, %%mm5   \n\t"
     "movq           %4, %%mm6   \n\t"

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Wed Jun 13 19:48:15 2007
@@ -46,7 +46,7 @@ tested special converters (most are test
  YVU9 -> YV12
 
 untested special converters
-  YV12/I420 -> BGR15/BGR24/BGR32 (its the yuv2rgb stuff, so it should be ok)
+  YV12/I420 -> BGR15/BGR24/BGR32 (it is the yuv2rgb stuff, so it should be ok)
   YV12/I420 -> YV12/I420
   YUY2/BGR15/BGR24/BGR32/RGB24/RGB32 -> same format
   BGR24 -> BGR32 & RGB24 -> RGB32
@@ -985,7 +985,7 @@ static inline int initFilter(int16_t **o
     double *filter2=NULL;
 #if defined(ARCH_X86)
     if (flags & SWS_CPU_CAPS_MMX)
-        asm volatile("emms\n\t"::: "memory"); //FIXME this shouldnt be required but it IS (even for non mmx versions)
+        asm volatile("emms\n\t"::: "memory"); //FIXME this should not be required but it IS (even for non-MMX versions)
 #endif
 
     // Note the +1 is for the MMXscaler which reads over the end
@@ -1198,7 +1198,7 @@ static inline int initFilter(int16_t **o
     av_free(filter); filter=NULL;
 
     /* try to reduce the filter-size (step1 find size and shift left) */
-    // Assume its near normalized (*0.5 or *2.0 is ok but * 0.001 is not)
+    // Assume it is near normalized (*0.5 or *2.0 is OK but * 0.001 is not).
     minFilterSize= 0;
     for (i=dstW-1; i>=0; i--)
     {
@@ -1214,7 +1214,7 @@ static inline int initFilter(int16_t **o
 
             if (cutOff > SWS_MAX_REDUCE_CUTOFF) break;
 
-            /* preserve Monotonicity because the core can't handle the filter otherwise */
+            /* preserve monotonicity because the core can't handle the filter otherwise */
             if (i<dstW-1 && (*filterPos)[i] >= (*filterPos)[i+1]) break;
 
             // Move filter coeffs left
@@ -1914,7 +1914,7 @@ static uint16_t roundToInt16(int64_t f){
 
 /**
  * @param inv_table the yuv2rgb coeffs, normally Inverse_Table_6_9[x]
- * @param fullRange if 1 then the luma range is 0..255 if 0 its 16..235
+ * @param fullRange if 1 then the luma range is 0..255 if 0 it is 16..235
  * @return -1 if not supported
  */
 int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation){
@@ -2246,7 +2246,7 @@ SwsContext *sws_getContext(int srcW, int
     // match pixel 0 of the src to pixel 0 of dst and match pixel n-2 of src to pixel n-2 of dst
     // but only for the FAST_BILINEAR mode otherwise do correct scaling
     // n-2 is the last chrominance sample available
-    // this is not perfect, but noone shuld notice the difference, the more correct variant
+    // this is not perfect, but no one should notice the difference, the more correct variant
     // would be like the vertical one, but that would require some special code for the
     // first and last pixel
     if (flags&SWS_FAST_BILINEAR)

Modified: trunk/libswscale/swscale.h
==============================================================================
--- trunk/libswscale/swscale.h	(original)
+++ trunk/libswscale/swscale.h	Wed Jun 13 19:48:15 2007
@@ -58,8 +58,8 @@
 
 #define SWS_PRINT_INFO              0x1000
 
-//the following 3 flags are not completly implemented
-//internal chrominace subsamling info
+//the following 3 flags are not completely implemented
+//internal chrominace subsampling info
 #define SWS_FULL_CHR_H_INT    0x2000
 //input subsampling info
 #define SWS_FULL_CHR_H_INP    0x4000

Modified: trunk/libswscale/swscale_internal.h
==============================================================================
--- trunk/libswscale/swscale_internal.h	(original)
+++ trunk/libswscale/swscale_internal.h	Wed Jun 13 19:48:15 2007
@@ -123,7 +123,7 @@ typedef struct SwsContext{
 #define V_OFFSET              "10*8"
 #define LUM_MMX_FILTER_OFFSET "11*8"
 #define CHR_MMX_FILTER_OFFSET "11*8+4*4*256"
-#define DSTW_OFFSET           "11*8+4*4*256*2" //do not change, its hardcoded in the asm
+#define DSTW_OFFSET           "11*8+4*4*256*2" //do not change, it is hardcoded in the asm
 #define ESP_OFFSET            "11*8+4*4*256*2+8"
 #define VROUNDER_OFFSET       "11*8+4*4*256*2+16"
 #define U_TEMP                "11*8+4*4*256*2+24"

Modified: trunk/libswscale/yuv2rgb_init.c
==============================================================================
--- trunk/libswscale/yuv2rgb_init.c	(original)
+++ trunk/libswscale/yuv2rgb_init.c	Wed Jun 13 19:48:15 2007
@@ -267,7 +267,7 @@ int yuv2rgb_c_init_tables(SwsContext *c,
         cbu= (cbu*224) / 255;
         cgu= (cgu*224) / 255;
         cgv= (cgv*224) / 255;
-        //FIXME maybe its cleaner if the tables where based on full range (*244/255)
+        //FIXME maybe it is cleaner if the tables where based on full range (*244/255)
     } else {
         cy = ((1 << 16) * 255) / 219;
         oy= 16 << 16;



More information about the MPlayer-cvslog mailing list