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
89a12ab1
Commit
89a12ab1
authored
May 25, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/ffmpeg.c: clean-up for the ffmpeg config options.
parent
66815e2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
55 deletions
+66
-55
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+66
-55
No files found.
modules/codec/ffmpeg/ffmpeg.c
View file @
89a12ab1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ffmpeg.c: video decoder using ffmpeg library
* ffmpeg.c: video decoder using ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: ffmpeg.c,v 1.3
8 2003/05/21 19:55:25 hartma
n Exp $
* $Id: ffmpeg.c,v 1.3
9 2003/05/25 00:16:47 gbazi
n Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -83,28 +83,17 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
...
@@ -83,28 +83,17 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
#define DR_TEXT N_("Direct rendering")
#define ERROR_RESILIENCE_LONGTEXT \
#define ERROR_TEXT N_("Error resilience")
#define ERROR_LONGTEXT N_( \
"ffmpeg can make errors resiliences. \n" \
"ffmpeg can make errors resiliences. \n" \
"Nevertheless, with buggy encoder (like ISO MPEG-4 encoder from M$) " \
"Nevertheless, with buggy encoder (like ISO MPEG-4 encoder from M$) " \
"this will produce a lot of errors.\n" \
"this will produce a lot of errors.\n" \
"Valid range is -1 to 99 (-1 disable all errors resiliences)."
"Valid range is -1 to 99 (-1 disable all errors resiliences)."
)
#define HURRY_UP_LONGTEXT \
#define BUGS_TEXT N_("Workaround bugs")
"Allow the decoder to partially decode or skip frame(s) " \
#define BUGS_LONGTEXT N_( \
"when there not enough time.\n It's usefull with low CPU power " \
"but it could produce broken pictures."
#define POSTPROCESSING_Q_LONGTEXT \
"Quality of post processing\n"\
"Valid range is 0 to 6"
#define POSTPROCESSING_AQ_LONGTEXT \
"Post processing quality is selected upon time left " \
"but no more than requested quality\n" \
"Not yet implemented !"
#define WORKAROUND_BUGS_LONGTEXT \
"Try to fix some bugs\n" \
"Try to fix some bugs\n" \
"1 autodetect\n" \
"1 autodetect\n" \
"2 old msmpeg4\n" \
"2 old msmpeg4\n" \
...
@@ -112,10 +101,25 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
...
@@ -112,10 +101,25 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
"8 ump4 \n" \
"8 ump4 \n" \
"16 no padding\n" \
"16 no padding\n" \
"32 ac vlc" \
"32 ac vlc" \
"64 Qpel chroma"
"64 Qpel chroma")
#define HURRYUP_TEXT N_("Hurry up")
#define HURRYUP_LONGTEXT N_( \
"Allow the decoder to partially decode or skip frame(s) " \
"when there not enough time.\n It's usefull with low CPU power " \
"but it could produce broken pictures.")
#define TRUNC_TEXT N_("Truncated stream")
#define TRUNC_LONGTEXT N_("truncated stream -1:auto,0:disable,:1:enable")
#define PP_Q_TEXT N_("Post processing quality")
#define PP_Q_LONGTEXT N_( \
"Quality of post processing\n"\
"Valid range is 0 to 6" )
#define LIBAVCODEC_PP_TEXT N_("Ffmpeg postproc filter chains")
/* FIXME (cut/past from ffmpeg */
/* FIXME (cut/past from ffmpeg */
#define LIBAVCODEC_PP_LONG
HELP
\
#define LIBAVCODEC_PP_LONG
TEXT
\
"<filterName>[:<option>[:<option>...]][[,|/][-]<filterName>[:<option>...]]...\n" \
"<filterName>[:<option>[:<option>...]][[,|/][-]<filterName>[:<option>...]]...\n" \
"long form example:\n" \
"long form example:\n" \
"vdeblock:autoq/hdeblock:autoq/linblenddeint default,-vdeblock\n" \
"vdeblock:autoq/hdeblock:autoq/linblenddeint default,-vdeblock\n" \
...
@@ -150,51 +154,58 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
...
@@ -150,51 +154,58 @@ static int ffmpeg_GetFfmpegCodec( vlc_fourcc_t, int *, int *, char ** );
" 1. <= 2. <= 3. larger -> stronger filtering\n" \
" 1. <= 2. <= 3. larger -> stronger filtering\n" \
"fq forceQuant <quantizer> Force quantizer\n"
"fq forceQuant <quantizer> Force quantizer\n"
#define FFMPEG_PP_TEXT N_( "Ffmpeg postprocessing module" )
#define PP_AQ_TEXT N_("Auto-level Post processing quality")
#define POSTPROCESSING_AQ_LONGTEXT N_( \
"Post processing quality is selected upon time left " \
"but no more than requested quality\n" \
"Not yet implemented !")
#define FFMPEG_YV_TEXT N_("Force vertical luminance deblocking")
#define FFMPEG_YV_LONGTEXT N_("Force vertical luminance deblocking (override other settings)")
#define FFMPEG_YH_TEXT N_("Force horizontal luminance deblocking")
#define FFMPEG_YH_LONGTEXT N_("Force horizontal luminance deblocking (override other settings)")
#define FFMPEG_CV_TEXT N_("Force vertical chrominance deblocking")
#define FFMPEG_CV_LONGTEXT N_("Force vertical chrominance deblocking (override other settings)")
#define FFMPEG_CH_TEXT N_("Force horizontal chrominance deblocking")
#define FFMPEG_CH_LONGTEXT N_("Force horizontal chrominance deblocking (override other settings)")
#define FFMPEG_Y_DR_TEXT N_("Force luminance deringing")
#define FFMPEG_Y_DR_LONGTEXT N_("Force luminance deringing (override other settings)")
#define FFMPEG_C_DR_TEXT N_("Force chrominance deringing")
#define FFMPEG_C_DR_LONGTEXT N_("Force chrominance deringing (override other settings)")
vlc_module_begin
();
vlc_module_begin
();
add_category_hint
(
N_
(
"ffmpeg"
),
NULL
,
VLC_FALSE
);
add_category_hint
(
N_
(
"ffmpeg"
),
NULL
,
VLC_FALSE
);
set_capability
(
"decoder"
,
70
);
set_capability
(
"decoder"
,
70
);
set_callbacks
(
OpenDecoder
,
NULL
);
set_callbacks
(
OpenDecoder
,
NULL
);
set_description
(
_
(
"ffmpeg audio/video decoder((MS)MPEG4,SVQ1,H263,WMV,WMA)"
)
);
set_description
(
_
(
"ffmpeg audio/video decoder((MS)MPEG4,SVQ1,H263,WMV,WMA)"
)
);
add_bool
(
"ffmpeg-dr"
,
0
,
NULL
,
add_bool
(
"ffmpeg-dr"
,
0
,
NULL
,
DR_TEXT
,
DR_TEXT
,
VLC_TRUE
);
"direct rendering"
,
add_integer
(
"ffmpeg-error-resilience"
,
-
1
,
NULL
,
ERROR_TEXT
,
ERROR_LONGTEXT
,
VLC_TRUE
);
"direct rendering"
,
VLC_TRUE
);
add_integer
(
"ffmpeg-workaround-bugs"
,
1
,
NULL
,
BUGS_TEXT
,
BUGS_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"ffmpeg-error-resilience"
,
-
1
,
NULL
,
add_bool
(
"ffmpeg-hurry-up"
,
0
,
NULL
,
HURRYUP_TEXT
,
HURRYUP_LONGTEXT
,
VLC_FALSE
);
"error resilience"
,
ERROR_RESILIENCE_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"ffmpeg-truncated"
,
-
1
,
NULL
,
TRUNC_TEXT
,
TRUNC_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"ffmpeg-workaround-bugs"
,
1
,
NULL
,
"workaround bugs"
,
WORKAROUND_BUGS_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"ffmpeg-hurry-up"
,
0
,
NULL
,
"hurry up"
,
HURRY_UP_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"ffmpeg-truncated"
,
-
1
,
NULL
,
"truncated stream"
,
"truncated stream -1:auto,0:disable,:1:enable"
,
VLC_FALSE
);
add_category_hint
(
N_
(
"Post processing"
),
NULL
,
VLC_FALSE
);
add_category_hint
(
N_
(
"Post processing"
),
NULL
,
VLC_FALSE
);
add_integer
(
"ffmpeg-pp-q"
,
0
,
NULL
,
add_integer
(
"ffmpeg-pp-q"
,
0
,
NULL
,
PP_Q_TEXT
,
PP_Q_LONGTEXT
,
VLC_FALSE
);
"post processing quality"
,
POSTPROCESSING_Q_LONGTEXT
,
VLC_FALSE
);
#ifdef LIBAVCODEC_PP
#ifdef LIBAVCODEC_PP
add_string
(
"ffmpeg-pp-name"
,
"default"
,
NULL
,
add_string
(
"ffmpeg-pp-name"
,
"default"
,
NULL
,
LIBAVCODEC_PP_TEXT
,
LIBAVCODEC_PP_LONGTEXT
,
VLC_TRUE
);
"ffmpeg postproc filter chains"
,
LIBAVCODEC_PP_LONGHELP
,
VLC_TRUE
);
#else
#else
add_module
(
"ffmpeg-pp"
,
"postprocessing"
,
NULL
,
NULL
,
add_module
(
"ffmpeg-pp"
,
"postprocessing"
,
NULL
,
NULL
,
FFMPEG_PP_TEXT
,
NULL
,
VLC_FALSE
);
N_
(
"ffmpeg postprocessing module"
),
NULL
,
VLC_FALSE
);
add_bool
(
"ffmpeg-pp-auto"
,
0
,
NULL
,
PP_AQ_TEXT
,
PP_AQ_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"ffmpeg-pp-auto"
,
0
,
NULL
,
add_bool
(
"ffmpeg-db-yv"
,
0
,
NULL
,
FFMPEG_YV_TEXT
,
FFMPEG_YV_LONGTEXT
,
VLC_TRUE
);
"auto-level Post processing quality"
,
POSTPROCESSING_AQ_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"ffmpeg-db-yh"
,
0
,
NULL
,
FFMPEG_YH_TEXT
,
FFMPEG_YH_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"ffmpeg-db-yv"
,
0
,
NULL
,
add_bool
(
"ffmpeg-db-cv"
,
0
,
NULL
,
FFMPEG_CV_TEXT
,
FFMPEG_CV_LONGTEXT
,
VLC_TRUE
);
"force vertical luminance deblocking"
,
add_bool
(
"ffmpeg-db-ch"
,
0
,
NULL
,
FFMPEG_CH_TEXT
,
FFMPEG_CH_LONGTEXT
,
VLC_TRUE
);
"force vertical luminance deblocking (override other settings)"
,
VLC_TRUE
);
add_bool
(
"ffmpeg-dr-y"
,
0
,
NULL
,
FFMPEG_Y_DR_TEXT
,
FFMPEG_Y_DR_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"ffmpeg-db-yh"
,
0
,
NULL
,
add_bool
(
"ffmpeg-dr-c"
,
0
,
NULL
,
FFMPEG_C_DR_TEXT
,
FFMPEG_C_DR_LONGTEXT
,
VLC_TRUE
);
"force horizontal luminance deblocking"
,
"force horizontal luminance deblocking (override other settings)"
,
VLC_TRUE
);
add_bool
(
"ffmpeg-db-cv"
,
0
,
NULL
,
"force vertical chrominance deblocking"
,
"force vertical chrominance deblocking (override other settings)"
,
VLC_TRUE
);
add_bool
(
"ffmpeg-db-ch"
,
0
,
NULL
,
"force horizontal chrominance deblocking"
,
"force horizontal chrominance deblocking (override other settings) "
,
VLC_TRUE
);
add_bool
(
"ffmpeg-dr-y"
,
0
,
NULL
,
"force luminance deringing"
,
"force luminance deringing (override other settings)"
,
VLC_TRUE
);
add_bool
(
"ffmpeg-dr-c"
,
0
,
NULL
,
"force chrominance deringing"
,
"force chrominance deringing (override other settings)"
,
VLC_TRUE
);
#endif
#endif
/* chroma conversion submodule */
/* chroma conversion submodule */
...
...
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