Allow configuration of the number of guard bits when encoding.
This commit is contained in:
parent
90481203a2
commit
dc567e7753
|
@ -8202,7 +8202,7 @@ OPJ_BOOL opj_j2k_setup_encoder(opj_j2k_t *p_j2k,
|
||||||
tccp->qmfbid = parameters->irreversible ? 0 : 1;
|
tccp->qmfbid = parameters->irreversible ? 0 : 1;
|
||||||
tccp->qntsty = parameters->irreversible ? J2K_CCP_QNTSTY_SEQNT :
|
tccp->qntsty = parameters->irreversible ? J2K_CCP_QNTSTY_SEQNT :
|
||||||
J2K_CCP_QNTSTY_NOQNT;
|
J2K_CCP_QNTSTY_NOQNT;
|
||||||
tccp->numgbits = 2;
|
tccp->numgbits = parameters->numgbits;
|
||||||
|
|
||||||
if ((OPJ_INT32)i == parameters->roi_compno) {
|
if ((OPJ_INT32)i == parameters->roi_compno) {
|
||||||
tccp->roishift = parameters->roi_shift;
|
tccp->roishift = parameters->roi_shift;
|
||||||
|
|
|
@ -762,6 +762,7 @@ void OPJ_CALLCONV opj_set_default_encoder_parameters(opj_cparameters_t
|
||||||
parameters->cp_fixed_alloc = 0;
|
parameters->cp_fixed_alloc = 0;
|
||||||
parameters->cp_fixed_quality = 0;
|
parameters->cp_fixed_quality = 0;
|
||||||
parameters->jpip_on = OPJ_FALSE;
|
parameters->jpip_on = OPJ_FALSE;
|
||||||
|
parameters->numgbits = 2;
|
||||||
/* UniPG>> */
|
/* UniPG>> */
|
||||||
#ifdef USE_JPWL
|
#ifdef USE_JPWL
|
||||||
parameters->jpwl_epc_on = OPJ_FALSE;
|
parameters->jpwl_epc_on = OPJ_FALSE;
|
||||||
|
|
|
@ -448,6 +448,8 @@ typedef struct opj_cparameters {
|
||||||
int prcw_init[OPJ_J2K_MAXRLVLS];
|
int prcw_init[OPJ_J2K_MAXRLVLS];
|
||||||
/** initial precinct height */
|
/** initial precinct height */
|
||||||
int prch_init[OPJ_J2K_MAXRLVLS];
|
int prch_init[OPJ_J2K_MAXRLVLS];
|
||||||
|
/** number of guard bits */
|
||||||
|
int numgbits;
|
||||||
|
|
||||||
/**@name command line encoder parameters (not used inside the library) */
|
/**@name command line encoder parameters (not used inside the library) */
|
||||||
/*@{*/
|
/*@{*/
|
||||||
|
|
Loading…
Reference in New Issue