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
a8037049
Commit
a8037049
authored
May 26, 2004
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/pvr: Added keyint= and bframes= options.
parent
05e5b2ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
modules/access/pvr/pvr.c
modules/access/pvr/pvr.c
+30
-0
No files found.
modules/access/pvr/pvr.c
View file @
a8037049
...
...
@@ -95,6 +95,8 @@ struct access_sys_t
int
i_height
;
int
i_frequency
;
int
i_framerate
;
int
i_bframes
;
int
i_keyint
;
int
i_bitrate
;
int
i_bitrate_peak
;
int
i_bitrate_mode
;
...
...
@@ -135,6 +137,8 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_height
=
-
1
;
p_sys
->
i_frequency
=
-
1
;
p_sys
->
i_framerate
=
-
1
;
p_sys
->
i_keyint
=
-
1
;
p_sys
->
i_bframes
=
-
1
;
p_sys
->
i_bitrate
=
-
1
;
p_sys
->
i_bitrate_peak
=
-
1
;
p_sys
->
i_bitrate_mode
=
-
1
;
...
...
@@ -209,6 +213,20 @@ static int Open( vlc_object_t * p_this )
strtol
(
psz_parser
+
strlen
(
"framerate="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"keyint="
,
strlen
(
"keyint="
)
)
)
{
p_sys
->
i_keyint
=
strtol
(
psz_parser
+
strlen
(
"keyint="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"bframes="
,
strlen
(
"bframes="
)
)
)
{
p_sys
->
i_bframes
=
strtol
(
psz_parser
+
strlen
(
"bframes="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"width="
,
strlen
(
"width="
)
)
)
{
...
...
@@ -403,6 +421,8 @@ static int Open( vlc_object_t * p_this )
/* codec parameters */
if
(
p_sys
->
i_framerate
!=
-
1
||
p_sys
->
i_keyint
!=
-
1
||
p_sys
->
i_bframes
!=
-
1
||
p_sys
->
i_bitrate_mode
!=
-
1
||
p_sys
->
i_bitrate_peak
!=
-
1
||
p_sys
->
i_bitrate
!=
-
1
...
...
@@ -433,6 +453,16 @@ static int Open( vlc_object_t * p_this )
}
}
if
(
p_sys
->
i_keyint
!=
-
1
)
{
codec
.
framespergop
=
p_sys
->
i_keyint
;
}
if
(
p_sys
->
i_bframes
!=
-
1
)
{
codec
.
bframes
=
p_sys
->
i_bframes
;
}
if
(
p_sys
->
i_bitrate
!=
-
1
)
{
codec
.
bitrate
=
p_sys
->
i_bitrate
;
...
...
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