X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbccmodels.h;h=30dd190287b3982d149e9eb48f3ff9a441766769;hp=57843aa9e063c45e011d72744d930ab4770ad3e9;hb=98d1bfa28f082b49eddf01f583e0af16d3a28ba4;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/guicast/bccmodels.h b/cinelerra-5.1/guicast/bccmodels.h index 57843aa9..30dd1902 100644 --- a/cinelerra-5.1/guicast/bccmodels.h +++ b/cinelerra-5.1/guicast/bccmodels.h @@ -66,7 +66,7 @@ enum BC_CModel { BC_AYUV16161616 = 35, BC_GREY8 = 36, BC_GREY16 = 37, -//only used for chroma only xfers (transfer with bg_color < 0) +//only used for chroma only xfers (transfer with bg_color = -1) BC_RGBX8888 = 39, BC_RGBX16161616 = 40, BC_YUVX8888 = 41, @@ -81,7 +81,7 @@ enum BC_CModel { #define FOURCC_YUV2 0x32595559 /* YUV2 YUV422 */ #define FOURCC_UYVY 0x59565955 /* UYVY UVY422 */ #define FOURCC_I420 0x30323449 /* I420 Intel Indeo 4 */ - +#define BC_COLOR_ALIGN 64 /* overwrite padding, ssse3 */ #endif // !BC_TRANSPARENCY @@ -134,6 +134,11 @@ public: unsigned char **input_ptrs, int in_colormodel, int in_x, int in_y, int in_w, int in_h, int in_rowspan, int bg_color); +// paint buffer solid color + static int init_color(int color, int alpha, + unsigned char **output_rows, int out_colormodel, + unsigned char *out_yp, unsigned char *out_up, unsigned char *out_vp, + int out_x, int out_y, int out_w, int out_h, int out_rowspan); static int bc_to_x(int color_model); static void bcxfer_stop_slicers();