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
a7139d45
Commit
a7139d45
authored
Mar 08, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved snapshot_t structure to the only place where it is used.
parent
aaf2ac90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
include/vlc_vout.h
include/vlc_vout.h
+0
-11
modules/video_output/snapshot.c
modules/video_output/snapshot.c
+11
-1
No files found.
include/vlc_vout.h
View file @
a7139d45
...
@@ -743,17 +743,6 @@ enum output_query_e
...
@@ -743,17 +743,6 @@ enum output_query_e
VOUT_REDRAW_RECT
,
/* arg1= area rect, res= */
VOUT_REDRAW_RECT
,
/* arg1= area rect, res= */
};
};
typedef
struct
snapshot_t
{
char
*
p_data
;
/* Data area */
int
i_width
;
/* In pixels */
int
i_height
;
/* In pixels */
int
i_datasize
;
/* In bytes */
mtime_t
date
;
/* Presentation time */
vlc_cond_t
p_condvar
;
vlc_mutex_t
p_mutex
;
}
snapshot_t
;
/**@}*/
/**@}*/
#endif
/* _VLC_VIDEO_H */
#endif
/* _VLC_VIDEO_H */
modules/video_output/snapshot.c
View file @
a7139d45
...
@@ -95,6 +95,16 @@ vlc_module_end ()
...
@@ -95,6 +95,16 @@ vlc_module_end ()
/*****************************************************************************
/*****************************************************************************
* vout_sys_t: video output descriptor
* vout_sys_t: video output descriptor
*****************************************************************************/
*****************************************************************************/
typedef
struct
snapshot_t
{
uint8_t
*
p_data
;
/* Data area */
int
i_width
;
/* In pixels */
int
i_height
;
/* In pixels */
int
i_datasize
;
/* In bytes */
mtime_t
date
;
/* Presentation time */
}
snapshot_t
;
struct
vout_sys_t
struct
vout_sys_t
{
{
snapshot_t
**
p_list
;
/* List of available snapshots */
snapshot_t
**
p_list
;
/* List of available snapshots */
...
@@ -273,7 +283,7 @@ static int Init( vout_thread_t *p_vout )
...
@@ -273,7 +283,7 @@ static int Init( vout_thread_t *p_vout )
p_snapshot
->
i_height
=
i_height
;
p_snapshot
->
i_height
=
i_height
;
p_snapshot
->
i_datasize
=
i_datasize
;
p_snapshot
->
i_datasize
=
i_datasize
;
p_snapshot
->
date
=
0
;
p_snapshot
->
date
=
0
;
p_snapshot
->
p_data
=
(
char
*
)
malloc
(
i_datasize
);
p_snapshot
->
p_data
=
malloc
(
i_datasize
);
if
(
p_snapshot
->
p_data
==
NULL
)
if
(
p_snapshot
->
p_data
==
NULL
)
{
{
free
(
p_snapshot
);
free
(
p_snapshot
);
...
...
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