This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const char* YUYV_VS = "" | |
"#version 150\n" | |
"uniform mat4 u_pm;" | |
"uniform mat4 u_mm;" | |
"in vec4 a_pos;" | |
"in vec2 a_tex;" | |
"out vec2 v_tex;" | |
"void main() {" | |
" gl_Position = u_pm * u_mm * a_pos; " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
void eachrow(size_t total, size_t nrows, size_t ncols, char const*** rows, BOOL(^cb)(size_t i, size_t ncols, char const **row, size_t *lengths)) | |
{ | |
size_t lengths[ncols]; | |
for (size_t k = 0; k < total; ++k) | |
{ | |
size_t i = k % nrows; | |
for (size_t j = 0; j < ncols; ++j) | |
{ |