From f912007fe84e9ffdd85d35b23b6e7b1d3cbf613e Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Fri, 10 Aug 2012 09:53:28 +0000 Subject: [PATCH] rename jp2_read_bpcc_v2 to opj_jp2_read_bpcc --- libopenjpeg/jp2.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index c2161c30..0e4426b8 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -100,12 +100,10 @@ static unsigned char * jp2_write_bpcc_v2( opj_jp2_v2_t *jp2, * * @return true if the bpc header is valid, fale else. */ -static opj_bool jp2_read_bpcc_v2( - opj_jp2_v2_t *jp2, - unsigned char * p_bpc_header_data, - unsigned int p_bpc_header_size, - struct opj_event_mgr * p_manager - ); +static opj_bool opj_jp2_read_bpcc( opj_jp2_v2_t *jp2, + OPJ_BYTE * p_bpc_header_data, + OPJ_INT32 p_bpc_header_size, + opj_event_mgr_t * p_manager ); static opj_bool jp2_read_cdef_v2( opj_jp2_v2_t * jp2, unsigned char * p_cdef_header_data, @@ -464,7 +462,7 @@ const opj_jp2_header_handler_t jp2_img_header [] = { {JP2_IHDR,opj_jp2_read_ihdr}, {JP2_COLR,jp2_read_colr_v2}, - {JP2_BPCC,jp2_read_bpcc_v2}, + {JP2_BPCC,opj_jp2_read_bpcc}, {JP2_PCLR,jp2_read_pclr_v2}, {JP2_CMAP,jp2_read_cmap_v2}, {JP2_CDEF,jp2_read_cdef_v2} @@ -823,11 +821,11 @@ unsigned char * jp2_write_bpcc_v2( opj_jp2_v2_t *jp2, * * @return true if the bpc header is valid, false otherwise. */ -opj_bool jp2_read_bpcc_v2( opj_jp2_v2_t *jp2, - unsigned char * p_bpc_header_data, - unsigned int p_bpc_header_size, - opj_event_mgr_t * p_manager - ) +static opj_bool opj_jp2_read_bpcc( opj_jp2_v2_t *jp2, + OPJ_BYTE * p_bpc_header_data, + OPJ_INT32 p_bpc_header_size, + opj_event_mgr_t * p_manager + ) { OPJ_UINT32 i;