Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
431c80f4
Commit
431c80f4
authored
Dec 24, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Dither: add API documentation
parent
9ac18c39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
PcmDither.hxx
src/pcm/PcmDither.hxx
+18
-0
No files found.
src/pcm/PcmDither.hxx
View file @
431c80f4
...
...
@@ -39,9 +39,27 @@ public:
const
int32_t
*
src_end
);
private
:
/**
* Shift the given sample by #scale_bits to the right, and
* apply dithering.
*
* @param T the input sample type
* @param MIN the minimum input sample value
* @param MAX the maximum input sample value
* @param scale_bits the number of bits to be discarded
* @param sample the input sample value
*/
template
<
typename
T
,
T
MIN
,
T
MAX
,
unsigned
scale_bits
>
T
Dither
(
T
sample
);
/**
* Convert the given sample from one sample format to another,
* discarding bits.
*
* @param ST the input #SampleTraits class
* @param ST the output #SampleTraits class
* @param sample the input sample value
*/
template
<
typename
ST
,
typename
DT
>
typename
DT
::
value_type
DitherConvert
(
typename
ST
::
value_type
sample
);
...
...
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