X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fvframe.h;h=e6bbc23652ac8a8d1ca082a7a85af386ca52e289;hp=da53bfdda22bdb315613238362c512b1061f2ec6;hb=d66d68b9a5228a2f5894ea39e852df19036af800;hpb=b46dd3711f7aaa94d2df9f27cd2ce16f7487693a diff --git a/cinelerra-5.1/guicast/vframe.h b/cinelerra-5.1/guicast/vframe.h index da53bfdd..e6bbc236 100644 --- a/cinelerra-5.1/guicast/vframe.h +++ b/cinelerra-5.1/guicast/vframe.h @@ -180,14 +180,14 @@ public: long get_bytes_per_line(); int get_memory_type(); - - static int calculate_bytes_per_pixel(int colormodel); // Get size + 4 for assembly language static long calculate_data_size(int w, int h, int bytes_per_line = -1, int color_model = BC_RGB888); // Get size of uncompressed frame buffer without extra 4 bytes long get_data_size(); +// alloc/reset temp vframe to spec + static void get_temp(VFrame *&vfrm, int w, int h, int color_model); void rotate270(); void rotate90(); @@ -347,6 +347,7 @@ public: int pixel_rgb, pixel_yuv, stipple; void set_pixel_color(int rgb); + void set_pixel_color(int rgb, int a) { set_pixel_color((rgb&0xffffff)|((~a&0xff)<<24)); } void set_stiple(int mask); void draw_line(int x1, int y1, int x2, int y2); void draw_smooth(int x1, int y1, int x2, int y2, int x3, int y3);