提交 f6dcc937 编写于 作者: M Michael Niedermayer

Add nomouse option to not record the mouse cursor.

Implements issue877

Originally committed as revision 20633 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 a5a61fac
...@@ -65,6 +65,7 @@ struct x11_grab ...@@ -65,6 +65,7 @@ struct x11_grab
XImage *image; /**< X11 image holding the grab */ XImage *image; /**< X11 image holding the grab */
int use_shm; /**< !0 when using XShm extension */ int use_shm; /**< !0 when using XShm extension */
XShmSegmentInfo shminfo; /**< When using XShm, keeps track of XShm infos */ XShmSegmentInfo shminfo; /**< When using XShm, keeps track of XShm infos */
int nomouse;
}; };
/** /**
...@@ -95,6 +96,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -95,6 +96,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
offset = strchr(param, '+'); offset = strchr(param, '+');
if (offset) { if (offset) {
sscanf(offset, "%d,%d", &x_off, &y_off); sscanf(offset, "%d,%d", &x_off, &y_off);
x11grab->nomouse= strstr(offset, "nomouse");
*offset= 0; *offset= 0;
} }
...@@ -383,7 +385,7 @@ x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -383,7 +385,7 @@ x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
} }
} }
{ if(!s->nomouse){
paint_mouse_pointer(image, s); paint_mouse_pointer(image, s);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册