X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcbitmap.h;h=95b586842f53ec7e4c7815946d76264dd313109f;hb=5616fa8528aa382cef440a88ffd0d87ed3bbfda2;hp=f065000ac77c39222019f58363ded3abfb56e12d;hpb=3d7a882d0808f456957f823454bd84ff8317a51a;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcbitmap.h b/cinelerra-5.1/guicast/bcbitmap.h index f065000a..95b58684 100644 --- a/cinelerra-5.1/guicast/bcbitmap.h +++ b/cinelerra-5.1/guicast/bcbitmap.h @@ -27,7 +27,11 @@ #include #include #include +#ifdef HAVE_XV #include +#else +typedef struct _XvImage XvImage; +#endif #include "bcwindowbase.inc" #include "bcbitmap.inc" @@ -58,8 +62,10 @@ class BC_BitmapImage : public ListItem { friend class BC_Bitmap; friend class BC_XImage; friend class BC_XShmImage; +#ifdef HAVE_XV friend class BC_XvImage; friend class BC_XvShmImage; +#endif friend class BC_ActiveBitmaps; protected: int read_frame_rgb(VFrame* frame); @@ -122,6 +128,7 @@ public: int read_drawable(Drawable &pixmap, int source_x, int source_y); }; +#ifdef HAVE_XV class BC_XvImage : public BC_BitmapImage { long xv_offset(int i) { return xv_image->offsets[i]; } unsigned char* xv_plane(int i) { return get_data() + xv_offset(i); } @@ -151,15 +158,17 @@ public: int source_x, int source_y, int source_w, int source_h, int dest_x, int dest_y, int dest_w, int dest_h); }; - +#endif class BC_Bitmap { friend class BC_XImage; friend class BC_XShmImage; +#ifdef HAVE_XV friend class BC_XvImage; friend class BC_XvShmImage; +#endif friend class BC_BitmapImage; friend class BC_ActiveBitmaps; int buffer_count, max_buffer_count;