Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a5a61fac
Commit
a5a61fac
authored
Nov 27, 2009
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused stuff.
Originally committed as revision 20632 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
781c1aa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
x11grab.c
libavdevice/x11grab.c
+0
-29
No files found.
libavdevice/x11grab.c
View file @
a5a61fac
...
...
@@ -65,7 +65,6 @@ struct x11_grab
XImage
*
image
;
/**< X11 image holding the grab */
int
use_shm
;
/**< !0 when using XShm extension */
XShmSegmentInfo
shminfo
;
/**< When using XShm, keeps track of XShm infos */
int
mouse_warning_shown
;
};
/**
...
...
@@ -222,7 +221,6 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
x11grab
->
y_off
=
y_off
;
x11grab
->
image
=
image
;
x11grab
->
use_shm
=
use_shm
;
x11grab
->
mouse_warning_shown
=
0
;
st
->
codec
->
codec_type
=
CODEC_TYPE_VIDEO
;
st
->
codec
->
codec_id
=
CODEC_ID_RAWVIDEO
;
...
...
@@ -235,33 +233,6 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
return
0
;
}
/**
* Mouse painting helper function that applies an 'and' and 'or' mask pair to
* '*dst' pixel. It actually draws a mouse pointer pixel to grabbed frame.
*
* @param dst Destination pixel
* @param and Part of the mask that must be applied using a bitwise 'and'
* operator
* @param or Part of the mask that must be applied using a bitwise 'or'
* operator
* @param bits_per_pixel Bits per pixel used in the grabbed image
*/
static
void
inline
apply_masks
(
uint8_t
*
dst
,
int
and
,
int
or
,
int
bits_per_pixel
)
{
switch
(
bits_per_pixel
)
{
case
32
:
*
(
uint32_t
*
)
dst
=
(
*
(
uint32_t
*
)
dst
&
and
)
|
or
;
break
;
case
16
:
*
(
uint16_t
*
)
dst
=
(
*
(
uint16_t
*
)
dst
&
and
)
|
or
;
break
;
case
8
:
*
dst
=
!!
or
;
break
;
}
}
/**
* Paints a mouse pointer in an X11 image.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment