Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2cd2d8b3
Commit
2cd2d8b3
authored
May 20, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added an option to disable the dynamic range compression.
parent
287f188a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
ChangeLog
ChangeLog
+2
-0
plugins/a52/a52.c
plugins/a52/a52.c
+16
-1
plugins/a52/a52.h
plugins/a52/a52.h
+2
-1
No files found.
ChangeLog
View file @
2cd2d8b3
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
HEAD
HEAD
*
./
plugins
/
a52
/
a52
.
c
:
added
an
option
to
disable
the
dynamic
range
compression
.
*
./
Makefile
.
opts
.
in
:
removed
configuration
stuff
which
does
not
need
to
*
./
Makefile
.
opts
.
in
:
removed
configuration
stuff
which
does
not
need
to
rebuild
anything
to
Makefile
.
config
,
so
that
editing
it
will
not
cause
rebuild
anything
to
Makefile
.
config
,
so
that
editing
it
will
not
cause
a
complete
rebuild
.
a
complete
rebuild
.
...
...
plugins/a52/a52.c
View file @
2cd2d8b3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (http://liba52.sf.net/).
* (http://liba52.sf.net/).
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: a52.c,v 1.1
0 2002/05/18 17:47:46 sam
Exp $
* $Id: a52.c,v 1.1
1 2002/05/20 15:03:32 gbazin
Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -72,7 +72,17 @@ void _M( adec_getfunctions )( function_list_t * p_function_list )
...
@@ -72,7 +72,17 @@ void _M( adec_getfunctions )( function_list_t * p_function_list )
/*****************************************************************************
/*****************************************************************************
* Build configuration structure.
* Build configuration structure.
*****************************************************************************/
*****************************************************************************/
#define DYNRNG_TEXT N_("disable A/52 dynamic range compression")
#define DYNRNG_LONGTEXT N_( \
"Dynamic range compression makes the loud sounds softer, and the soft " \
"sounds louder, so you can more easily listen to the stream in a noisy " \
"environment without disturbing anyone.\nIf you disable the dynamic range"\
" compression the playback will be more adapted to a movie theater or a " \
"listening room.")
MODULE_CONFIG_START
MODULE_CONFIG_START
ADD_CATEGORY_HINT
(
N_
(
"Miscellaneous"
),
NULL
)
ADD_BOOL
(
"a52-no-dynrng"
,
NULL
,
DYNRNG_TEXT
,
DYNRNG_LONGTEXT
)
MODULE_CONFIG_STOP
MODULE_CONFIG_STOP
MODULE_INIT_START
MODULE_INIT_START
...
@@ -198,6 +208,8 @@ static int InitThread( a52_adec_thread_t * p_a52_adec )
...
@@ -198,6 +208,8 @@ static int InitThread( a52_adec_thread_t * p_a52_adec )
return
-
1
;
return
-
1
;
}
}
p_a52_adec
->
b_dynrng
=
!
config_GetIntVariable
(
"a52-no-dynrng"
);
/* Init the BitStream */
/* Init the BitStream */
InitBitstream
(
&
p_a52_adec
->
bit_stream
,
InitBitstream
(
&
p_a52_adec
->
bit_stream
,
p_a52_adec
->
p_fifo
,
p_a52_adec
->
p_fifo
,
...
@@ -272,6 +284,9 @@ static int DecodeFrame( a52_adec_thread_t * p_a52_adec )
...
@@ -272,6 +284,9 @@ static int DecodeFrame( a52_adec_thread_t * p_a52_adec )
a52_frame
(
p_a52_adec
->
p_a52_state
,
p_a52_adec
->
p_frame_buffer
,
a52_frame
(
p_a52_adec
->
p_a52_state
,
p_a52_adec
->
p_frame_buffer
,
&
p_a52_adec
->
flags
,
&
sample_level
,
384
);
&
p_a52_adec
->
flags
,
&
sample_level
,
384
);
if
(
!
p_a52_adec
->
b_dynrng
)
a52_dynrng
(
p_a52_adec
->
p_a52_state
,
NULL
,
NULL
);
for
(
i
=
0
;
i
<
6
;
i
++
)
for
(
i
=
0
;
i
<
6
;
i
++
)
{
{
if
(
a52_block
(
p_a52_adec
->
p_a52_state
)
)
if
(
a52_block
(
p_a52_adec
->
p_a52_state
)
)
...
...
plugins/a52/a52.h
View file @
2cd2d8b3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (http://liba52.sf.net/).
* (http://liba52.sf.net/).
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: a52.h,v 1.
2 2002/03/12 20:39:50
gbazin Exp $
* $Id: a52.h,v 1.
3 2002/05/20 15:03:33
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -36,6 +36,7 @@ typedef struct a52_adec_thread_s
...
@@ -36,6 +36,7 @@ typedef struct a52_adec_thread_s
int
flags
;
int
flags
;
int
sample_rate
;
int
sample_rate
;
int
bit_rate
;
int
bit_rate
;
boolean_t
b_dynrng
;
/* The bit stream structure handles the PES stream at the bit level */
/* The bit stream structure handles the PES stream at the bit level */
bit_stream_t
bit_stream
;
bit_stream_t
bit_stream
;
...
...
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