-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: JohanBlome <[email protected]>
- Loading branch information
1 parent
a05fe59
commit cd9c6e2
Showing
35 changed files
with
757 additions
and
2,705 deletions.
There are no files selected for viewing
488 changes: 0 additions & 488 deletions
488
app/src/main/java/com/facebook/encapp/BufferX264Encoder.java
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
public class FrameInfo { | ||
long mPts; | ||
long mDts; | ||
long mSize; | ||
long mProcessTime; | ||
long mStartTime; | ||
|
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
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/facebook/encapp/utils/StringParameter.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.facebook.encapp.utils; | ||
|
||
import com.facebook.encapp.proto.DataValueType; | ||
import com.facebook.encapp.proto.Parameter; | ||
|
||
// The protobuf is using a factory way of constructing the objects. One way of solving creating of | ||
// parameters would be to use a c protobuf implementation. For now we will use a simpler version where | ||
// we create a simple object with only strings and convert in java instead. | ||
public class StringParameter { | ||
String mKey = ""; | ||
String mType = ""; | ||
String mValue = ""; | ||
|
||
public StringParameter(String key, String type, String value) { | ||
mKey = key; | ||
mType = type; | ||
mValue = value; | ||
} | ||
|
||
public Parameter getParameter() { | ||
if (mType.equals(DataValueType.intType.name())) { | ||
return Parameter.newBuilder().setType(DataValueType.intType).setKey(mKey).setValue(mValue).build(); | ||
} else if (mType.equals(DataValueType.longType.name())) { | ||
return Parameter.newBuilder().setType(DataValueType.longType).setKey(mKey).setValue(mValue).build(); | ||
} else if (mType.equals(DataValueType.floatType.name())) { | ||
return Parameter.newBuilder().setType(DataValueType.floatType).setKey(mKey).setValue(mValue).build(); | ||
} else if (mType.equals(DataValueType.longType.name())) { | ||
return Parameter.newBuilder().setType(DataValueType.stringType).setKey(mKey).setValue(mValue).build(); | ||
} | ||
|
||
// Oh no! | ||
return null; | ||
} | ||
} |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.