summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2012-09-27 13:03:35 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2012-09-27 13:03:35 +0000
commit69673635ef3b33eca1b821fe737ff250701782da (patch)
tree227a211895c82f71f5b6ca04a5a29c910bf6e404 /libopenjpeg/t2.c
parent77e6971bbb683a634197fe71f56f6243955dd61a (diff)
[trunk] remove old v1 style function t2_create
rename t2_create_v2 to opj_t2_create
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c
index 68757b2a..01eaf50c 100644
--- a/libopenjpeg/t2.c
+++ b/libopenjpeg/t2.c
@@ -870,17 +870,6 @@ opj_bool t2_decode_packets_v2(
/* ----------------------------------------------------------------------- */
-opj_t2_t* t2_create(opj_common_ptr cinfo, opj_image_t *image, opj_cp_t *cp) {
- /* create the tcd structure */
- opj_t2_t *t2 = (opj_t2_t*)opj_malloc(sizeof(opj_t2_t));
- if(!t2) return NULL;
- t2->cinfo = cinfo;
- t2->image = image;
- t2->cp = cp;
-
- return t2;
-}
-
/**
* Creates a Tier 2 handle
*
@@ -888,10 +877,9 @@ opj_t2_t* t2_create(opj_common_ptr cinfo, opj_image_t *image, opj_cp_t *cp) {
* @param p_cp Image coding parameters.
* @return a new T2 handle if successful, NULL otherwise.
*/
-opj_t2_v2_t* t2_create_v2( opj_image_t *p_image,
- opj_cp_v2_t *p_cp)
+opj_t2_v2_t* opj_t2_create(opj_image_t *p_image, opj_cp_v2_t *p_cp)
{
- /* create the tcd structure */
+ /* create the t2 structure */
opj_t2_v2_t *l_t2 = (opj_t2_v2_t*)opj_malloc(sizeof(opj_t2_v2_t));
if (!l_t2) {
return NULL;