diff --git a/SigColorFastAviUtl/sigcolorfastaviutl.cpp b/SigColorFastAviUtl/sigcolorfastaviutl.cpp index 33cb797..908cad2 100644 --- a/SigColorFastAviUtl/sigcolorfastaviutl.cpp +++ b/SigColorFastAviUtl/sigcolorfastaviutl.cpp @@ -196,7 +196,7 @@ BOOL func_proc_con(FILTER *fp, FILTER_PROC_INFO *fpip) // This is the main image if (prevIsYC_Con) { /* Scan Y channel data */ - int fh = fpip->h; + const int fh = fpip->h; #pragma loop( hint_parallel(0) ) #pragma loop( ivdep ) @@ -212,17 +212,17 @@ BOOL func_proc_con(FILTER *fp, FILTER_PROC_INFO *fpip) // This is the main image } else //RGB mode { - int fh = fpip->h; - int fw = fpip->w; + const int fh = fpip->h; + const int fw = fpip->w; #pragma loop( hint_parallel(0) ) #pragma loop( ivdep ) for (int r = 0; r < fh; r++) { + PIXEL* rgb = new PIXEL; #pragma loop( no_vector ) for (int c = 0; c < fw; c++) { PIXEL_YC* px = fpip->ycp_edit + r* fpip->max_w + c; - PIXEL* rgb= new PIXEL; fp->exfunc->yc2rgb(rgb, px, 1); // transform each channel is needed //PIXEL t_rgb{ 0 }; @@ -243,8 +243,8 @@ BOOL func_proc_con(FILTER *fp, FILTER_PROC_INFO *fpip) // This is the main image } // convert back fp->exfunc->rgb2yc(px, rgb, 1); - delete rgb; } + delete rgb; } } #ifdef USECLOCK @@ -449,7 +449,7 @@ BOOL func_proc_sd(FILTER *fp, FILTER_PROC_INFO *fpip) // This is the main image if (prevIsYC_SD) { /* Scan Y channel data */ - int fh = fpip->h; + const int fh = fpip->h; #pragma loop( hint_parallel(0) ) #pragma loop( ivdep ) @@ -465,17 +465,17 @@ BOOL func_proc_sd(FILTER *fp, FILTER_PROC_INFO *fpip) // This is the main image } else //RGB mode { - int fh = fpip->h; - int fw = fpip->w; + const int fh = fpip->h; + const int fw = fpip->w; #pragma loop( hint_parallel(0) ) #pragma loop( ivdep ) for (int r = 0; r < fh; r++) { + PIXEL* rgb = new PIXEL; #pragma loop( no_vector ) for (int c = 0; c < fw; c++) { PIXEL_YC* px = fpip->ycp_edit + r* fpip->max_w + c; - PIXEL* rgb = new PIXEL; fp->exfunc->yc2rgb(rgb, px, 1); // transform each channel is needed //PIXEL t_rgb{ 0 }; @@ -496,8 +496,8 @@ BOOL func_proc_sd(FILTER *fp, FILTER_PROC_INFO *fpip) // This is the main image } // convert back fp->exfunc->rgb2yc(px, rgb, 1); - delete rgb; } + delete rgb; } } #ifdef USECLOCK