summaryrefslogtreecommitdiff
path: root/libopenjpeg/tcd.c
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2012-08-16 15:51:55 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2012-08-16 15:51:55 +0000
commite6d97ce928f0f625a949a43d1acc2c104f4b0df0 (patch)
tree6644faa7ed3ec9675b1d56fc96d01af1acdf402d /libopenjpeg/tcd.c
parentb7473285ecfd4746c2fd49ba93870af0ce3f9003 (diff)
remove deprecated v1 style function tcd_create; rename tcd_create_v2 to opj_tcd_create
Diffstat (limited to 'libopenjpeg/tcd.c')
-rw-r--r--libopenjpeg/tcd.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/libopenjpeg/tcd.c b/libopenjpeg/tcd.c
index 9159c9b1..7efb89e9 100644
--- a/libopenjpeg/tcd.c
+++ b/libopenjpeg/tcd.c
@@ -172,24 +172,7 @@ opj_bool tcd_dc_level_shift_decode (
/**
Create a new TCD handle
*/
-opj_tcd_t* tcd_create(opj_common_ptr cinfo) {
- /* create the tcd structure */
- opj_tcd_t *tcd = (opj_tcd_t*)opj_malloc(sizeof(opj_tcd_t));
- if(!tcd) return NULL;
- tcd->cinfo = cinfo;
- tcd->tcd_image = (opj_tcd_image_t*)opj_malloc(sizeof(opj_tcd_image_t));
- if(!tcd->tcd_image) {
- opj_free(tcd);
- return NULL;
- }
-
- return tcd;
-}
-
-/**
-Create a new TCD handle
-*/
-opj_tcd_v2_t* tcd_create_v2(opj_bool p_is_decoder)
+opj_tcd_v2_t* opj_tcd_create(opj_bool p_is_decoder)
{
opj_tcd_v2_t *l_tcd = 00;