diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-08-26 20:02:21 +0200 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-10-06 12:38:11 +0200 |
commit | f824b042c77c9fa9e134f9cf0c44a12276b9ad1b (patch) | |
tree | c5f481a26dce72a0cb82473ce1f9ccb4b9713b76 /src/atrac/at3p/at3p.cpp | |
parent | 3b4a71de44837ca67cf4b8bfd727e431321ad16d (diff) | |
download | atracdenc-f824b042c77c9fa9e134f9cf0c44a12276b9ad1b.tar.gz |
[AT3P] GHA development:
* Multidimensional gha, rework residual check
* Possibility to look into the next frame during GHA
* Possibility to pass envelope into bitstream
* Tool to create oma file from tsv gha description (to test envelope processing)
Diffstat (limited to 'src/atrac/at3p/at3p.cpp')
-rw-r--r-- | src/atrac/at3p/at3p.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/atrac/at3p/at3p.cpp b/src/atrac/at3p/at3p.cpp index 62e51ae..110f522 100644 --- a/src/atrac/at3p/at3p.cpp +++ b/src/atrac/at3p/at3p.cpp @@ -88,10 +88,13 @@ EncodeFrame(const TFloat* data, int channels) assert(needMore == 0); - const float* b1 = ChannelCtx[0].CurBuf; - const float* b2 = (channels == 2) ? ChannelCtx[1].CurBuf : nullptr; + const float* b1Cur = ChannelCtx[0].CurBuf; + const float* b1Next = ChannelCtx[0].NextBuf; + const float* b2Cur = (channels == 2) ? ChannelCtx[1].CurBuf : nullptr; + const float* b2Next = (channels == 2) ? ChannelCtx[1].NextBuf : nullptr; - auto tonalBlock = GhaProcessor->DoAnalize(b1, b2); + + auto tonalBlock = GhaProcessor->DoAnalize({b1Cur, b1Next}, {b2Cur, b2Next}); BitStream.WriteFrame(channels, tonalBlock); |