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
418d4e21
Commit
418d4e21
authored
Nov 13, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg: added ffmpeg-skiploopfilter option for H264 decoding.
parent
b26f433d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+7
-0
modules/codec/ffmpeg/ffmpeg.h
modules/codec/ffmpeg/ffmpeg.h
+5
-0
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+10
-0
No files found.
modules/codec/ffmpeg/ffmpeg.c
View file @
418d4e21
...
...
@@ -70,6 +70,10 @@ struct decoder_sys_t
static
int
OpenDecoder
(
vlc_object_t
*
);
static
void
CloseDecoder
(
vlc_object_t
*
);
static
int
nloopf_list
[]
=
{
0
,
1
,
2
,
3
,
4
};
static
char
*
nloopf_list_text
[]
=
{
N_
(
"None"
),
N_
(
"Non-ref"
),
N_
(
"Bidir"
),
N_
(
"Non-key"
),
N_
(
"All"
)
};
static
char
*
enc_hq_list
[]
=
{
"rd"
,
"bits"
,
"simple"
};
static
char
*
enc_hq_list_text
[]
=
{
N_
(
"rd"
),
N_
(
"bits"
),
N_
(
"simple"
)
};
/*****************************************************************************
...
...
@@ -104,6 +108,9 @@ vlc_module_begin();
add_integer
(
"ffmpeg-lowres"
,
0
,
NULL
,
LOWRES_TEXT
,
LOWRES_LONGTEXT
,
VLC_TRUE
);
change_integer_range
(
0
,
2
);
add_integer
(
"ffmpeg-skiploopfilter"
,
0
,
NULL
,
SKIPLOOPF_TEXT
,
SKIPLOOPF_LONGTEXT
,
VLC_TRUE
);
change_integer_list
(
nloopf_list
,
nloopf_list_text
,
0
);
#ifdef LIBAVCODEC_PP
add_integer
(
"ffmpeg-pp-q"
,
0
,
NULL
,
PP_Q_TEXT
,
PP_Q_LONGTEXT
,
VLC_FALSE
);
...
...
modules/codec/ffmpeg/ffmpeg.h
View file @
418d4e21
...
...
@@ -128,6 +128,11 @@ void E_(ClosePostproc)( decoder_t *, void * );
#define LOWRES_LONGTEXT N_( "Will only decode a low resolution version of " \
"the video." )
#define SKIPLOOPF_TEXT N_( "Skip the loop filter for H.264 decoding" )
#define SKIPLOOPF_LONGTEXT N_( "Skipping the loop filter (aka deblocking) " \
"usually has a detrimental effect on quality. However for HDTV streams " \
"this provides a big speedup." )
#define LIBAVCODEC_PP_TEXT N_("ffmpeg post processing filter chains")
/* FIXME (cut/past from ffmpeg */
#define LIBAVCODEC_PP_LONGTEXT \
...
...
modules/codec/ffmpeg/video.c
View file @
418d4e21
...
...
@@ -275,6 +275,16 @@ int E_(InitVideoDec)( decoder_t *p_dec, AVCodecContext *p_context,
if
(
val
.
i_int
>
0
&&
val
.
i_int
<=
2
)
p_sys
->
p_context
->
lowres
=
val
.
i_int
;
#endif
var_Create
(
p_dec
,
"ffmpeg-skiploopfilter"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_dec
,
"ffmpeg-skiploopfilter"
,
&
val
);
#if LIBAVCODEC_BUILD >= 4758
if
(
val
.
i_int
>
0
)
p_sys
->
p_context
->
skip_loop_filter
=
AVDISCARD_NONREF
;
if
(
val
.
i_int
>
1
)
p_sys
->
p_context
->
skip_loop_filter
=
AVDISCARD_BIDIR
;
if
(
val
.
i_int
>
2
)
p_sys
->
p_context
->
skip_loop_filter
=
AVDISCARD_NONKEY
;
if
(
val
.
i_int
>
3
)
p_sys
->
p_context
->
skip_loop_filter
=
AVDISCARD_ALL
;
#endif
/* ***** ffmpeg frame skipping ***** */
var_Create
(
p_dec
,
"ffmpeg-hurry-up"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_dec
,
"ffmpeg-hurry-up"
,
&
val
);
...
...
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