Revert "tight: Limit rectangle max width according to spec"
This reverts commit 999c1ef255
.
This sends more rects than the original rect count allows for.
pull/30/head
parent
1976221afe
commit
11a73c5cb0
15
src/tight.c
15
src/tight.c
|
@ -321,17 +321,10 @@ int tight_encode_frame(struct tight_encoder* self, struct vec* dst,
|
|||
int box_width = box[i].x2 - x;
|
||||
int box_height = box[i].y2 - y;
|
||||
|
||||
while (box_width > 0) {
|
||||
int w = MIN(TIGHT_MAX_WIDTH, box_width);
|
||||
box_width -= w;
|
||||
|
||||
rc = tight_encode_box(self, dst, fb, src_fmt, x, y,
|
||||
fb->width, w, box_height);
|
||||
if (rc < 0)
|
||||
return -1;
|
||||
|
||||
x += w;
|
||||
}
|
||||
rc = tight_encode_box(self, dst, fb, src_fmt, x, y,
|
||||
fb->width, box_width, box_height);
|
||||
if (rc < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue