Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Stefan Strogin
flac
Commits
7446e186
Commit
7446e186
authored
Jan 26, 2005
by
Josh Coalson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ANSI C violation w.r.t. const arrays
parent
f30426a7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
src/libFLAC/ia32/fixed_asm.nasm
src/libFLAC/ia32/fixed_asm.nasm
+1
-1
src/libFLAC/ia32/lpc_asm.nasm
src/libFLAC/ia32/lpc_asm.nasm
+1
-1
src/libFLAC/include/private/lpc.h
src/libFLAC/include/private/lpc.h
+4
-4
src/libFLAC/lpc.c
src/libFLAC/lpc.c
+2
-2
src/libFLAC/stream_encoder.c
src/libFLAC/stream_encoder.c
+3
-3
No files found.
src/libFLAC/ia32/fixed_asm.nasm
View file @
7446e186
...
...
@@ -38,7 +38,7 @@ cglobal FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov
; **********************************************************************
;
; unsigned FLAC__fixed_compute_best_predictor(const FLAC__int32
data[]
, unsigned data_len, FLAC__float residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1])
; unsigned FLAC__fixed_compute_best_predictor(const FLAC__int32
*data
, unsigned data_len, FLAC__float residual_bits_per_sample[FLAC__MAX_FIXED_ORDER+1])
; {
; FLAC__int32 last_error_0 = data[-1];
; FLAC__int32 last_error_1 = data[-1] - data[-2];
...
...
src/libFLAC/ia32/lpc_asm.nasm
View file @
7446e186
...
...
@@ -736,7 +736,7 @@ cident FLAC__lpc_compute_autocorrelation_asm_ia32_3dnow
pop ebp
ret
;void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32
data[]
, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
;void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32
*data
, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
;
; for(i = 0; i < data_len; i++) {
; sum = 0;
...
...
src/libFLAC/include/private/lpc.h
View file @
7446e186
...
...
@@ -121,13 +121,13 @@ int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order,
* IN lp_quantization quantization of LP coefficients in bits
* OUT residual[0,data_len-1] residual signal
*/
void
FLAC__lpc_compute_residual_from_qlp_coefficients
(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
FLAC__lpc_compute_residual_from_qlp_coefficients_wide
(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
FLAC__lpc_compute_residual_from_qlp_coefficients
(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
FLAC__lpc_compute_residual_from_qlp_coefficients_wide
(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
#ifndef FLAC__NO_ASM
# ifdef FLAC__CPU_IA32
# ifdef FLAC__HAS_NASM
void
FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32
(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx
(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32
(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
FLAC__lpc_compute_residual_from_qlp_coefficients_asm_ia32_mmx
(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
# endif
# endif
#endif
...
...
src/libFLAC/lpc.c
View file @
7446e186
...
...
@@ -207,7 +207,7 @@ redo_it:
return
0
;
}
void
FLAC__lpc_compute_residual_from_qlp_coefficients
(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[])
void
FLAC__lpc_compute_residual_from_qlp_coefficients
(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[])
{
#ifdef FLAC__OVERFLOW_DETECT
FLAC__int64
sumo
;
...
...
@@ -256,7 +256,7 @@ void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32 data[],
*/
}
void
FLAC__lpc_compute_residual_from_qlp_coefficients_wide
(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[])
void
FLAC__lpc_compute_residual_from_qlp_coefficients_wide
(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[])
{
unsigned
i
,
j
;
FLAC__int64
sum
;
...
...
src/libFLAC/stream_encoder.c
View file @
7446e186
...
...
@@ -358,9 +358,9 @@ typedef struct FLAC__StreamEncoderPrivate {
#endif
#ifndef FLAC__INTEGER_ONLY_LIBRARY
void
(
*
local_lpc_compute_autocorrelation
)(
const
FLAC__real
data
[],
unsigned
data_len
,
unsigned
lag
,
FLAC__real
autoc
[]);
void
(
*
local_lpc_compute_residual_from_qlp_coefficients
)(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
(
*
local_lpc_compute_residual_from_qlp_coefficients_64bit
)(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
(
*
local_lpc_compute_residual_from_qlp_coefficients_16bit
)(
const
FLAC__int32
data
[]
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
(
*
local_lpc_compute_residual_from_qlp_coefficients
)(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
(
*
local_lpc_compute_residual_from_qlp_coefficients_64bit
)(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
void
(
*
local_lpc_compute_residual_from_qlp_coefficients_16bit
)(
const
FLAC__int32
*
data
,
unsigned
data_len
,
const
FLAC__int32
qlp_coeff
[],
unsigned
order
,
int
lp_quantization
,
FLAC__int32
residual
[]);
#endif
FLAC__bool
use_wide_by_block
;
/* use slow 64-bit versions of some functions because of the block size */
FLAC__bool
use_wide_by_partition
;
/* use slow 64-bit versions of some functions because of the min partition order and blocksize */
...
...
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