Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Vorbis
Commits
d0325755
Commit
d0325755
authored
Aug 20, 2007
by
erikd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move struct and func definition to codec_internal.h.
svn path=/trunk/vorbis/; revision=13575
parent
b013fcf7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
28 deletions
+31
-28
lib/codec_internal.h
lib/codec_internal.h
+31
-0
lib/floor1.c
lib/floor1.c
+0
-18
lib/mapping0.c
lib/mapping0.c
+0
-10
No files found.
lib/codec_internal.h
View file @
d0325755
...
...
@@ -133,5 +133,36 @@ typedef struct codec_setup_info {
extern
vorbis_look_psy_global
*
_vp_global_look
(
vorbis_info
*
vi
);
extern
void
_vp_global_free
(
vorbis_look_psy_global
*
look
);
typedef
struct
{
int
sorted_index
[
VIF_POSIT
+
2
];
int
forward_index
[
VIF_POSIT
+
2
];
int
reverse_index
[
VIF_POSIT
+
2
];
int
hineighbor
[
VIF_POSIT
];
int
loneighbor
[
VIF_POSIT
];
int
posts
;
int
n
;
int
quant_q
;
vorbis_info_floor1
*
vi
;
long
phrasebits
;
long
postbits
;
long
frames
;
}
vorbis_look_floor1
;
extern
int
*
floor1_fit
(
vorbis_block
*
vb
,
vorbis_look_floor1
*
look
,
const
float
*
logmdct
,
/* in */
const
float
*
logmask
);
extern
int
*
floor1_interpolate_fit
(
vorbis_block
*
vb
,
vorbis_look_floor1
*
look
,
int
*
A
,
int
*
B
,
int
del
);
extern
int
floor1_encode
(
oggpack_buffer
*
opb
,
vorbis_block
*
vb
,
vorbis_look_floor1
*
look
,
int
*
post
,
int
*
ilogmask
);
#endif
lib/floor1.c
View file @
d0325755
...
...
@@ -30,24 +30,6 @@
#define floor1_rangedB 140
/* floor 1 fixed at -140dB to 0dB range */
typedef
struct
{
int
sorted_index
[
VIF_POSIT
+
2
];
int
forward_index
[
VIF_POSIT
+
2
];
int
reverse_index
[
VIF_POSIT
+
2
];
int
hineighbor
[
VIF_POSIT
];
int
loneighbor
[
VIF_POSIT
];
int
posts
;
int
n
;
int
quant_q
;
vorbis_info_floor1
*
vi
;
long
phrasebits
;
long
postbits
;
long
frames
;
}
vorbis_look_floor1
;
typedef
struct
lsfit_acc
{
long
x0
;
long
x1
;
...
...
lib/mapping0.c
View file @
d0325755
...
...
@@ -229,16 +229,6 @@ static float FLOOR1_fromdB_LOOKUP[256]={
#endif
extern
int
*
floor1_fit
(
vorbis_block
*
vb
,
vorbis_look_floor
*
look
,
const
float
*
logmdct
,
/* in */
const
float
*
logmask
);
extern
int
*
floor1_interpolate_fit
(
vorbis_block
*
vb
,
vorbis_look_floor
*
look
,
int
*
A
,
int
*
B
,
int
del
);
extern
int
floor1_encode
(
oggpack_buffer
*
opb
,
vorbis_block
*
vb
,
vorbis_look_floor
*
look
,
int
*
post
,
int
*
ilogmask
);
static
int
mapping0_forward
(
vorbis_block
*
vb
){
vorbis_dsp_state
*
vd
=
vb
->
vd
;
...
...
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