Sign in to follow this  

ARM Neon clamping

This topic is 2341 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys,


I just started playing around with ARM NEON, and I'm trying to do some simple image processing with it. I was wondering if someone of you knows a way to perform value clamping using NEON instructions.
This is my situation: I have an int32x4_t variable which stores the ARGB components of a single pixel, and I'd like to clamp each component so that it fits to the 0-255 range.
Is it possible somehow to do this operation in parallel using NEON instructions ?

Gabriele

Share this post


Link to post
Share on other sites
[quote name='gabrielefarina' timestamp='1310818132' post='4835963']
Hi guys,


I just started playing around with ARM NEON, and I'm trying to do some simple image processing with it. I was wondering if someone of you knows a way to perform value clamping using NEON instructions.
This is my situation: I have an int32x4_t variable which stores the ARGB components of a single pixel, and I'd like to clamp each component so that it fits to the 0-255 range.
Is it possible somehow to do this operation in parallel using NEON instructions ?

Gabriele
[/quote]

Hi,

[size="2"]Saturation. A 'Q' instruction in the final stage of calculation,where the wider value is converted to 8-bit. Probably VQSHRUN.[/size]

See: [url="http://blogs.arm.com/software-enablement/277-coding-for-neon-part-4-shifting-left-and-right/"]Coding for Neon part 4 - Shifting left and right[/url]

Share this post


Link to post
Share on other sites

This topic is 2341 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this