X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fguicast%2Fvframe.h;h=5c717200ab16bb7b2099133b40eb174a7716c974;hb=e620b69f6d3f1de30d8b2a16c46d7729462e5211;hp=af8040a52701d29dc3b991cd2a04b59a1c402365;hpb=3305343c3d9bfb889f6892e7821cc0e2d68669de;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/vframe.h b/cinelerra-5.1/guicast/vframe.h index af8040a5..5c717200 100644 --- a/cinelerra-5.1/guicast/vframe.h +++ b/cinelerra-5.1/guicast/vframe.h @@ -29,7 +29,6 @@ #include "bctexture.inc" #include "bcwindowbase.inc" #include "bccmodels.h" -#include "bccmodels.h" #include "vframe.inc" // Maximum number of prev or next effects to be pushed onto the stacks. @@ -140,7 +139,8 @@ public: return transfer_from(frame, bg_color, 0,0, frame->get_w(),frame->get_h()); } // Required for YUV - int clear_frame(); + void black_frame(); + void clear_frame(); int allocate_compressed_data(long bytes); // Sequence number. -1 means invalid. Passing frames to the encoder is @@ -291,6 +291,11 @@ public: // Calls init_screen with the current frame's dimensions. void init_screen(); +// color used by clear_frame, default -1 (unset) which clears to BLACK + void set_clear_color(int color, int alpha); + int get_clear_color(); + int get_clear_alpha(); + // Compiles and links the shaders into a program. // Adds the program with put_shader. // Returns the program handle. @@ -432,6 +437,8 @@ private: unsigned char *a; // Dimensions of frame int w, h; +// color used by clear_frame + int clear_color, clear_alpha; // Info for reading png images const unsigned char *image; long image_offset;