mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
add gif, ico, tga, pcx support and fix RGBA in jpeg2000
This commit is contained in:
@ -24,13 +24,13 @@
|
||||
#if defined(BUILDING_WASM_MODULE)
|
||||
|
||||
#define CXIMAGE_SUPPORT_BMP 1
|
||||
#define CXIMAGE_SUPPORT_GIF 0
|
||||
#define CXIMAGE_SUPPORT_GIF 1
|
||||
#define CXIMAGE_SUPPORT_JPG 1
|
||||
#define CXIMAGE_SUPPORT_PNG 1
|
||||
#define CXIMAGE_SUPPORT_ICO 0
|
||||
#define CXIMAGE_SUPPORT_ICO 1
|
||||
#define CXIMAGE_SUPPORT_TIF 1
|
||||
#define CXIMAGE_SUPPORT_TGA 0
|
||||
#define CXIMAGE_SUPPORT_PCX 0
|
||||
#define CXIMAGE_SUPPORT_TGA 1
|
||||
#define CXIMAGE_SUPPORT_PCX 1
|
||||
#define CXIMAGE_SUPPORT_WBMP 0
|
||||
#define CXIMAGE_SUPPORT_WMF 0
|
||||
|
||||
|
||||
@ -119,18 +119,6 @@ void jpc_tsfb_destroy(jpc_tsfb_t *tsfb)
|
||||
free(tsfb);
|
||||
}
|
||||
|
||||
int jpc_tsfb_analyze(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
|
||||
{
|
||||
#ifndef _IOS
|
||||
return (tsfb->numlvls > 0) ? jpc_tsfb_analyze2(tsfb, jas_seq2d_getref(a,
|
||||
jas_seq2d_xstart(a), jas_seq2d_ystart(a)), jas_seq2d_xstart(a),
|
||||
jas_seq2d_ystart(a), jas_seq2d_width(a),
|
||||
jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : 0;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
int jpc_tsfb_analyze2(jpc_tsfb_t *tsfb, int *a, int xstart, int ystart,
|
||||
int width, int height, int stride, int numlvls)
|
||||
{
|
||||
@ -150,15 +138,15 @@ int jpc_tsfb_analyze2(jpc_tsfb_t *tsfb, int *a, int xstart, int ystart,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
|
||||
int jpc_tsfb_analyze(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
|
||||
{
|
||||
#ifndef _IOS
|
||||
return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb,
|
||||
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
|
||||
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
|
||||
return (tsfb->numlvls > 0) ? jpc_tsfb_analyze2(tsfb, jas_seq2d_getref(a,
|
||||
jas_seq2d_xstart(a), jas_seq2d_ystart(a)), jas_seq2d_xstart(a),
|
||||
jas_seq2d_ystart(a), jas_seq2d_width(a),
|
||||
jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : 0;
|
||||
#else
|
||||
return 0;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -182,6 +170,18 @@ int jpc_tsfb_synthesize2(jpc_tsfb_t *tsfb, int *a, int xstart, int ystart,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a)
|
||||
{
|
||||
#ifndef _IOS
|
||||
return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb,
|
||||
jas_seq2d_getref(a, jas_seq2d_xstart(a), jas_seq2d_ystart(a)),
|
||||
jas_seq2d_xstart(a), jas_seq2d_ystart(a), jas_seq2d_width(a),
|
||||
jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : 0;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
int jpc_tsfb_getbands(jpc_tsfb_t *tsfb, uint_fast32_t xstart,
|
||||
uint_fast32_t ystart, uint_fast32_t xend, uint_fast32_t yend,
|
||||
jpc_tsfb_band_t *bands)
|
||||
|
||||
Reference in New Issue
Block a user