Lines Matching refs:box
96 jp2_box_t *box; in jp2_write_header() local
116 box = 0; in jp2_write_header()
132 if (!(box = jp2_box_create(JP2_BOX_JP))) { in jp2_write_header()
135 box->data.jp.magic = JP2_JP_MAGIC; in jp2_write_header()
136 if (jp2_box_put(box, out)) { in jp2_write_header()
139 jp2_box_destroy(box); in jp2_write_header()
140 box = 0; in jp2_write_header()
144 if (!(box = jp2_box_create(JP2_BOX_FTYP))) { in jp2_write_header()
147 ftyp = &box->data.ftyp; in jp2_write_header()
152 if (jp2_box_put(box, out)) { in jp2_write_header()
155 jp2_box_destroy(box); in jp2_write_header()
156 box = 0; in jp2_write_header()
171 if (!(box = jp2_box_create(JP2_BOX_IHDR))) { in jp2_write_header()
174 ihdr = &box->data.ihdr; in jp2_write_header()
183 if (jp2_box_put(box, tmpstream)) { in jp2_write_header()
186 jp2_box_destroy(box); in jp2_write_header()
187 box = 0; in jp2_write_header()
192 if (!(box = jp2_box_create(JP2_BOX_BPCC))) { in jp2_write_header()
195 bpcc = &box->data.bpcc; in jp2_write_header()
205 if (jp2_box_put(box, tmpstream)) { in jp2_write_header()
208 jp2_box_destroy(box); in jp2_write_header()
209 box = 0; in jp2_write_header()
214 if (!(box = jp2_box_create(JP2_BOX_COLR))) { in jp2_write_header()
217 colr = &box->data.colr; in jp2_write_header()
249 if (jp2_box_put(box, tmpstream)) { in jp2_write_header()
252 jp2_box_destroy(box); in jp2_write_header()
253 box = 0; in jp2_write_header()
286 if (!(box = jp2_box_create(JP2_BOX_CDEF))) { in jp2_write_header()
289 cdef = &box->data.cdef; in jp2_write_header()
299 if (jp2_box_put(box, tmpstream)) { in jp2_write_header()
302 jp2_box_destroy(box); in jp2_write_header()
303 box = 0; in jp2_write_header()
315 if (!(box = jp2_box_create(JP2_BOX_JP2H))) { in jp2_write_header()
318 box->len = len + JP2_BOX_HDRLEN(false); in jp2_write_header()
319 if (jp2_box_put(box, out)) { in jp2_write_header()
322 jp2_box_destroy(box); in jp2_write_header()
323 box = 0; in jp2_write_header()
337 if (box) { in jp2_write_header()
338 jp2_box_destroy(box); in jp2_write_header()
348 jp2_box_t *box; in jp2_write_codestream() local
356 if (!(box = jp2_box_create(JP2_BOX_JP2C))) { in jp2_write_codestream()
359 box->len = 0; in jp2_write_codestream()
360 if (jp2_box_put(box, out)) { in jp2_write_codestream()
363 jp2_box_destroy(box); in jp2_write_codestream()
364 box = 0; in jp2_write_codestream()
381 if (box) { in jp2_write_codestream()
382 jp2_box_destroy(box); in jp2_write_codestream()