Lines Matching refs:kernel_info

40 static void php_imagickkernelvalues_to_zval(zval *zv, KernelInfo *kernel_info) {  in php_imagickkernelvalues_to_zval()  argument
54 for (y=0; y<kernel_info->height ; y++) { in php_imagickkernelvalues_to_zval()
63 for (x=0; x<kernel_info->width ; x++) { in php_imagickkernelvalues_to_zval()
64 value = kernel_info->values[count]; in php_imagickkernelvalues_to_zval()
90 KernelInfo *kernel_info; in php_imagickkernel_get_debug_info() local
104 kernel_info = internp->kernel_info; in php_imagickkernel_get_debug_info()
109 while (kernel_info != NULL) { in php_imagickkernel_get_debug_info()
112 php_imagickkernelvalues_to_zval(&matrix, kernel_info); in php_imagickkernel_get_debug_info()
117 php_imagickkernelvalues_to_zval(matrix, kernel_info); in php_imagickkernel_get_debug_info()
120 kernel_info = kernel_info->next; in php_imagickkernel_get_debug_info()
159 KernelInfo *kernel_info; in imagick_createKernel() local
165 kernel_info=AcquireKernelInfo(NULL, _exception_info); in imagick_createKernel()
167 kernel_info=AcquireKernelInfo(NULL); in imagick_createKernel()
169 if (kernel_info == (KernelInfo *) NULL) { in imagick_createKernel()
173 kernel_info->width = width; in imagick_createKernel()
174 kernel_info->height = height; in imagick_createKernel()
176 kernel_info->x = origin_x; in imagick_createKernel()
177 kernel_info->y = origin_y; in imagick_createKernel()
180 if (kernel_info->values != NULL) { in imagick_createKernel()
181 RelinquishAlignedMemory(kernel_info->values); in imagick_createKernel()
185 kernel_info->values = (MagickRealType *)AcquireAlignedMemory(width*height, sizeof(MagickRealType)); in imagick_createKernel()
188 kernel_info->values[i] = (MagickRealType)values[i]; in imagick_createKernel()
192 kernel_info->values = values; in imagick_createKernel()
195 im_CalcKernelMetaData(kernel_info); in imagick_createKernel()
197 return kernel_info; in imagick_createKernel()
201 static void createKernelZval(zval *pzval, KernelInfo *kernel_info TSRMLS_DC) { in createKernelZval()
206 intern_return->kernel_info = kernel_info; in createKernelZval()
243 KernelInfo *kernel_info; in PHP_METHOD() local
397 kernel_info = imagick_createKernel(values, num_columns, num_rows, origin_x, origin_y); in PHP_METHOD()
398 createKernelZval(return_value, kernel_info TSRMLS_CC); in PHP_METHOD()
416 KernelInfo *kernel_info; in PHP_METHOD() local
565 kernel_info = imagick_createKernel(values, num_columns, num_rows, origin_x, origin_y); in PHP_METHOD()
566 createKernelZval(return_value, kernel_info TSRMLS_CC); in PHP_METHOD()
659 KernelInfo *kernel_info; in PHP_METHOD() local
676 kernel_info = AcquireKernelBuiltIn(kernel_type, &geometry_info, _exception_info); in PHP_METHOD()
678 kernel_info = AcquireKernelBuiltIn(kernel_type, &geometry_info); in PHP_METHOD()
680 createKernelZval(return_value, kernel_info TSRMLS_CC); in PHP_METHOD()
696 KernelInfo *kernel_info; in PHP_METHOD() local
709 if (kernel->kernel_info == NULL) { in PHP_METHOD()
714 kernel_info = internp->kernel_info; in PHP_METHOD()
716 kernel_info_target = kernel_info; in PHP_METHOD()
717 kernel_info = kernel_info->next; in PHP_METHOD()
718 } while (kernel_info != NULL); in PHP_METHOD()
720 kernel_info_add_clone = CloneKernelInfo(kernel->kernel_info); in PHP_METHOD()
734 KernelInfo *kernel_info; in PHP_METHOD() local
751 kernel_info = internp->kernel_info; in PHP_METHOD()
755 while (kernel_info != NULL) { in PHP_METHOD()
756 number_values = kernel_info->width * kernel_info->height; in PHP_METHOD()
757 …values_copy = (KernelValueType *)AcquireAlignedMemory(kernel_info->width, kernel_info->height*size… in PHP_METHOD()
758 memcpy(values_copy, kernel_info->values, number_values * sizeof(KernelValueType)); in PHP_METHOD()
762 kernel_info->width, in PHP_METHOD()
763 kernel_info->height, in PHP_METHOD()
764 kernel_info->x, in PHP_METHOD()
765 kernel_info->y in PHP_METHOD()
776 kernel_info = kernel_info->next; in PHP_METHOD()
800 php_imagickkernelvalues_to_zval(return_value, internp->kernel_info); in PHP_METHOD()
832 ScaleKernelInfo(internp->kernel_info, scale, normalize_flag); in PHP_METHOD()
858 UnityAddKernelInfo(internp->kernel_info, scale); in PHP_METHOD()