Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void bytes_to_blocks(const int cols, const int offset, bool blocks[16][3], const int rows, bool bytes[5][8]) {
- int col = -1;
- int paragraph = 0;
- for(int row = 0; row < rows; row++) {
- col++;
- if(col > (cols -1)) {
- paragraph+=8;
- col =0;
- }
- for(int bit_index = 0; bit_index < 8; bit_index++) {
- blocks[bit_index+paragraph][col] = bytes[row][bit_index];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement