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
/* | |
ADDED | |
PLATFORM_DEFINES += GLFW_EXPOSE_NATIVE_EGL | |
PLATFORM_DEFINES += GLFW_EXPOSE_NATIVE_X11 | |
TO | |
openFrameworks/libs/openFrameworksCompiled/project/linuxarmv6l/config.linuxarmv6l.default.mk | |
Adapted from https://wiki.maemo.org/SimpleGL_example | |
*/ |
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
string filePath = “data.csv”; | |
ofFile file(filePath); | |
if(!file.exists()){ | |
ofLogError(“The file ” + filePath + ” is missing”); | |
} | |
ofBuffer buffer(file); | |
vector<string> lines; | |
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
import UIKit | |
class Content | |
{ | |
var name:String = "DEFAULT" | |
func setup(_ name:String) | |
{ | |
self.name = name |
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
Nightly required - get link from the bottom of this page (e.g. https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz) | |
https://openframeworks.cc/download/ | |
Download OF and unpack: | |
wget https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz | |
tar -zxvf of_v20190324_linuxarmv7l_nightly.tar.gz | |
mv of_v20190324_linuxarmv7l_nightly openFrameworks |
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 "ofMain.h" | |
#include "AvFoundationH264DecoderListener.h" | |
#import <Foundation/Foundation.h> | |
#import <AVFoundation/AVFoundation.h> | |
#import <Accelerate/Accelerate.h> | |
#import <CoreMedia/CoreMedia.h> | |
#import <AVFoundation/AVPlayer.h> | |
#import <VideoToolbox/VideoToolbox.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
static ofVec2f getFitAspectRatioSize(float maxWidth, float maxHeight, float imgWidth, float imgHeight) | |
{ | |
ofVec2f result; | |
float widthRatio = maxWidth / imgWidth; | |
float heightRatio = maxHeight / imgHeight; | |
float bestRatio = min(widthRatio, heightRatio); | |
result.x = imgWidth * bestRatio; | |
result.y = imgHeight * bestRatio; | |
return result; |
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
#pragma once | |
#include "ofMain.h" | |
#include "ofAppEGLWindow.h" | |
#include "user-vcsm.h" | |
#include "ofxOMXPlayer.h" | |
#include "TerminalListener.h" | |
class ofApp : public ofBaseApp, public KeyListener{ |
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
OMX_ImageFilterColourBalance | |
Number of Params: 4 | |
Value Range: 0-255 | |
Description: first value unknown or maybe not 0-255, 1-3 seem to be RGB. | |
OMX_ImageFilterColourSwap | |
Number of Params: 1 | |
Value Range: 0-1 | |
Description: Switches a mode - possibly an enum? |
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
/* | |
Copyright (c) 2012, Broadcom Europe Ltd | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in 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
hdmi_force_hotplug=1 | |
hdmi_ignore_edid=0xa5000080 | |
config_hdmi_boost=4 | |
hdmi_group=1 | |
hdmi_mode=4 | |
disable_overscan=0 | |
overscan_left=24 | |
overscan_right=24 | |
overscan_top=24 | |
overscan_bottom=24 |