Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a1cd0034
Commit
a1cd0034
authored
May 30, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a picture_Reset helper.
parent
c0e71612
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
include/vlc_picture.h
include/vlc_picture.h
+6
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+14
-0
No files found.
include/vlc_picture.h
View file @
a1cd0034
...
...
@@ -198,6 +198,12 @@ static inline void picture_CopyProperties( picture_t *p_dst, const picture_t *p_
/* FIXME: copy ->p_q and ->p_qstride */
}
/**
* This function will reset a picture informations (properties and quantizers).
* It is sometimes usefull for reusing pictures (like from a pool).
*/
VLC_EXPORT
(
void
,
picture_Reset
,
(
picture_t
*
)
);
/**
* This function will copy the picture pixels.
* You can safely copy between pictures that do not have the same size,
...
...
src/libvlccore.sym
View file @
a1cd0034
...
...
@@ -277,6 +277,7 @@ picture_CopyPixels
picture_Delete
picture_Export
picture_New
picture_Reset
picture_Setup
plane_CopyPixels
playlist_Add
...
...
src/video_output/vout_pictures.c
View file @
a1cd0034
...
...
@@ -649,6 +649,20 @@ static void PictureReleaseCallback( picture_t *p_picture )
picture_Delete
(
p_picture
);
}
/*****************************************************************************
*
*****************************************************************************/
void
picture_Reset
(
picture_t
*
p_picture
)
{
/* */
p_picture
->
date
=
VLC_TS_INVALID
;
p_picture
->
b_force
=
false
;
p_picture
->
b_progressive
=
false
;
p_picture
->
i_nb_fields
=
0
;
p_picture
->
b_top_field_first
=
false
;
picture_CleanupQuant
(
p_picture
);
}
/*****************************************************************************
*
*****************************************************************************/
...
...
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