Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Added new reformat for F16, fix F16 RGBA1010102
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Apr 13, 2024
1 parent 5e4b4eb commit b7fb312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/sparkyuv.h
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,9 @@ CHANNEL_XXX_REFORMAT_F16_TO_U16_DECLARATION_H(Channel16, Channel, uint16_t)
#undef CHANNEL_XXX_REFORMAT_F16_TO_U16_DECLARATION_H

#define CHANNEL_REFORMAT_DECLARATION_F16_H(srcPixelType, dstPixelType) \
void srcPixelType##F16To##dstPixelType##F16HWY(const uint16_t * src, const uint32_t srcStride,\
uint16_t * dst, const uint32_t dstStride,\
const uint32_t width, const uint32_t height);
void srcPixelType##F16To##dstPixelType##F16(const uint16_t * src, const uint32_t srcStride,\
uint16_t * dst, const uint32_t dstStride,\
const uint32_t width, const uint32_t height);

CHANNEL_REFORMAT_DECLARATION_F16_H(RGB, RGBA)
CHANNEL_REFORMAT_DECLARATION_F16_H(BGR, BGRA)
Expand Down
2 changes: 1 addition & 1 deletion src/ChannelsReformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ CHANNEL_XXX_REFORMAT_DECLARATION_F16(ARGB, BGRA)
#undef CHANNEL_XXX_REFORMAT_DECLARATION_F16

#define CHANNEL_REFORMAT_DECLARATION_F16_E(srcPixelType, dstPixelType) \
void srcPixelType##F16To##dstPixelType##F16HWY(const uint16_t *SPARKYUV_RESTRICT src, const uint32_t srcStride,\
void srcPixelType##F16To##dstPixelType##F16(const uint16_t *SPARKYUV_RESTRICT src, const uint32_t srcStride,\
uint16_t *SPARKYUV_RESTRICT dst, const uint32_t dstStride,\
const uint32_t width, const uint32_t height) {\
HWY_DYNAMIC_DISPATCH(srcPixelType##F16To##dstPixelType##F16HWY)(src, srcStride, dst, dstStride,\
Expand Down

0 comments on commit b7fb312

Please sign in to comment.