X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fplugins%2Fyuvshift%2Fyuvshift.C;h=2b814c03fb76e3e216a2b6c7107ee738bd2f255a;hb=7b05ad287956f8bd00836d9b5fb39f899a5fb641;hp=c13381b07159ebe5a9c1265f17f5d82b584461e0;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/yuvshift/yuvshift.C b/cinelerra-5.1/plugins/yuvshift/yuvshift.C index c13381b0..2b814c03 100644 --- a/cinelerra-5.1/plugins/yuvshift/yuvshift.C +++ b/cinelerra-5.1/plugins/yuvshift/yuvshift.C @@ -269,8 +269,6 @@ void YUVShiftEffect::read_data(KeyFrame *keyframe) } -static YUV yuv_static; - #define YUV_MACRO(type, temp_type, components) \ { \ for(int i = 0; i < h; i++) { \ @@ -310,11 +308,11 @@ static YUV yuv_static; temp_type u = up ? up[1] : 0x80; \ temp_type v = vp ? vp[2] : 0x80; \ if( sizeof(type) == 4 ) \ - yuv_static.yuv_to_rgb_f(r, g, b, y/255., (u-128.)/255., (v-128.)/255.); \ + YUV::yuv.yuv_to_rgb_f(r, g, b, y/255., (u-128.)/255., (v-128.)/255.); \ else if( sizeof(type) == 2 ) \ - yuv_static.yuv_to_rgb_16(r, g, b, y, u, v); \ + YUV::yuv.yuv_to_rgb_16(r, g, b, y, u, v); \ else \ - yuv_static.yuv_to_rgb_8(r, g, b, y, u, v); \ + YUV::yuv.yuv_to_rgb_8(r, g, b, y, u, v); \ out_row[0] = r; \ out_row[1] = g; \ out_row[2] = b; \