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
ffmpeg -y -i input.mp4 -vf fps=10,scale=716:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -i input.mp4 -i palette.png -filter_complex "fps=10,scale=716:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif |
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 <Windows.h> | |
#include <vector> | |
#include <opencv2\opencv.hpp> | |
#define WIDTH 500 | |
#define HEIGHT 500 | |
#define UNIT_PER_PIXEL 0.001 | |
#define PI 3.14159265 | |
#define EPS 0.0001 | |
struct Color { unsigned char r, g, b; }; |
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 os | |
lib_dir = '.\\x64\\vc12\lib' | |
if __name__ == '__main__': | |
debug_files = [] | |
release_files = [] | |
for file in os.listdir(lib_dir): | |
if file.endswith('.lib'): | |
if file.endswith('d.lib'): |
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 os | |
import shutil | |
import time | |
target_dir = 'C:\Users\\t-biluo\Documents\\visual studio 2015\Projects\Skype3D\Skype3D\Data' | |
source_dir = 'C:\Users\\t-biluo\Documents\Skype3D\Build\Skype3D\Data' | |
if __name__ == '__main__': | |
src_files = os.listdir(source_dir) | |
for file_name in src_files: |
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
using System; | |
using UnityEngine; | |
using Random = UnityEngine.Random; | |
namespace UnityStandardAssets.ImageEffects | |
{ | |
[ExecuteInEditMode] | |
[RequireComponent (typeof(Camera))] | |
[AddComponentMenu ("Image Effects/Noise/Noise And Grain (Filmic)")] | |
public class NoiseAndGrain : PostEffectsBase |
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
using System; | |
using UnityEngine; | |
namespace UnityStandardAssets.ImageEffects | |
{ | |
[ExecuteInEditMode] | |
[RequireComponent (typeof(Camera))] | |
[AddComponentMenu ("Image Effects/Camera/Depth of Field (Lens Blur, Scatter, DX11)") ] | |
public class DepthOfField : PostEffectsBase { |
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
using System; | |
using UnityEngine; | |
namespace UnityStandardAssets.ImageEffects | |
{ | |
[ExecuteInEditMode] | |
[AddComponentMenu ("Image Effects/Color Adjustments/Color Correction (Curves, Saturation)")] | |
public class ColorCorrectionCurves : PostEffectsBase | |
{ | |
public enum ColorCorrectionMode |
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
using System; | |
using UnityEngine; | |
namespace UnityStandardAssets.ImageEffects | |
{ | |
public enum AAMode | |
{ | |
FXAA2 = 0, | |
FXAA3Console = 1, | |
FXAA1PresetA = 2, |
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
using UnityEngine; | |
using System.Collections; | |
using System; | |
public class OneAngle : MonoBehaviour { | |
public int shotCount; | |
public int radius = 5; | |
public Quaternion initialRotation; | |
public Vector3 initialPosition; | |
public float totalAngle; |
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
using UnityEngine; | |
using System.Collections; | |
using System; | |
using System.Collections.Generic; | |
public class GravityCamera : MonoBehaviour | |
{ | |
public GameObject target; | |
public Vector3 centerOffset; | |
public float sensitivity = 1000; |
NewerOlder