30 #ifndef __INTERN_VIDEO_H__
31 #define __INTERN_VIDEO_H__
94 #define CLIP_RECTANGLE(x, y, width, height) do { \
104 if ((x + width) > ClipX2 + 1) { \
108 width = ClipX2 - x + 1; \
118 if ((y + height) > ClipY2 + 1) { \
122 height = ClipY2 - y + 1; \
149 #define CLIP_RECTANGLE_OFS(x, y, width, height, ofsx, ofsy, endx) do { \
152 if (height <= ofsy) { \
160 if ((y + height) > ClipY2 + 1) { \
164 height = ClipY2 - y + 1; \
168 if (width <= ofsx) { \
176 if ((x + width) > ClipX2 + 1) { \
180 endx = (x + width) - (ClipX2 + 1); \
181 width = ClipX2 - x + 1; \
195 #endif // !__INTERN_VIDEO_H__
int ClipX1
Profile, frames out of sync.
Definition: video.cpp:181
int ClipY1
current clipping top left
Definition: video.cpp:182
int ClipX2
current clipping top left
Definition: video.cpp:183
int ClipY2
current clipping bottom right
Definition: video.cpp:184