This file contains 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
armv5te-android-gcc armv5te-linux-rvct armv5te-linux-gcc | |
armv5te-none-rvct | |
armv6-darwin-gcc armv6-linux-rvct armv6-linux-gcc | |
armv6-none-rvct | |
armv7-android-gcc armv7-darwin-gcc armv7-linux-rvct | |
armv7-linux-gcc armv7-none-rvct | |
mips32-linux-gcc | |
ppc32-darwin8-gcc ppc32-darwin9-gcc ppc32-linux-gcc | |
ppc64-darwin8-gcc ppc64-darwin9-gcc ppc64-linux-gcc | |
sparc-solaris-gcc |
This file contains 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
#include <cmath> | |
#include <assert.h> | |
#include <core/TestPattern.h> | |
TestPattern::TestPattern() | |
:w(0) | |
,h(0) | |
,frame_num(0) | |
,duration(0) |
This file contains 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
size_t weather_write_data(void* ptr, size_t size, size_t nmemb, void* str) { | |
std::string* s = static_cast<std::string*>(str); | |
std::copy((char*)ptr, (char*)ptr + (size + nmemb), std::back_inserter(*s)); | |
return size * nmemb; | |
} | |
std::string weather_download_yahoo_rss() { | |
std::string result; | |
std::string url = "http://weather.yahooapis.com/forecastrss?w=10242&u=c"; // w=10242 is Aberaron |
This file contains 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 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
#include <shared/VideoSurface.h> | |
GLuint VideoSurface::prog = 0; | |
GLint VideoSurface::u_pm = 0; | |
GLint VideoSurface::u_mm = 0; | |
GLint VideoSurface::u_tex = 0; | |
GLfloat VideoSurface::pm[16] = {0}; | |
VideoSurface::VideoSurface() | |
:width(0) |
This file contains 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
#include <roxlu/io/Socket.h> | |
Socket::Socket() { | |
#ifdef _WIN32 | |
int result = WSAStartup(MAKEWORD(2,2), &wsa_data); | |
if(result != 0) { | |
printf("Error: cannot initialize WinSock.\n"); | |
WSACleanup(); | |
} | |
#endif |
This file contains 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
#include <assert.h> | |
#include <roxlu/core/Utils.h> | |
#include <roxlu/core/Log.h> | |
#include <image/Image.h> | |
#include <video/YUV420PGrabber.h> | |
YUV420PGrabber::YUV420PGrabber() | |
:y_prog(0) | |
,y_vert(0) | |
,y_frag(0) |
This file contains 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
cmake_minimum_required(VERSION 2.8) | |
set(bd ${CMAKE_CURRENT_LIST_DIR}/) | |
set(src | |
${bd}/src/main.cpp | |
) | |
find_library(fr_co Cocoa) |
This file contains 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
._DS* | |
*DS_Store* | |
build | |
install | |
extern | |
node-* | |
references |
This file contains 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
#include <poly/Log.h> | |
#include <TestFboChangeBuffer.h> | |
using namespace poly; | |
TestFboChangeBuffer::TestFboChangeBuffer() | |
:fbo(0) | |
,dx(0) | |
{ | |
tex[0] = 0; |