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
# Please make this file available to others | |
# by sending it to <[email protected]> | |
# | |
# this config file was automatically generated | |
# using lirc-0.9.0(IRToy) on Thu Jul 14 22:23:51 2016 | |
# | |
# contributed by | |
# | |
# brand: C:\Users\charley\Downloads\winlirc-0.9.0i\WinLIRC\config.cf.conf |
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
private byte [] getYV12(int inputWidth, int inputHeight, Bitmap scaled) { | |
int [] argb = new int[inputWidth * inputHeight]; | |
scaled.getPixels(argb, 0, inputWidth, 0, 0, inputWidth, inputHeight); | |
byte [] yuv = new byte[inputWidth*inputHeight*3/2]; | |
encodeYV12(yuv, argb, inputWidth, inputHeight); | |
scaled.recycle(); |
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
package com.opentok.media.avc; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import android.media.MediaCodec; | |
import android.media.MediaCodecInfo; | |
import android.media.MediaFormat; | |
public class AvcEncoder { |