summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorParvatha Elangovan <p.elangovan@intopix.com>2007-03-29 14:15:14 +0000
committerParvatha Elangovan <p.elangovan@intopix.com>2007-03-29 14:15:14 +0000
commit9ba672366e5dfc2151544b0ef9c51f1a81ae3194 (patch)
tree0614dbc5f550e3c2865d0232b8539e5666bf0cb5 /libopenjpeg/t2.c
parenta1fe5809a4760ed2aa64951c596156f48fca393e (diff)
Enable accepting file names with `-´ symbol .Modification getopt.c
Rsiz profile name generation to be STD_RSIZ for profiles which are not DCI compliant.Modification in image_to_j2k.c Renamed convert_progression_order to j2k_convert_progression_order. Modification j2k.c Calculation of number of tile part in each tile in j2k_calculate_tp. Modification j2k.c j2k_setup_encoder to set bit rate limitation for digital cinema compliance with quality option. Modification in j2k.c Equation to check multiple tile precincts. Modification pi.c array size generation of pi->include in pi_initialise_encode().Modification in pi.c Modification in pi_create_encode for tile part generation.Modification in pi.c In tcd_rateallocate a variable stable_threshold which holds the valid threshold value. This is used to avoid error in case of a wrong threshold value in the last iteration. Modification in tcd.c.
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c
index 03f6933d..4e770073 100644
--- a/libopenjpeg/t2.c
+++ b/libopenjpeg/t2.c
@@ -563,7 +563,7 @@ static int t2_decode_packet(opj_t2_t* t2, unsigned char *src, int len, opj_tcd_t
/* ----------------------------------------------------------------------- */
-int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlayers, unsigned char *dest, int len, opj_image_info_t *image_info,opj_pi_iterator_t *tcd_pi,int tpnum, int tppos,int pino, char final_encoding){
+int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlayers, unsigned char *dest, int len, opj_image_info_t *image_info,int tpnum, int tppos,int pino, char final_encoding){
unsigned char *c = dest;
int e = 0;
opj_pi_iterator_t *pi = NULL;
@@ -571,11 +571,7 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
opj_image_t *image = t2->image;
opj_cp_t *cp = t2->cp;
- if(final_encoding == 0){
- pi = pi_initialise_encode(image, cp, tileno,pino);
- }else{
- pi = tcd_pi;
- }
+ pi = pi_initialise_encode(image, cp, tileno,pino);
if(!pi) {
/* TODO: throw an error */
return -999;
@@ -613,9 +609,9 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
/* << INDEX */
}
}
- if(final_encoding == 0){
- pi_destroy(pi, cp, tileno);
- }
+
+ pi_destroy(pi, cp, tileno);
+
if (e == -999) {
return e;
}