| 18 | } |
| 19 | |
| 20 | static void WritePlaneBuffer (BufferedData* buf, const uint8_t* plane, |
| 21 | int width, int height, int stride) { |
| 22 | for (int i = 0; i < height; i++) { |
| 23 | if (!buf->PushBack (plane, width)) { |
| 24 | FAIL() << "unable to allocate memory"; |
| 25 | } |
| 26 | plane += stride; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | struct DecodeEncodeFileParam { |
| 31 | const char* fileName; |