X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fvframe.h;h=dc14dc876f9e17d25df91ac68a01ae153872a7e7;hb=7a70932d3e04454177c456d0b42ee2f5318d6ad1;hp=575968916c302476241c2bd5a7d966a38cd8df5f;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/vframe.h b/cinelerra-5.1/guicast/vframe.h index 57596891..dc14dc87 100644 --- a/cinelerra-5.1/guicast/vframe.h +++ b/cinelerra-5.1/guicast/vframe.h @@ -131,7 +131,10 @@ public: // direct copy with no alpha int copy_from(VFrame *frame); // BC_CModels::transfer - int transfer_from(VFrame *frame, int bg_color=0); + int transfer_from(VFrame *frame, int bg_color, int in_x, int in_y, int in_w, int in_h); + int transfer_from(VFrame *frame, int bg_color=0) { + return transfer_from(frame, bg_color, 0,0, frame->get_w(),frame->get_h()); + } // Required for YUV int clear_frame(); int allocate_compressed_data(long bytes); @@ -213,8 +216,9 @@ public: // Must be called from a synchronous opengl thread after enable_opengl. void to_texture(); -// Transfer from PBuffer to RAM. Only used after Playback3D::overlay_sync - void to_ram(); +// Transfer from PBuffer to RAM. +// used in Playback3D::overlay_sync, plugin Overlay::handle_opengl + void screen_to_ram(); // Transfer contents of current pbuffer to texture, // creating a new texture if necessary.