Lines Matching refs:rect

119   const GIFFrameRect rect = {
122 const uint64_t memory_needed = 4 * rect.width * (uint64_t)rect.height;
124 *gif_rect = rect;
127 fprintf(stderr, "Image is too large (%d x %d).", rect.width, rect.height);
132 if (!WebPPictureView(picture, rect.x_offset, rect.y_offset,
133 rect.width, rect.height, &sub_image)) {
135 rect.width, rect.height, rect.x_offset, rect.y_offset);
140 tmp = (uint8_t*)WebPMalloc(rect.width * sizeof(*tmp));
153 for (; y < rect.height; y += interlace_jumps[pass], row += jump) {
154 if (DGifGetLine(gif, tmp, rect.width) == GIF_ERROR) goto End;
155 if (!Remap(gif, tmp, rect.width, transparent_index, row)) goto End;
161 for (y = 0; y < rect.height; ++y, ptr += sub_image.argb_stride) {
162 if (DGifGetLine(gif, tmp, rect.width) == GIF_ERROR) goto End;
163 if (!Remap(gif, tmp, rect.width, transparent_index, ptr)) goto End;
247 void GIFClearPic(WebPPicture* const pic, const GIFFrameRect* const rect) {
248 if (rect != NULL) {
249 ClearRectangle(pic, rect->x_offset, rect->y_offset,
250 rect->width, rect->height);
260 void GIFDisposeFrame(GIFDisposeMethod dispose, const GIFFrameRect* const rect,
263 assert(rect != NULL);
265 GIFClearPic(curr_canvas, rect);
268 const uint32_t* const src = prev_canvas->argb + rect->x_offset
269 + rect->y_offset * src_stride;
271 uint32_t* const dst = curr_canvas->argb + rect->x_offset
272 + rect->y_offset * dst_stride;
276 4 * rect->width, rect->height);
281 const GIFFrameRect* const rect, WebPPicture* const dst) {
286 for (j = rect->y_offset; j < rect->y_offset + rect->height; ++j) {
287 for (i = rect->x_offset; i < rect->x_offset + rect->width; ++i) {
375 void GIFDisposeFrame(GIFDisposeMethod dispose, const GIFFrameRect* const rect,
379 (void)rect;
386 const GIFFrameRect* const rect,
389 (void)rect;
401 const GIFFrameRect* const rect) {
403 (void)rect;