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
void SplitYUVPlanes(int width, int height, unsigned char *data, int size, unsigned char *yuvInput[3]) | |
{ | |
// live input *data is YUV444 Packed | |
// Conversion from 444 Packed -> 444 Planar | |
int index = 0; | |
int srcStride = size; | |
// need to flip image from bottom-up to top-down | |
int revheight = height - 1; | |
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
/* | |
* http://arduino.cc/playground/ComponentLib/Thermistor2 | |
* | |
* Inputs ADC Value from Thermistor and outputs Temperature in Celsius | |
* requires: include <math.h> | |
* Utilizes the Steinhart-Hart Thermistor Equation: | |
* Temperature in Kelvin = 1 / {A + B[ln(R)] + C[ln(R)]3} | |
* where A = 0.001129148, B = 0.000234125 and C = 8.76741E-08 | |
* | |
* These coefficients seem to work fairly universally, which is a bit of a |
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
using UnityEngine; | |
using System.Collections.Generic; | |
public class MyStateMachine : MonoBehaviour | |
{ | |
public delegate void StateHandlerDelegate (); | |
public enum MyStateType |
NewerOlder