[codec,progressive] use add_16s_inplace

This commit is contained in:
akallabeth
2024-06-07 11:56:44 +02:00
parent cd72043811
commit dee9019e7c
4 changed files with 114 additions and 90 deletions

View File

@@ -102,8 +102,8 @@ typedef pstatus_t (*__alphaComp_argb_t)(const BYTE* WINPR_RESTRICT pSrc1, UINT32
typedef pstatus_t (*__add_16s_t)(const INT16* WINPR_RESTRICT pSrc1,
const INT16* WINPR_RESTRICT pSrc2, INT16* WINPR_RESTRICT pDst,
UINT32 len);
typedef pstatus_t (*__add_16s_inplace_t)(INT16* WINPR_RESTRICT WINPR_RESTRICT pSrcDst,
const INT16* WINPR_RESTRICT pSrc, UINT32 len);
typedef pstatus_t (*__add_16s_inplace_t)(INT16* WINPR_RESTRICT pSrcDst1,
INT16* WINPR_RESTRICT pSrcDst2, UINT32 len);
typedef pstatus_t (*__lShiftC_16s_t)(const INT16* pSrc, UINT32 val, INT16* pSrcDst, UINT32 len);
typedef pstatus_t (*__lShiftC_16u_t)(const UINT16* pSrc, UINT32 val, UINT16* pSrcDst, UINT32 len);
typedef pstatus_t (*__rShiftC_16s_t)(const INT16* pSrc, UINT32 val, INT16* pSrcDst, UINT32 len);
@@ -185,7 +185,6 @@ typedef struct
__zero_t zero; /* bzero or faster */
/* Arithmetic functions */
__add_16s_t add_16s;
__add_16s_inplace_t add_16s_inplace;
/* And/or */
__andC_32u_t andC_32u;
__orC_32u_t orC_32u;
@@ -217,6 +216,11 @@ typedef struct
/* flags */
DWORD flags;
primitives_uninit_t uninit;
/** \brief Do vecotor addition, store result in both input buffers
* pSrcDst1 = pSrcDst2 = pSrcDst1 + pSrcDst2
*/
__add_16s_inplace_t add_16s_inplace;
} primitives_t;
typedef enum