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
2073a2c1
Commit
2073a2c1
authored
Jan 14, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Dsd2Pcm: remove unused "lsbf" flag
parent
3f310434
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
Dsd2Pcm.cxx
src/pcm/Dsd2Pcm.cxx
+0
-2
Dsd2Pcm.hxx
src/pcm/Dsd2Pcm.hxx
+0
-2
PcmDsd.cxx
src/pcm/PcmDsd.cxx
+1
-1
No files found.
src/pcm/Dsd2Pcm.cxx
View file @
2073a2c1
...
...
@@ -193,14 +193,12 @@ Dsd2Pcm::TranslateSample(size_t ffp, uint8_t src) noexcept
void
Dsd2Pcm
::
Translate
(
size_t
samples
,
const
uint8_t
*
gcc_restrict
src
,
ptrdiff_t
src_stride
,
bool
lsbf
,
float
*
dst
,
ptrdiff_t
dst_stride
)
noexcept
{
size_t
ffp
=
fifopos
;
while
(
samples
--
>
0
)
{
uint8_t
bite1
=
*
src
;
src
+=
src_stride
;
if
(
lsbf
)
bite1
=
bit_reverse
(
bite1
);
*
dst
=
TranslateSample
(
ffp
,
bite1
);
dst
+=
dst_stride
;
ffp
=
(
ffp
+
1
)
&
FIFOMASK
;
...
...
src/pcm/Dsd2Pcm.hxx
View file @
2073a2c1
...
...
@@ -66,13 +66,11 @@ public:
* @param samples -- number of octets/samples to "translate"
* @param src -- pointer to first octet (input)
* @param src_stride -- src pointer increment
* @param lsbitfirst -- bitorder, 0=msb first, 1=lsbfirst
* @param dst -- pointer to first float (output)
* @param dst_stride -- dst pointer increment
*/
void
Translate
(
size_t
samples
,
const
uint8_t
*
src
,
ptrdiff_t
src_stride
,
bool
lsbitfirst
,
float
*
dst
,
ptrdiff_t
dst_stride
)
noexcept
;
private
:
...
...
src/pcm/PcmDsd.cxx
View file @
2073a2c1
...
...
@@ -61,7 +61,7 @@ PcmDsd::ToFloat(unsigned channels, ConstBuffer<uint8_t> src) noexcept
dsd2pcm
[
c
]
->
Translate
(
num_frames
,
src
.
data
+
c
,
channels
,
false
,
dest
+
c
,
channels
);
dest
+
c
,
channels
);
}
return
{
dest
,
num_samples
};
...
...
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