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
4190fca5
Commit
4190fca5
authored
Mar 31, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec 2nd round exept fo x264 (refs #438)
parent
ec937f96
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
33 additions
and
33 deletions
+33
-33
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+1
-1
modules/codec/quicktime.c
modules/codec/quicktime.c
+1
-1
modules/codec/speex.c
modules/codec/speex.c
+1
-1
modules/codec/subsdec.c
modules/codec/subsdec.c
+2
-2
modules/codec/tarkin.c
modules/codec/tarkin.c
+1
-1
modules/codec/theora.c
modules/codec/theora.c
+2
-2
modules/codec/vorbis.c
modules/codec/vorbis.c
+7
-7
modules/codec/x264.c
modules/codec/x264.c
+18
-18
No files found.
modules/codec/mpeg_audio.c
View file @
4190fca5
...
@@ -103,7 +103,7 @@ static int SyncInfo( uint32_t i_header, unsigned int * pi_channels,
...
@@ -103,7 +103,7 @@ static int SyncInfo( uint32_t i_header, unsigned int * pi_channels,
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"MPEG audio layer I/II/III
pars
er"
)
);
set_description
(
_
(
"MPEG audio layer I/II/III
decod
er"
)
);
set_category
(
CAT_INPUT
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACODEC
);
set_subcategory
(
SUBCAT_INPUT_ACODEC
);
#if defined(__APPLE__) || defined(UNDER_CE)
#if defined(__APPLE__) || defined(UNDER_CE)
...
...
modules/codec/quicktime.c
View file @
4190fca5
...
@@ -954,7 +954,7 @@ static int QTAudioInit( decoder_t *p_dec )
...
@@ -954,7 +954,7 @@ static int QTAudioInit( decoder_t *p_dec )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
msg_Dbg
(
p_dec
,
"
S
tandard init done"
);
msg_Dbg
(
p_dec
,
"
s
tandard init done"
);
#endif
/* else __APPLE__ */
#endif
/* else __APPLE__ */
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/codec/speex.c
View file @
4190fca5
...
@@ -344,7 +344,7 @@ static int ProcessInitialHeader( decoder_t *p_dec, ogg_packet *p_oggpacket )
...
@@ -344,7 +344,7 @@ static int ProcessInitialHeader( decoder_t *p_dec, ogg_packet *p_oggpacket )
if
(
p_header
->
speex_version_id
>
1
)
if
(
p_header
->
speex_version_id
>
1
)
{
{
msg_Err
(
p_dec
,
"this file was encoded with Speex bit-stream "
msg_Err
(
p_dec
,
"this file was encoded with Speex bit-stream "
"version %d
, which I don't know how to decode
."
,
"version %d
which is not supported by this decoder
."
,
p_header
->
speex_version_id
);
p_header
->
speex_version_id
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/codec/subsdec.c
View file @
4190fca5
...
@@ -312,7 +312,7 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
...
@@ -312,7 +312,7 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
{
{
if
(
IsUTF8
(
psz_subtitle
)
==
NULL
)
if
(
IsUTF8
(
psz_subtitle
)
==
NULL
)
{
{
msg_Dbg
(
p_dec
,
"
I
nvalid UTF-8 sequence: "
msg_Dbg
(
p_dec
,
"
i
nvalid UTF-8 sequence: "
"disabling UTF-8 subtitles autodetection"
);
"disabling UTF-8 subtitles autodetection"
);
p_sys
->
b_autodetect_utf8
=
VLC_FALSE
;
p_sys
->
b_autodetect_utf8
=
VLC_FALSE
;
}
}
...
@@ -336,7 +336,7 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
...
@@ -336,7 +336,7 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
if
(
(
ret
==
(
size_t
)(
-
1
)
)
||
inbytes_left
)
if
(
(
ret
==
(
size_t
)(
-
1
)
)
||
inbytes_left
)
{
{
free
(
psz_new_subtitle
);
free
(
psz_new_subtitle
);
msg_Err
(
p_dec
,
_
(
"
F
ailed to convert subtitle encoding.
\n
"
msg_Err
(
p_dec
,
_
(
"
f
ailed to convert subtitle encoding.
\n
"
"Try manually setting a character-encoding "
"Try manually setting a character-encoding "
"before you open the file."
)
);
"before you open the file."
)
);
return
NULL
;
return
NULL
;
...
...
modules/codec/tarkin.c
View file @
4190fca5
...
@@ -160,7 +160,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -160,7 +160,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
tarkin_synthesis_headerin
(
&
p_sys
->
ti
,
&
p_sys
->
tc
,
&
oggpacket
)
if
(
tarkin_synthesis_headerin
(
&
p_sys
->
ti
,
&
p_sys
->
tc
,
&
oggpacket
)
<
0
)
<
0
)
{
{
msg_Err
(
p_dec
,
"
T
his bitstream does not contain Tarkin "
msg_Err
(
p_dec
,
"
t
his bitstream does not contain Tarkin "
"video data."
);
"video data."
);
block_Release
(
p_block
);
block_Release
(
p_block
);
return
NULL
;
return
NULL
;
...
...
modules/codec/theora.c
View file @
4190fca5
...
@@ -89,7 +89,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict );
...
@@ -89,7 +89,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict );
*****************************************************************************/
*****************************************************************************/
#define ENC_QUALITY_TEXT N_("Encoding quality")
#define ENC_QUALITY_TEXT N_("Encoding quality")
#define ENC_QUALITY_LONGTEXT N_( \
#define ENC_QUALITY_LONGTEXT N_( \
"Enfore a quality between 1 (low) and 10 (high), instead " \
"Enfor
c
e a quality between 1 (low) and 10 (high), instead " \
"of specifying a particular bitrate. This will produce a VBR stream." )
"of specifying a particular bitrate. This will produce a VBR stream." )
vlc_module_begin
();
vlc_module_begin
();
...
@@ -278,7 +278,7 @@ static int ProcessHeaders( decoder_t *p_dec )
...
@@ -278,7 +278,7 @@ static int ProcessHeaders( decoder_t *p_dec )
if
(
theora_decode_header
(
&
p_sys
->
ti
,
&
p_sys
->
tc
,
&
oggpacket
)
<
0
)
if
(
theora_decode_header
(
&
p_sys
->
ti
,
&
p_sys
->
tc
,
&
oggpacket
)
<
0
)
{
{
msg_Err
(
p_dec
,
"
T
his bitstream does not contain Theora video data"
);
msg_Err
(
p_dec
,
"
t
his bitstream does not contain Theora video data"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/codec/vorbis.c
View file @
4190fca5
...
@@ -309,7 +309,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -309,7 +309,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
p_sys
->
i_headers
==
0
&&
p_dec
->
fmt_in
.
i_extra
)
if
(
p_sys
->
i_headers
==
0
&&
p_dec
->
fmt_in
.
i_extra
)
{
{
/* Headers already available as extra data */
/* Headers already available as extra data */
msg_Dbg
(
p_dec
,
"
H
eaders already available as extra data"
);
msg_Dbg
(
p_dec
,
"
h
eaders already available as extra data"
);
p_sys
->
i_headers
=
3
;
p_sys
->
i_headers
=
3
;
}
}
else
if
(
oggpacket
.
bytes
&&
p_sys
->
i_headers
<
3
)
else
if
(
oggpacket
.
bytes
&&
p_sys
->
i_headers
<
3
)
...
@@ -664,14 +664,14 @@ static void ConfigureChannelOrder(int *pi_chan_table, int i_channels, uint32_t i
...
@@ -664,14 +664,14 @@ static void ConfigureChannelOrder(int *pi_chan_table, int i_channels, uint32_t i
if
(
b_decode
)
if
(
b_decode
)
aout_CheckChannelReorder
(
pi_channels_in
,
pi_channels_out
,
aout_CheckChannelReorder
(
pi_channels_in
,
pi_channels_out
,
i_channel_mask
&
AOUT_CHAN_PHYSMASK
,
i_channel_mask
&
AOUT_CHAN_PHYSMASK
,
i_channels
,
i_channels
,
pi_chan_table
);
pi_chan_table
);
else
else
aout_CheckChannelReorder
(
pi_channels_out
,
pi_channels_in
,
aout_CheckChannelReorder
(
pi_channels_out
,
pi_channels_in
,
i_channel_mask
&
AOUT_CHAN_PHYSMASK
,
i_channel_mask
&
AOUT_CHAN_PHYSMASK
,
i_channels
,
i_channels
,
pi_chan_table
);
pi_chan_table
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
modules/codec/x264.c
View file @
4190fca5
...
@@ -56,22 +56,22 @@ static void Close( vlc_object_t * );
...
@@ -56,22 +56,22 @@ static void Close( vlc_object_t * );
"If scenecuts appear within this interval, they are still encoded as " \
"If scenecuts appear within this interval, they are still encoded as " \
"I-frames, but do not start a new GOP." )
"I-frames, but do not start a new GOP." )
#define SCENE_TEXT N_("
How aggressively to insert extra I-frames (-1 to 100)"
)
#define SCENE_TEXT N_("
Extra I-Frames aggressivity"
)
#define SCENE_LONGTEXT N_( "Scene-cut detection. Controls how aggressively to " \
#define SCENE_LONGTEXT N_( "Scene-cut detection. Controls how aggressively to " \
"insert extra I-frames. With small values of scenecut, the codec often has " \
"insert extra I-frames. With small values of scenecut, the codec often has " \
"to force an I-frame when it would exceed keyint. Good values of scenecut " \
"to force an I-frame when it would exceed keyint. Good values of scenecut " \
"may find a better location for the I-frame. Large values use more I-frames " \
"may find a better location for the I-frame. Large values use more I-frames " \
"than necessary, thus wasting bits. -1 disables scene-cut detection, so " \
"than necessary, thus wasting bits. -1 disables scene-cut detection, so " \
"I-frames are be inserted only every other keyint frames, which probably " \
"I-frames are be inserted only every other keyint frames, which probably " \
"leads to ugly encoding artifacts." )
"leads to ugly encoding artifacts.
(1-100).
" )
#define BFRAMES_TEXT N_("Number of B-frames between I and P (1 to 16)")
#define BFRAMES_TEXT N_("Number of B-frames between I and P (1 to 16)")
#define BFRAMES_LONGTEXT N_( "Number of consecutive B-frames between I and " \
#define BFRAMES_LONGTEXT N_( "Number of consecutive B-frames between I and " \
"P-frames." )
"P-frames." )
#define B_ADAPT_TEXT N_("Adaptive B-frame decision")
#define B_ADAPT_TEXT N_("Adaptive B-frame decision")
#define B_ADAPT_LONGTEXT N_( "
If this is on,
the specified number of " \
#define B_ADAPT_LONGTEXT N_( "
Force
the specified number of " \
"consecutive B-frames
will always
be used, except possibly before an I-frame. " )
"consecutive B-frames
to
be used, except possibly before an I-frame. " )
#define B_BIAS_TEXT N_("Influences how often B-frames are used")
#define B_BIAS_TEXT N_("Influences how often B-frames are used")
#define B_BIAS_LONGTEXT N_( "Bias the choice to use B-frames. Positive values " \
#define B_BIAS_LONGTEXT N_( "Bias the choice to use B-frames. Positive values " \
...
@@ -93,7 +93,7 @@ static void Close( vlc_object_t * );
...
@@ -93,7 +93,7 @@ static void Close( vlc_object_t * );
"live-action source material. Some decoders are unable to deal with " \
"live-action source material. Some decoders are unable to deal with " \
"large frameref values." )
"large frameref values." )
#define NF_TEXT N_("
No loop filter (enabling turns off the deblocking loop filter)
")
#define NF_TEXT N_("
Loop filter
")
#define NF_LONGTEXT N_( "Deblocking loop filter (increases quality).")
#define NF_LONGTEXT N_( "Deblocking loop filter (increases quality).")
/* Ratecontrol */
/* Ratecontrol */
...
@@ -116,16 +116,16 @@ static void Close( vlc_object_t * );
...
@@ -116,16 +116,16 @@ static void Close( vlc_object_t * );
#define QPSTEP_TEXT N_("Set max QP step")
#define QPSTEP_TEXT N_("Set max QP step")
#define QPSTEP_LONGTEXT N_( "Max QP step between frames.")
#define QPSTEP_LONGTEXT N_( "Max QP step between frames.")
#define RATETOL_TEXT N_("A
llowed variance of average bitrat
e")
#define RATETOL_TEXT N_("A
verage bitrate toleranc
e")
#define RATETOL_LONGTEXT N_( "
Sets the a
llowed variance in average. " \
#define RATETOL_LONGTEXT N_( "
A
llowed variance in average. " \
"bitrate.")
"bitrate
(in kbits/s)
.")
#define VBV_MAXRATE_TEXT N_("Max local bitrate")
#define VBV_MAXRATE_TEXT N_("Max local bitrate")
#define VBV_MAXRATE_LONGTEXT N_( "Sets a maximum local bitrate in kbits/s.")
#define VBV_MAXRATE_LONGTEXT N_( "Sets a maximum local bitrate in kbits/s.")
#define VBV_BUFSIZE_TEXT N_("
Size of
VBV buffer")
#define VBV_BUFSIZE_TEXT N_("VBV buffer")
#define VBV_BUFSIZE_LONGTEXT N_( "
Sets an a
veraging period for the maximum " \
#define VBV_BUFSIZE_LONGTEXT N_( "
A
veraging period for the maximum " \
"local bitrate in kbits
/s
.")
"local bitrate in kbits.")
#define VBV_INIT_TEXT N_("Initial VBV buffer occupancy")
#define VBV_INIT_TEXT N_("Initial VBV buffer occupancy")
#define VBV_INIT_LONGTEXT N_( "Sets the initial buffer occupancy as a " \
#define VBV_INIT_LONGTEXT N_( "Sets the initial buffer occupancy as a " \
...
@@ -140,8 +140,8 @@ static void Close( vlc_object_t * );
...
@@ -140,8 +140,8 @@ static void Close( vlc_object_t * );
#define CHROMA_QP_OFFSET_TEXT N_("QP difference between chroma and luma")
#define CHROMA_QP_OFFSET_TEXT N_("QP difference between chroma and luma")
#define CHROMA_QP_OFFSET_LONGTEXT N_( "QP difference between chroma and luma.")
#define CHROMA_QP_OFFSET_LONGTEXT N_( "QP difference between chroma and luma.")
#define QCOMP_TEXT N_("QP curve compression
(0.0=CBR to 1.0=QCP)
")
#define QCOMP_TEXT N_("QP curve compression")
#define QCOMP_LONGTEXT N_( "QP curve compression.")
#define QCOMP_LONGTEXT N_( "QP curve compression.
(0.0=CBR to 1.0=QCP)
")
#define CPLXBLUR_TEXT N_("Reduce fluctuations in QP (before curve compression)")
#define CPLXBLUR_TEXT N_("Reduce fluctuations in QP (before curve compression)")
#define CPLXBLUR_LONGTEXT N_( "Temporally blur complexity.")
#define CPLXBLUR_LONGTEXT N_( "Temporally blur complexity.")
...
@@ -215,7 +215,7 @@ static void Close( vlc_object_t * );
...
@@ -215,7 +215,7 @@ static void Close( vlc_object_t * );
/* Input/Output */
/* Input/Output */
#define ASM_TEXT N_("CPU optimizations")
#define ASM_TEXT N_("CPU optimizations")
#define ASM_LONGTEXT N_( "CPU optimizations.")
#define ASM_LONGTEXT N_( "
Use assembler
CPU optimizations.")
#define PSNR_TEXT N_("PSNR calculation")
#define PSNR_TEXT N_("PSNR calculation")
#define PSNR_LONGTEXT N_( "This has no effect on actual encoding quality, "\
#define PSNR_LONGTEXT N_( "This has no effect on actual encoding quality, "\
...
@@ -539,13 +539,13 @@ static int Open ( vlc_object_t *p_this )
...
@@ -539,13 +539,13 @@ static int Open ( vlc_object_t *p_this )
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
i_qmin
=
val
.
i_int
;
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
i_qmin
=
val
.
i_int
;
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"qpmax"
,
&
val
);
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"qpmax"
,
&
val
);
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
i_qmax
=
val
.
i_int
;
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
i_qmax
=
val
.
i_int
;
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"qp"
,
&
val
);
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"qp"
,
&
val
);
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<=
51
)
{
{
if
(
i_qmin
>
val
.
i_int
)
i_qmin
=
val
.
i_int
;
if
(
i_qmin
>
val
.
i_int
)
i_qmin
=
val
.
i_int
;
if
(
i_qmax
<
val
.
i_int
)
i_qmax
=
val
.
i_int
;
if
(
i_qmax
<
val
.
i_int
)
i_qmax
=
val
.
i_int
;
#if X264_BUILD >= 0x000a
#if X264_BUILD >= 0x000a
p_sys
->
param
.
rc
.
i_qp_constant
=
val
.
i_int
;
p_sys
->
param
.
rc
.
i_qp_constant
=
val
.
i_int
;
p_sys
->
param
.
rc
.
i_qp_min
=
i_qmin
;
p_sys
->
param
.
rc
.
i_qp_min
=
i_qmin
;
...
@@ -570,7 +570,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -570,7 +570,7 @@ static int Open ( vlc_object_t *p_this )
on average bitrate. */
on average bitrate. */
if
(
!
val
.
i_int
)
if
(
!
val
.
i_int
)
p_sys
->
param
.
rc
.
i_vbv_buffer_size
=
p_sys
->
param
.
rc
.
i_bitrate
*
2
;
p_sys
->
param
.
rc
.
i_vbv_buffer_size
=
p_sys
->
param
.
rc
.
i_bitrate
*
2
;
/* max bitrate = average bitrate -> CBR */
/* max bitrate = average bitrate -> CBR */
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"vbv-maxrate"
,
&
val
);
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"vbv-maxrate"
,
&
val
);
p_sys
->
param
.
rc
.
i_vbv_max_bitrate
=
val
.
i_int
;
p_sys
->
param
.
rc
.
i_vbv_max_bitrate
=
val
.
i_int
;
...
@@ -582,7 +582,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -582,7 +582,7 @@ static int Open ( vlc_object_t *p_this )
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"cabac"
,
&
val
);
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"cabac"
,
&
val
);
p_sys
->
param
.
b_cabac
=
val
.
b_bool
;
p_sys
->
param
.
b_cabac
=
val
.
b_bool
;
/* disable deblocking when nf (no loop filter) is enabled */
/* disable deblocking when nf (no loop filter) is enabled */
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"nf"
,
&
val
);
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"nf"
,
&
val
);
p_sys
->
param
.
b_deblocking_filter
=
!
val
.
b_bool
;
p_sys
->
param
.
b_deblocking_filter
=
!
val
.
b_bool
;
...
...
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