Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
using System.IO; | |
public class SDKSwap : EditorWindow { | |
static string _cardboardPath; | |
static string _OVRPath; |
public class ColorGenerator { | |
public static List<Color> generate(int colors, int skip) { | |
final int lastindex = colors + skip; | |
return new Points(colors + skip).asList().subList(skip, lastindex); | |
} | |
// RYB color space | |
private static class RYB { | |
private static final double[] White = { 1, 1, 1 }; |
==> Add in AndroidManifest.xml | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
android:sharedUserId="android.uid.system" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="com.example.example" | |
> | |
==> Android Source : | |
// For Properties permission | |
// Properties which start with "debug." have both SYSTEM & SHELL permisiion to edit |
import android.hardware.Sensor; | |
import android.hardware.SensorEvent; | |
import android.hardware.SensorEventListener; | |
import android.hardware.SensorManager; | |
import android.media.ExifInterface; | |
/** | |
* Created by abdelhady on 9/23/14. | |
* | |
* to use this class do the following 3 steps in your activity: |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:
import android.animation.Animator; | |
import android.animation.TimeInterpolator; | |
import android.annotation.TargetApi; | |
import android.graphics.Color; | |
import android.os.Build; | |
import android.support.annotation.NonNull; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewAnimationUtils; |
/** | |
* Copyright 2016 Ali Muzaffar | |
* <p/> | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* <p/> | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* <p/> | |
* Unless required by applicable law or agreed to in writing, software |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |