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
394e2815
Commit
394e2815
authored
Dec 28, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/PcmDither: inline Dither24To16() and Dither32To16()
parent
f3bbe4bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
PcmDither.cxx
src/pcm/PcmDither.cxx
+2
-2
PcmFormat.cxx
src/pcm/PcmFormat.cxx
+2
-1
test_pcm_dither.cxx
test/test_pcm_dither.cxx
+1
-1
No files found.
src/pcm/PcmDither.cxx
View file @
394e2815
...
...
@@ -85,7 +85,7 @@ PcmDither::DitherConvert(typename DT::pointer_type dest,
*
dest
++
=
DitherConvert
<
ST
,
DT
>
(
*
src
++
);
}
void
inline
void
PcmDither
::
Dither24To16
(
int16_t
*
dest
,
const
int32_t
*
src
,
const
int32_t
*
src_end
)
{
...
...
@@ -94,7 +94,7 @@ PcmDither::Dither24To16(int16_t *dest, const int32_t *src,
DitherConvert
<
ST
,
DT
>
(
dest
,
src
,
src_end
);
}
void
inline
void
PcmDither
::
Dither32To16
(
int16_t
*
dest
,
const
int32_t
*
src
,
const
int32_t
*
src_end
)
{
...
...
src/pcm/PcmFormat.cxx
View file @
394e2815
...
...
@@ -19,11 +19,12 @@
#include "config.h"
#include "PcmFormat.hxx"
#include "PcmDither.hxx"
#include "PcmBuffer.hxx"
#include "PcmUtils.hxx"
#include "Traits.hxx"
#include "PcmDither.cxx" // including the .cxx file to get inlined templates
static
void
pcm_convert_8_to_16
(
int16_t
*
out
,
const
int8_t
*
in
,
const
int8_t
*
in_end
)
{
...
...
test/test_pcm_dither.cxx
View file @
394e2815
...
...
@@ -19,7 +19,7 @@
#include "test_pcm_all.hxx"
#include "test_pcm_util.hxx"
#include "pcm/PcmDither.
h
xx"
#include "pcm/PcmDither.
c
xx"
void
PcmDitherTest
::
TestDither24
()
...
...
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