Lines Matching refs:tsfb
85 void jpc_tsfb_getbands2(jpc_tsfb_t *tsfb, int locxstart, int locystart,
95 jpc_tsfb_t *tsfb; in jpc_cod_gettsfb() local
97 if (!(tsfb = malloc(sizeof(jpc_tsfb_t)))) in jpc_cod_gettsfb()
103 tsfb->qmfb = &jpc_ns_qmfb2d; in jpc_cod_gettsfb()
107 tsfb->qmfb = &jpc_ft_qmfb2d; in jpc_cod_gettsfb()
111 tsfb->qmfb = 0; in jpc_cod_gettsfb()
113 tsfb->numlvls = numlvls; in jpc_cod_gettsfb()
114 return tsfb; in jpc_cod_gettsfb()
117 void jpc_tsfb_destroy(jpc_tsfb_t *tsfb) in jpc_tsfb_destroy() argument
119 free(tsfb); in jpc_tsfb_destroy()
122 int jpc_tsfb_analyze(jpc_tsfb_t *tsfb, jas_seq2d_t *a) in jpc_tsfb_analyze() argument
124 return (tsfb->numlvls > 0) ? jpc_tsfb_analyze2(tsfb, jas_seq2d_getref(a, in jpc_tsfb_analyze()
127 jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : 0; in jpc_tsfb_analyze()
130 int jpc_tsfb_analyze2(jpc_tsfb_t *tsfb, int *a, int xstart, int ystart, in jpc_tsfb_analyze2() argument
134 if ((*tsfb->qmfb->analyze)(a, xstart, ystart, width, height, stride)) in jpc_tsfb_analyze2()
137 if (jpc_tsfb_analyze2(tsfb, a, JPC_CEILDIVPOW2(xstart, in jpc_tsfb_analyze2()
149 int jpc_tsfb_synthesize(jpc_tsfb_t *tsfb, jas_seq2d_t *a) in jpc_tsfb_synthesize() argument
151 return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb, in jpc_tsfb_synthesize()
154 jas_seq2d_height(a), jas_seq2d_rowstep(a), tsfb->numlvls - 1) : 0; in jpc_tsfb_synthesize()
157 int jpc_tsfb_synthesize2(jpc_tsfb_t *tsfb, int *a, int xstart, int ystart, in jpc_tsfb_synthesize2() argument
161 if (jpc_tsfb_synthesize2(tsfb, a, JPC_CEILDIVPOW2(xstart, 1), in jpc_tsfb_synthesize2()
170 if ((*tsfb->qmfb->synthesize)(a, xstart, ystart, width, height, stride)) { in jpc_tsfb_synthesize2()
177 int jpc_tsfb_getbands(jpc_tsfb_t *tsfb, uint_fast32_t xstart, in jpc_tsfb_getbands() argument
184 if (tsfb->numlvls > 0) { in jpc_tsfb_getbands()
185 jpc_tsfb_getbands2(tsfb, xstart, ystart, xstart, ystart, xend, yend, in jpc_tsfb_getbands()
186 &band, tsfb->numlvls); in jpc_tsfb_getbands()
204 void jpc_tsfb_getbands2(jpc_tsfb_t *tsfb, int locxstart, int locystart, in jpc_tsfb_getbands2() argument
221 jpc_tsfb_getbands2(tsfb, locxstart, locystart, newxstart, newystart, in jpc_tsfb_getbands2()
234 band->synenergywt = jpc_dbltofix(tsfb->qmfb->hpenergywts[ in jpc_tsfb_getbands2()
235 tsfb->numlvls - numlvls] * tsfb->qmfb->lpenergywts[ in jpc_tsfb_getbands2()
236 tsfb->numlvls - numlvls]); in jpc_tsfb_getbands2()
249 band->synenergywt = jpc_dbltofix(tsfb->qmfb->lpenergywts[ in jpc_tsfb_getbands2()
250 tsfb->numlvls - numlvls] * tsfb->qmfb->hpenergywts[ in jpc_tsfb_getbands2()
251 tsfb->numlvls - numlvls]); in jpc_tsfb_getbands2()
264 band->synenergywt = jpc_dbltofix(tsfb->qmfb->hpenergywts[ in jpc_tsfb_getbands2()
265 tsfb->numlvls - numlvls] * tsfb->qmfb->hpenergywts[ in jpc_tsfb_getbands2()
266 tsfb->numlvls - numlvls]); in jpc_tsfb_getbands2()
281 band->synenergywt = jpc_dbltofix(tsfb->qmfb->lpenergywts[ in jpc_tsfb_getbands2()
282 tsfb->numlvls - numlvls - 1] * tsfb->qmfb->lpenergywts[ in jpc_tsfb_getbands2()
283 tsfb->numlvls - numlvls - 1]); in jpc_tsfb_getbands2()