Coder Social home page Coder Social logo

Comments (11)

jniemann66 avatar jniemann66 commented on July 28, 2024

I have replicated this when SIMD vector FIR filter is deactivated in favor of the scalar FIR filter (which is currently the case for Android),
It occurs when adding a new converter stage to the vector of converters using emplace_back.
Not sure why just yet.

from resampler.

jniemann66 avatar jniemann66 commented on July 28, 2024

Ok problem was to do with allocating / deallocating kernel phases in the polyphase FIR filter.
With SSE2, there are 4 kernel phases
With AVX, there are 8 kernel phases
but with no SSE2/AVX vectorization (ie scalar calculations) , there should only be one kernel phase.
to cut a long story short - needed to set numVecElements to 1 when in scalar mode.
Just tidying up - should have a commit soon. Sorry about that - it also explains a long-standing bug I have had with the 32-bit / no-SSE version. duh !

from resampler.

mgood7123 avatar mgood7123 commented on July 28, 2024

ok, just fixed up my repo and synced with yours (was a bit difficult to figure out how to do correctly as I was missing the latest commit from your repo even though I pulled from upstream), i may need to revert and repull to get squash the 3 "merge with master and fix empty cout value with no message" commits into a single commit however i am not comfortable with doing that as i dont want to accidentally mess up my repo's commit history

https://github.com/jniemann66/ReSampler/pull/16/files

(literally just replace https://github.com/jniemann66/ReSampler/blob/master/ReSampler.cpp#L180

			if (ci.outputFormat) {
#ifdef COMPILING_ON_ANDROID
				ANDROID_OUT("Changing output bit format to %s", ANDROID_STDTOC(ci.outBitFormat));
#else
				std::cout << ci.outBitFormat << std::endl;
#endif
			}
			else { // user-supplied bit format not valid; try choosing appropriate format
				determineBestBitFormat(ci.outBitFormat, ci.inputFilename, ci.outputFilename);
				ci.outputFormat = determineOutputFormat(outFileExt, ci.outBitFormat);
				if (ci.outputFormat) {
#ifdef COMPILING_ON_ANDROID
					ANDROID_OUT("Changing output bit format to %s", ANDROID_STDTOC(ci.outBitFormat));
#else
					std::cout << "Changing output bit format to " << ci.outBitFormat << std::endl;
#endif         
				}

with

			if (ci.outputFormat) {
				std::cout << "Changing output bit format to " << ci.outBitFormat << std::endl;
			}
			else { // user-supplied bit format not valid; try choosing appropriate format
				determineBestBitFormat(ci.outBitFormat, ci.inputFilename, ci.outputFilename);
				ci.outputFormat = determineOutputFormat(outFileExt, ci.outBitFormat);
				if (ci.outputFormat) {
					std::cout << "Changing output bit format to " << ci.outBitFormat << std::endl;
				}

)

from resampler.

jniemann66 avatar jniemann66 commented on July 28, 2024

I just updated master - should be good now :-)

from resampler.

mgood7123 avatar mgood7123 commented on July 28, 2024

ok, so it is ready to test? or do you still have more work to do before i can pull and test?

from resampler.

jniemann66 avatar jniemann66 commented on July 28, 2024

Yes - you should be able to test it now.
(I still need to do the raw file input stuff, though ... )

from resampler.

mgood7123 avatar mgood7123 commented on July 28, 2024

imma just refork this repo lol

from resampler.

jniemann66 avatar jniemann66 commented on July 28, 2024

Sorry about the refork

from resampler.

mgood7123 avatar mgood7123 commented on July 28, 2024

its ok, needed to clean up my commits anyway lol

from resampler.

mgood7123 avatar mgood7123 commented on July 28, 2024

and im building now

from resampler.

mgood7123 avatar mgood7123 commented on July 28, 2024

and it sucesfully builds (with 3 warnings)

In file included from C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler\ReSampler.cpp:75:
C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler/csv.h:128:17: warning: private field 'mode' is not used [-Wunused-private-field]
    CsvOpenMode mode;
                ^
In file included from C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler\ReSampler.cpp:80:
C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler/dsf.h:245:11: warning: private field 'mode' is not used [-Wunused-private-field]
        OpenMode mode;
                 ^
In file included from C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler\ReSampler.cpp:81:
C:\Users\konek\StudioProjects\libmedia\app\src\main\java\libmedia\resampler\ReSampler/dff.h:279:14: warning: private field 'mode' is not used [-Wunused-private-field]
        dffOpenMode mode;
                    ^
5 warnings generated. (2 are from #warning and warning: field 'LOG_PRIORITY' will be initialized after field 'LOG_TAG')

from resampler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.