/* Initialize an ImageType 3 image. */ void gs_image3_t_init(gs_image3_t * pim, gs_color_space * color_space, gs_image3_interleave_type_t interleave_type) { gs_pixel_image_t_init((gs_pixel_image_t *) pim, color_space); pim->type = &gs_image_type_3; pim->InterleaveType = interleave_type; gs_data_image_t_init(&pim->MaskDict, -1); }
/* Define the procedures for initializing gs_image_ts to default values. */ void gs_image_t_init_adjust(gs_image_t * pim, gs_color_space * color_space, bool adjust) { gs_pixel_image_t_init((gs_pixel_image_t *) pim, color_space); pim->ImageMask = (color_space == NULL); pim->adjust = adjust; pim->type = (pim->ImageMask ? &gs_image_type_mask1 : &gs_image_type_1); pim->Alpha = gs_image_alpha_none; }