Lines Matching defs:intern
2913 php_imagick_object *intern = php_imagick_fetch_object(object);
2915 if (!intern) {
2919 if (intern->progress_monitor_name) {
2921 efree(intern->progress_monitor_name);
2924 if (intern->magick_wand != NULL) {
2925 intern->magick_wand = DestroyMagickWand(intern->magick_wand);
2928 zend_object_std_dtor(&intern->zo TSRMLS_CC);
2930 efree(intern);
2937 php_imagickdraw_object *intern = php_imagickdraw_fetch_object(object);
2939 if (!intern) {
2943 if (intern->drawing_wand != NULL) {
2944 intern->drawing_wand = DestroyDrawingWand(intern->drawing_wand);
2947 zend_object_std_dtor(&intern->zo TSRMLS_CC);
2950 efree(intern);
2956 php_imagickpixeliterator_object *intern = php_imagickpixeliterator_fetch_object(object);
2958 if (!intern) {
2962 if (intern->pixel_iterator != NULL) {
2963 intern->pixel_iterator = DestroyPixelIterator(intern->pixel_iterator);
2966 zend_object_std_dtor(&intern->zo TSRMLS_CC);
2968 efree(intern);
2976 php_imagickpixel_object *intern = php_imagickpixel_fetch_object(object);
2978 if (!intern) {
2981 if (!intern->initialized_via_iterator && intern->pixel_wand)
2982 intern->pixel_wand = DestroyPixelWand(intern->pixel_wand);
2984 zend_object_std_dtor(&intern->zo TSRMLS_CC);
2986 efree(intern);
2993 php_imagickkernel_object *intern = php_imagickkernel_fetch_object(object);
2995 if (!intern) {
2999 if (intern->kernel_info != NULL) {
3001 //intern->kernel_info = DestroyKernelInfo(intern->kernel_info);
3002 intern->kernel_info = NULL;
3005 zend_object_std_dtor(&intern->zo TSRMLS_CC);
3007 efree(intern);
3031 php_imagick_object *intern;
3035 intern = ecalloc(1,
3041 intern = (php_imagick_object *) emalloc(sizeof(php_imagick_object));
3042 memset(&intern->zo, 0, sizeof(zend_object));
3054 *ptr = intern;
3059 intern->magick_wand = NewMagickWand();
3061 if (!intern->magick_wand) {
3065 intern->magick_wand = NULL;
3067 intern->next_out_of_bound = 0;
3068 intern->progress_monitor_name = NULL;
3070 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
3071 object_properties_init(&intern->zo, class_type);
3074 intern->zo.handlers = &imagick_object_handlers;
3075 return &intern->zo;
3077 retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagick_object_free_storage, NULL TSRMLS_CC);
3099 php_imagickdraw_object *intern;
3103 intern = ecalloc(1,
3107 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
3108 object_properties_init(&intern->zo, class_type);
3109 intern->zo.handlers = &imagickdraw_object_handlers;
3112 intern = (php_imagickdraw_object *) emalloc(sizeof(php_imagickdraw_object));
3113 memset(&intern->zo, 0, sizeof(zend_object));
3117 *ptr = intern;
3122 intern->drawing_wand = NewDrawingWand();
3124 if (!intern->drawing_wand) {
3128 intern->drawing_wand = NULL;
3131 intern->zo.handlers = &imagickdraw_object_handlers;
3133 return &intern->zo;
3135 /* ALLOC_HASHTABLE(intern->zo.properties); */
3136 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
3137 object_properties_init(&intern->zo, class_type);
3138 retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickdraw_object_free_storage, NULL TSRMLS_CC);
3160 php_imagickpixeliterator_object *intern;
3164 intern = ecalloc(1,
3169 intern = (php_imagickpixeliterator_object *) emalloc(sizeof(php_imagickpixeliterator_object));
3170 memset(&intern->zo, 0, sizeof(zend_object));
3174 intern->pixel_iterator = NULL;
3175 intern->initialized = 0;
3178 intern->rows = 0;
3179 intern->iterator_position = 0;
3182 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
3183 object_properties_init(&intern->zo, class_type);
3186 intern->zo.handlers = &imagickpixeliterator_object_handlers;
3188 return &intern->zo;
3190 retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickpixeliterator_object_free_storage, NULL TSRMLS_CC);
3203 php_imagickpixel_object *intern;
3207 intern = ecalloc(1,
3212 intern = (php_imagickpixel_object *) emalloc(sizeof(php_imagickpixel_object));
3213 memset(&intern->zo, 0, sizeof(zend_object));
3217 *ptr = intern;
3221 intern->pixel_wand = NULL;
3222 intern->initialized_via_iterator = 0;
3223 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
3224 object_properties_init(&intern->zo, class_type);
3227 intern->zo.handlers = &imagickpixel_object_handlers;
3229 return &intern->zo;
3231 retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickpixel_object_free_storage, NULL TSRMLS_CC);
3257 php_imagickkernel_object *intern;
3261 intern = ecalloc(1,
3266 intern = (php_imagickkernel_object *) emalloc(sizeof(php_imagickkernel_object));
3267 memset(&intern->zo, 0, sizeof(zend_object));
3271 *ptr = intern;
3275 intern->kernel_info = NULL;
3277 /* ALLOC_HASHTABLE(intern->zo.properties); */
3278 zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
3279 object_properties_init(&intern->zo, class_type);
3282 intern->zo.handlers = &imagickkernel_object_handlers;
3284 return &intern->zo;
3286 retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickkernel_object_free_storage, NULL TSRMLS_CC);
3334 php_imagick_object *intern= php_imagick_fetch_object(object);
3338 php_imagick_object *intern= Z_IMAGICK_P(object);
3341 if (intern->magick_wand) {
3342 *count = MagickGetNumberImages(intern->magick_wand);
3353 php_imagick_object *intern;
3369 intern = php_imagick_fetch_object(object);
3371 if (MagickGetNumberImages(intern->magick_wand)) {
3381 ZVAL_LONG(retval, MagickGetImageWidth(intern->magick_wand));
3384 ZVAL_LONG(retval, MagickGetImageHeight(intern->magick_wand));
3386 char *format = MagickGetImageFormat(intern->magick_wand);
3417 php_imagick_object *intern;
3441 intern = Z_IMAGICK_P(object);
3443 if (MagickGetNumberImages(intern->magick_wand)) {
3453 ZVAL_LONG(retval, MagickGetImageWidth(intern->magick_wand));
3456 ZVAL_LONG(retval, MagickGetImageHeight(intern->magick_wand));
3458 char *format = MagickGetImageFormat(intern->magick_wand);
3496 php_imagick_object *intern;
3522 intern = (php_imagick_object *) zend_object_store_get_object(object TSRMLS_CC);
3524 if (MagickGetNumberImages(intern->magick_wand)) {
3537 ZVAL_LONG(retval, MagickGetImageWidth(intern->magick_wand));
3539 ZVAL_LONG(retval, MagickGetImageHeight(intern->magick_wand));
3541 char *format = MagickGetImageFormat(intern->magick_wand);