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
f732680c
Commit
f732680c
authored
Mar 26, 2005
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snapshot.c:
* added some comments * updated module description * try to fix timestamping
parent
1614fdf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
modules/video_output/snapshot.c
modules/video_output/snapshot.c
+25
-7
No files found.
modules/video_output/snapshot.c
View file @
f732680c
...
...
@@ -21,6 +21,20 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
/*****************************************************************************
* This module is a pseudo video output the offers the possibility to
* keep a cache of low-res snapshots.
* The snapshot structure is defined in include/snapshot.h
* In order to access the current snapshot cache, object variables are used:
* snapshot-list-pointer : the pointer on the first element in the list
* snapshot-datasize : size of a snapshot
* (also available in snapshot_t->i_datasize)
* snapshot-cache-size : size of the cache list
*
* It is used for the moment by the CORBA module and a specialized
* python-vlc binding.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
...
...
@@ -58,7 +72,11 @@ static void Display ( vout_thread_t *, picture_t * );
vlc_module_begin
(
);
set_description
(
_
(
"snapshot module"
)
);
set_capability
(
"video output"
,
0
);
set_shortname
(
N_
(
"Snapshot"
)
);
set_category
(
CAT_VIDEO
);
set_subcategory
(
SUBCAT_VIDEO_VOUT
);
set_capability
(
"video output"
,
1
);
add_integer
(
"snapshot-width"
,
320
,
NULL
,
WIDTH_TEXT
,
WIDTH_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"snapshot-height"
,
200
,
NULL
,
HEIGHT_TEXT
,
HEIGHT_LONGTEXT
,
VLC_FALSE
);
...
...
@@ -94,11 +112,11 @@ static int Create( vlc_object_t *p_this )
if
(
!
p_vout
->
p_sys
)
return
VLC_ENOMEM
;
var_Create
(
p_
this
,
"snapshot-width"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
this
,
"snapshot-height"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
this
,
"snapshot-datasize"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
this
,
"snapshot-cache-size"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
this
,
"snapshot-list-pointer"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_
vout
,
"snapshot-width"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
vout
,
"snapshot-height"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
vout
,
"snapshot-datasize"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
vout
,
"snapshot-cache-size"
,
VLC_VAR_INTEGER
);
var_Create
(
p_
vout
,
"snapshot-list-pointer"
,
VLC_VAR_ADDRESS
);
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
NULL
;
...
...
@@ -342,7 +360,7 @@ static mtime_t snapshot_GetMovietime( vout_thread_t *p_vout )
var_Get
(
p_input
,
"time"
,
&
val
);
i_result
=
val
.
i_time
;
i_result
=
val
.
i_time
-
p_input
->
i_pts_delay
;
return
(
i_result
/
1000
);
}
...
...
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