Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ddc8575b
Commit
ddc8575b
authored
Oct 10, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/x264.c: a couple of fixes + use SSE2 detection.
* modules/codec/ffmpeg/ffmpeg.c: use SSE2 detection.
parent
b0e2accb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+3
-0
modules/codec/x264.c
modules/codec/x264.c
+8
-3
No files found.
modules/codec/ffmpeg/ffmpeg.c
View file @
ddc8575b
...
...
@@ -240,6 +240,9 @@ static int OpenDecoder( vlc_object_t *p_this )
if
(
!
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_SSE
)
)
{
p_context
->
dsp_mask
|=
FF_MM_SSE
;
}
if
(
!
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_SSE2
)
)
{
p_context
->
dsp_mask
|=
FF_MM_SSE2
;
}
...
...
modules/codec/x264.c
View file @
ddc8575b
...
...
@@ -146,8 +146,8 @@ vlc_module_end();
* Local prototypes
*****************************************************************************/
static
const
char
*
ppsz_sout_options
[]
=
{
"qp"
,
"qp-m
ax
"
,
"qp-max"
,
"cabac"
,
"loopfilter"
,
"analyse"
,
"keyint"
,
"idrint"
,
"bframes"
,
"frameref"
,
NULL
"qp"
,
"qp-m
in
"
,
"qp-max"
,
"cabac"
,
"loopfilter"
,
"analyse"
,
"keyint"
,
"idrint"
,
"bframes"
,
"frameref"
,
"scenecut"
,
NULL
};
static
block_t
*
Encode
(
encoder_t
*
,
picture_t
*
);
...
...
@@ -222,6 +222,7 @@ static int Open ( vlc_object_t *p_this )
{
/* No QP -> constant bitrate */
#if X264_BUILD >= 0x000a
p_sys
->
param
.
rc
.
b_cbr
=
1
;
p_sys
->
param
.
rc
.
i_bitrate
=
p_enc
->
fmt_out
.
i_bitrate
/
1000
;
p_sys
->
param
.
rc
.
i_rc_buffer_size
=
p_sys
->
param
.
rc
.
i_bitrate
;
p_sys
->
param
.
rc
.
i_rc_init_buffer
=
p_sys
->
param
.
rc
.
i_bitrate
/
4
;
...
...
@@ -299,7 +300,11 @@ static int Open ( vlc_object_t *p_this )
}
if
(
!
(
p_enc
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_SSE
)
)
{
p_sys
->
param
.
cpu
&=
~
(
X264_CPU_SSE
|
X264_CPU_SSE2
);
p_sys
->
param
.
cpu
&=
~
X264_CPU_SSE
;
}
if
(
!
(
p_enc
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_SSE2
)
)
{
p_sys
->
param
.
cpu
&=
~
X264_CPU_SSE2
;
}
/* Open the encoder */
...
...
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