mozilla/pdf.js — pull request #2417 by yurydelendik (2012-11-28 18:36:15+00:00)
Title: Removes "too many inline images" limit

Shall fix #591, #2108, #2408, #2416.

The patch:
1. Introduces paintInlineImageXObject to avoid worker->main thread->worker->main thread exchange for small images;
2. Groups the sequence of the following commands:

```
q 4.16667 0 0 4.16667 545.832 3125 cm
BI
/CS/RGB
/W 1
/H 1
/BPC 8
ID <>
EI Q
```

into single paintInlineImageXObjectGroup command with big image constructed by packing small inline images into one.