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
f84b1d9d
Commit
f84b1d9d
authored
May 27, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/mjpeg.c: fixed pts calculation.
parent
ae513731
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+10
-7
No files found.
modules/demux/mjpeg.c
View file @
f84b1d9d
...
@@ -43,13 +43,12 @@ static void Close( vlc_object_t * );
...
@@ -43,13 +43,12 @@ static void Close( vlc_object_t * );
#define FPS_TEXT N_("Frames per Second")
#define FPS_TEXT N_("Frames per Second")
#define FPS_LONGTEXT N_("Allows you to set the desired frame rate when " \
#define FPS_LONGTEXT N_("Allows you to set the desired frame rate when " \
"playing from files, use 0 for live.")
"playing from files, use 0 for live.")
#define VAR_FPS "mjpeg-fps"
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"JPEG camera demuxer"
)
);
set_description
(
_
(
"JPEG camera demuxer"
)
);
set_capability
(
"demux2"
,
5
);
set_capability
(
"demux2"
,
5
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
add_float
(
VAR_FPS
,
0
.
0
,
NULL
,
FPS_TEXT
,
FPS_LONGTEXT
,
VLC_FALSE
);
add_float
(
"mjpeg-fps"
,
0
.
0
,
NULL
,
FPS_TEXT
,
FPS_LONGTEXT
,
VLC_FALSE
);
vlc_module_end
();
vlc_module_end
();
/*****************************************************************************
/*****************************************************************************
...
@@ -282,16 +281,20 @@ static int Open( vlc_object_t * p_this )
...
@@ -282,16 +281,20 @@ static int Open( vlc_object_t * p_this )
int
i_size
;
int
i_size
;
int
b_matched
=
VLC_FALSE
;
int
b_matched
=
VLC_FALSE
;
vlc_value_t
val
;
vlc_value_t
val
;
float
f_fps
;
p_demux
->
pf_control
=
Control
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
p_sys
->
p_es
=
NULL
;
p_sys
->
p_es
=
NULL
;
p_sys
->
i_time
=
1
;
p_sys
->
i_time
=
1
;
var_Create
(
p_demux
,
VAR_FPS
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_demux
,
VAR_FPS
,
&
val
);
var_Create
(
p_demux
,
"mjpeg-fps"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
f_fps
=
val
.
f_float
;
var_Get
(
p_demux
,
"mjpeg-fps"
,
&
val
);
p_sys
->
i_frame_length
=
1000000
.
0
/
f_fps
;
p_sys
->
i_frame_length
=
0
;
if
(
val
.
f_float
)
{
p_sys
->
i_frame_length
=
1000000
.
0
/
val
.
f_float
;
}
p_sys
->
psz_separator
=
NULL
;
p_sys
->
psz_separator
=
NULL
;
p_sys
->
i_frame_size_estimate
=
15
*
1024
;
p_sys
->
i_frame_size_estimate
=
15
*
1024
;
...
...
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