Lines Matching refs:img
179 … jas_image_t *img = jas_image_chclrspc( m_image, clrprof, JAS_CMXFORM_INTENT_RELCLR ); in ReadData() local
180 if( img ) in ReadData()
183 m_image = img; in ReadData()
420 …jas_image_t *img = jas_image_create( channels, component_info, (channels == 1) ? JAS_CLRSPC_SGRAY … in WriteImage() local
421 if( !img ) in WriteImage()
425 jas_image_setcmpttype( img, 0, JAS_IMAGE_CT_GRAY_Y ); in WriteImage()
428 jas_image_setcmpttype( img, 0, JAS_IMAGE_CT_RGB_B ); in WriteImage()
429 jas_image_setcmpttype( img, 1, JAS_IMAGE_CT_RGB_G ); in WriteImage()
430 jas_image_setcmpttype( img, 2, JAS_IMAGE_CT_RGB_R ); in WriteImage()
435 result = WriteComponent8u( img, data, step, channels, width, height ); in WriteImage()
437 …result = WriteComponent16u( img, (const unsigned short *)data, step / 2, channels, width, height ); in WriteImage()
443 result = !jas_image_encode( img, stream, jas_image_strtofmt( "jp2" ), "" ); in WriteImage()
449 jas_image_destroy( img ); in WriteImage()
455 bool GrFmtJpeg2000Writer::WriteComponent8u( jas_image_t *img, const uchar *data, in WriteComponent8u() argument
468 jas_image_writecmpt( img, i, 0, y, w, 1, row ); in WriteComponent8u()
478 bool GrFmtJpeg2000Writer::WriteComponent16u( jas_image_t *img, const unsigned short *data, in WriteComponent16u() argument
491 jas_image_writecmpt( img, i, 0, y, w, 1, row ); in WriteComponent16u()