Passed
Push — master ( 19921a...7df886 )
by Rafael S.
02:41
created

index.d.ts   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 20
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 0
1
// Type definitions for bitdepth 8.0
2
// Project: https://github.com/rochars/bitdepth
3
// Definitions by: Rafael S. Rocha <https://github.com/rochars>
4
// Definitions: https://github.com/rochars/bitdepth
5
6
/**
7
 * Change the bit depth of the samples.
8
 * @param {!TypedArray} input The samples.
9
 * @param {string} original The original bit depth of the data.
10
 *      One of "8" ... "53", "32f", "64"
11
 * @param {string} target The desired bit depth for the data.
12
 *      One of "8" ... "53", "32f", "64"
13
 * @param {!TypedArray} output The output array.
14
 */
15
export function changeBitDepth(
16
	input: ArrayLike<number>,
17
	original: string,
18
	target: string,
19
	output: ArrayLike<number>): void;
20