Gather the index-th buffer of each input as a Bitmap into a vector of Bitmaps.
| 865 | // Gather the index-th buffer of each input as a Bitmap |
| 866 | // into a vector of Bitmaps. |
| 867 | std::vector<Bitmap> Bitmaps(size_t index) { |
| 868 | std::vector<Bitmap> bitmaps(in_.size()); |
| 869 | for (size_t i = 0; i < in_.size(); ++i) { |
| 870 | Range range(in_[i]->offset, in_[i]->length); |
| 871 | bitmaps[i] = Bitmap(in_[i]->buffers[index], range); |
| 872 | } |
| 873 | return bitmaps; |
| 874 | } |
| 875 | |
| 876 | // Gather the index-th child_data of each input into a vector. |
| 877 | // Elements are sliced with that input's offset and length. |