Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
38f8e29f
Commit
38f8e29f
authored
Oct 16, 2008
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support multiple planes in the vmem driver, courtesy of Pierre Ynard.
parent
51d01bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
modules/video_output/vmem.c
modules/video_output/vmem.c
+12
-4
No files found.
modules/video_output/vmem.c
View file @
38f8e29f
...
@@ -62,8 +62,8 @@ static int UnlockPicture ( vout_thread_t *, picture_t * );
...
@@ -62,8 +62,8 @@ static int UnlockPicture ( vout_thread_t *, picture_t * );
#define T_LOCK N_( "Lock function" )
#define T_LOCK N_( "Lock function" )
#define LT_LOCK N_( "Address of the locking callback function. This " \
#define LT_LOCK N_( "Address of the locking callback function. This " \
"function must
return a valid memory address for use
" \
"function must
fill in valid plane memory address
" \
"by the video renderer." )
"
information for use
by the video renderer." )
#define T_UNLOCK N_( "Unlock function" )
#define T_UNLOCK N_( "Unlock function" )
#define LT_UNLOCK N_( "Address of the unlocking callback function" )
#define LT_UNLOCK N_( "Address of the unlocking callback function" )
...
@@ -97,7 +97,7 @@ struct vout_sys_t
...
@@ -97,7 +97,7 @@ struct vout_sys_t
{
{
int
i_width
,
i_height
,
i_pitch
;
int
i_width
,
i_height
,
i_pitch
;
void
*
(
*
pf_lock
)
(
void
*
);
void
(
*
pf_lock
)
(
void
*
,
void
*
*
);
void
(
*
pf_unlock
)
(
void
*
);
void
(
*
pf_unlock
)
(
void
*
);
void
*
p_data
;
void
*
p_data
;
};
};
...
@@ -280,7 +280,15 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -280,7 +280,15 @@ static void Destroy( vlc_object_t *p_this )
*****************************************************************************/
*****************************************************************************/
static
int
LockPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
static
int
LockPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
{
p_pic
->
p
->
p_pixels
=
p_vout
->
p_sys
->
pf_lock
(
p_vout
->
p_sys
->
p_data
);
int
i_index
;
void
*
planes
[
p_pic
->
i_planes
];
p_vout
->
p_sys
->
pf_lock
(
p_vout
->
p_sys
->
p_data
,
planes
);
for
(
i_index
=
0
;
i_index
<
p_pic
->
i_planes
;
i_index
++
)
{
p_pic
->
p
[
i_index
].
p_pixels
=
planes
[
i_index
];
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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