summaryrefslogtreecommitdiff
path: root/src/bin/jp2/convert.h
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-07-26 18:28:03 +0200
committermayeut <mayeut@users.noreply.github.com>2015-07-26 18:28:03 +0200
commitf3dad25c774559c6f2370d1e19ec48caae04dd65 (patch)
treecba69cc9eddada56fefe0f439fcec849ac5a4f38 /src/bin/jp2/convert.h
parente6cf1744d4c1b59791a1bd80db9618c1c3ca00b3 (diff)
Update convert for PNG output
Update uclouvain/openjpeg#264
Diffstat (limited to 'src/bin/jp2/convert.h')
-rw-r--r--src/bin/jp2/convert.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/jp2/convert.h b/src/bin/jp2/convert.h
index 51018c0b..4293960f 100644
--- a/src/bin/jp2/convert.h
+++ b/src/bin/jp2/convert.h
@@ -70,6 +70,18 @@ void clip_component(opj_image_comp_t* component, OPJ_UINT32 precision);
/* Component precision scaling */
void scale_component(opj_image_comp_t* component, OPJ_UINT32 precision);
+/* planar / interleaved conversions */
+typedef void (* convert_32s_CXPX)(const OPJ_INT32* pSrc, OPJ_INT32* const* pDst, OPJ_SIZE_T length);
+const convert_32s_CXPX convert_32s_CXPX_LUT[5];
+typedef void (* convert_32s_PXCX)(OPJ_INT32 const* const* pSrc, OPJ_INT32* pDst, OPJ_SIZE_T length, OPJ_INT32 adjust);
+const convert_32s_PXCX convert_32s_PXCX_LUT[5];
+/* bit depth conversions */
+typedef void (* convert_XXx32s_C1R)(const OPJ_BYTE* pSrc, OPJ_INT32* pDst, OPJ_SIZE_T length);
+const convert_XXx32s_C1R convert_XXu32s_C1R_LUT[9]; /* up to 8bpp */
+typedef void (* convert_32sXXx_C1R)(const OPJ_INT32* pSrc, OPJ_BYTE* pDst, OPJ_SIZE_T length);
+const convert_32sXXx_C1R convert_32sXXu_C1R_LUT[9]; /* up to 8bpp */
+
+
/* TGA conversion */
opj_image_t* tgatoimage(const char *filename, opj_cparameters_t *parameters);
int imagetotga(opj_image_t * image, const char *outfile);