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
# EXPERIMENTAL: Copy frameworks from extern/lib/mac/frameworks, to the install dir and set the @executable paths | |
# frameworks from the extern/lib/mac/frameworks dir | |
# ---------------------------------------------------------------------------- | |
foreach(framework_name in ${roxlu_frameworks}) | |
set(framework_dir ${roxlu_base_dir}/extern/lib/mac/frameworks/${framework_name}.framework) | |
if(IS_DIRECTORY ${framework_dir}) | |
set(framework_dest_dir ${roxlu_app_install_dir}/lib/) | |
set(framework_file ${framework_dest_dir}${framework_name}.framework/${framework_name}) | |
get_filename_component(framework_file ${framework_file} ABSOLUTE) |
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 "YUV420PGrabber.h" | |
YUV420PGrabber::YUV420PGrabber() | |
:y_prog(0) | |
,y_vert(0) | |
,y_frag(0) | |
,uv_prog(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 "testApp.h" | |
#include "Error.h" | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
ofEnableNormalizedTexCoords(); | |
ofDisableArbTex(); | |
int w = ofGetWidth(); | |
int h = ofGetHeight(); | |
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/core/Log.h> | |
#include <roxlu/core/Utils.h> | |
#include <video/X264Encoder.h> | |
X264Encoder::X264Encoder() | |
:in_width(0) | |
,in_height(0) | |
,in_pixel_format(AV_PIX_FMT_NONE) | |
,out_width(0) | |
,out_height(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
#ifndef ROXLU_SPLINEH | |
#define ROXLU_SPLINEH | |
#include <vector> | |
/** | |
* Catmull Rom interpolation. | |
* -------------------------- | |
* Catmull Rom interpolation works with 4 points, there the | |
* local "t" value is used to interpolate between points B and C. The |
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
/* | |
Create server/client self-signed certificate/key (self signed, DONT ADD PASSWORD) | |
openssl req -x509 -newkey rsa:2048 -days 3650 -nodes -keyout client-key.pem -out client-cert.pem | |
openssl req -x509 -newkey rsa:2048 -days 3650 -nodes -keyout server-key.pem -out server-cert.pem | |
*/ | |
#include <stdio.h> |
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 <RendezVousClient.h> | |
#include <RendezVousTypes.h> | |
namespace poly { | |
/* -------------------------------------------------------------- */ | |
RendezVousClientSettings::RendezVousClientSettings() | |
:rv_port(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
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 |