Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
d8453b75
Commit
d8453b75
authored
May 20, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use longer frames (23ms -> 46ms).
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
597fc3fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
wmcommon.cc
src/wmcommon.cc
+1
-1
wmcommon.hh
src/wmcommon.hh
+5
-5
No files found.
src/wmcommon.cc
View file @
d8453b75
...
...
@@ -19,7 +19,7 @@
#include "fft.hh"
#include "convcode.hh"
int
Params
::
frames_per_bit
=
2
;
int
Params
::
frames_per_bit
=
1
;
double
Params
::
water_delta
=
0.01
;
bool
Params
::
mix
=
true
;
bool
Params
::
hard
=
false
;
// hard decode bits? (soft decoding is better)
...
...
src/wmcommon.hh
View file @
d8453b75
...
...
@@ -31,11 +31,11 @@ enum class Format { AUTO = 1, RAW = 2 };
class
Params
{
public
:
static
constexpr
size_t
frame_size
=
1024
;
static
constexpr
size_t
frame_size
=
2048
;
static
int
frames_per_bit
;
static
constexpr
size_t
bands_per_frame
=
30
;
static
constexpr
int
max_band
=
1
00
;
static
constexpr
int
min_band
=
2
0
;
static
constexpr
int
max_band
=
2
00
;
static
constexpr
int
min_band
=
4
0
;
static
double
water_delta
;
static
bool
mix
;
...
...
@@ -46,12 +46,12 @@ public:
static
constexpr
size_t
payload_size
=
128
;
// number of payload bits for the watermark
static
constexpr
int
sync_bits
=
6
;
static
constexpr
int
sync_frames_per_bit
=
85
;
static
constexpr
int
sync_frames_per_bit
=
42
;
static
constexpr
int
sync_search_step
=
256
;
static
constexpr
int
sync_search_fine
=
8
;
static
constexpr
double
sync_threshold2
=
0.7
;
// minimum refined quality
static
constexpr
size_t
frames_pad_start
=
250
;
// padding at start, in case track starts with silence
static
constexpr
size_t
frames_pad_start
=
125
;
// padding at start, in case track starts with silence
static
constexpr
int
mark_sample_rate
=
44100
;
// watermark generation and detection sample rate
static
constexpr
double
limiter_block_size_ms
=
1000
;
...
...
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