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 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 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
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 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
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 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
#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 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
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 |
OlderNewer