Load 8bit uint8_t as uint32_t?

后端 未结 5 938
-上瘾入骨i
-上瘾入骨i 2021-01-01 03:26

my image processing project works with grayscale images. I have ARM Cortex-A8 processor platform. I want to make use of the NEON.

I have a grayscale image( consider

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 03:54

    There is not instruction that can load your 4 8bit value into 4 32bit register.

    you must load them and then use a vshl twice. because neon can't use 32 registers you'll have to work on 8 pixels (and not 4)

    You can use only 16bits register. it should be enough...

提交回复
热议问题