-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
3,079 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
105 changes: 105 additions & 0 deletions
105
enginekit/src/main/java/cn/wildfirechat/avenginekit/VideoProfile.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,105 @@ | ||
package cn.wildfirechat.avenginekit; | ||
|
||
/** | ||
* Created by dds on 2019/7/24. | ||
* android_shuai@163.com | ||
*/ | ||
public class VideoProfile { | ||
public static final int VP120P = 0; | ||
public static final int VP120P_3 = 2; | ||
public static final int VP180P = 10; | ||
public static final int VP180P_3 = 12; | ||
public static final int VP180P_4 = 13; | ||
public static final int VP240P = 20; | ||
public static final int VP240P_3 = 22; | ||
public static final int VP240P_4 = 23; | ||
public static final int VP360P = 30; | ||
public static final int VP360P_3 = 32; | ||
public static final int VP360P_4 = 33; | ||
public static final int VP360P_6 = 35; | ||
public static final int VP360P_7 = 36; | ||
public static final int VP360P_8 = 37; | ||
public static final int VP480P = 40; | ||
public static final int VP480P_3 = 42; | ||
public static final int VP480P_4 = 43; | ||
public static final int VP480P_6 = 45; | ||
public static final int VP480P_8 = 47; | ||
public static final int VP480P_9 = 48; | ||
public static final int VP720P = 50; | ||
public static final int VP720P_3 = 52; | ||
public static final int VP720P_5 = 54; | ||
public static final int VP720P_6 = 55; | ||
public static final int VPDEFAULT = 30; | ||
public int width; | ||
public int height; | ||
public int fps; | ||
public int bitrate; | ||
|
||
public VideoProfile(int var1, int var2, int var3, int var4, boolean var5) { | ||
if (var5) { | ||
this.height = var1; | ||
this.height = var1; | ||
} else { | ||
this.width = var1; | ||
this.height = var2; | ||
} | ||
|
||
this.bitrate = var4; | ||
this.fps = var3; | ||
} | ||
|
||
public static VideoProfile getVideoProfile(int var0, boolean var1) { | ||
switch(var0) { | ||
case 0: | ||
return new VideoProfile(160, 120, 15, 120, var1); | ||
case 2: | ||
return new VideoProfile(120, 120, 15, 100, var1); | ||
case 10: | ||
return new VideoProfile(320, 180, 15, 280, var1); | ||
case 12: | ||
return new VideoProfile(180, 180, 15, 200, var1); | ||
case 13: | ||
return new VideoProfile(240, 180, 15, 240, var1); | ||
case 20: | ||
return new VideoProfile(320, 240, 15, 360, var1); | ||
case 22: | ||
return new VideoProfile(240, 240, 15, 240, var1); | ||
case 23: | ||
return new VideoProfile(424, 240, 15, 400, var1); | ||
case 30: | ||
return new VideoProfile(640, 360, 15, 800, var1); | ||
case 32: | ||
return new VideoProfile(360, 360, 15, 520, var1); | ||
case 33: | ||
return new VideoProfile(640, 360, 30, 1200, var1); | ||
case 35: | ||
return new VideoProfile(360, 360, 30, 780, var1); | ||
case 36: | ||
return new VideoProfile(480, 360, 15, 1000, var1); | ||
case 37: | ||
return new VideoProfile(480, 360, 30, 1500, var1); | ||
case 40: | ||
return new VideoProfile(640, 480, 15, 1000, var1); | ||
case 42: | ||
return new VideoProfile(480, 480, 15, 800, var1); | ||
case 43: | ||
return new VideoProfile(640, 480, 30, 1500, var1); | ||
case 45: | ||
return new VideoProfile(480, 480, 30, 1200, var1); | ||
case 47: | ||
return new VideoProfile(848, 480, 15, 1200, var1); | ||
case 48: | ||
return new VideoProfile(848, 480, 30, 1800, var1); | ||
case 50: | ||
return new VideoProfile(1280, 720, 15, 2400, var1); | ||
case 52: | ||
return new VideoProfile(1280, 720, 30, 3600, var1); | ||
case 54: | ||
return new VideoProfile(960, 720, 15, 1920, var1); | ||
case 55: | ||
return new VideoProfile(960, 720, 30, 2880, var1); | ||
default: | ||
return getVideoProfile(30, var1); | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
enginekit/src/main/java/cn/wildfirechat/avenginekit/b.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,86 @@ | ||
package cn.wildfirechat.avenginekit; | ||
|
||
/** | ||
* Created by dds on 2019/7/24. | ||
* android_shuai@163.com | ||
*/ | ||
public class b { | ||
static { | ||
int[] var10000; | ||
boolean var10001; | ||
byte var10002; | ||
int var9; | ||
label77: { | ||
try { | ||
var10000 = a; | ||
var9 = cn.wildfirechat.avenginekit.c.a.a.ordinal(); | ||
} catch (NoSuchFieldError var8) { | ||
var10001 = false; | ||
break label77; | ||
} | ||
|
||
var10002 = 1; | ||
|
||
try { | ||
var10000[var9] = var10002; | ||
} catch (NoSuchFieldError var7) { | ||
var10001 = false; | ||
} | ||
} | ||
|
||
label78: { | ||
try { | ||
var10000 = a; | ||
var9 = cn.wildfirechat.avenginekit.c.a.c.ordinal(); | ||
} catch (NoSuchFieldError var6) { | ||
var10001 = false; | ||
break label78; | ||
} | ||
|
||
var10002 = 2; | ||
|
||
try { | ||
var10000[var9] = var10002; | ||
} catch (NoSuchFieldError var5) { | ||
var10001 = false; | ||
} | ||
} | ||
|
||
label79: { | ||
try { | ||
var10000 = a; | ||
var9 = cn.wildfirechat.avenginekit.c.a.b.ordinal(); | ||
} catch (NoSuchFieldError var4) { | ||
var10001 = false; | ||
break label79; | ||
} | ||
|
||
var10002 = 3; | ||
|
||
try { | ||
var10000[var9] = var10002; | ||
} catch (NoSuchFieldError var3) { | ||
var10001 = false; | ||
} | ||
} | ||
|
||
label80: { | ||
try { | ||
var10000 = a; | ||
var9 = cn.wildfirechat.avenginekit.c.a.d.ordinal(); | ||
} catch (NoSuchFieldError var2) { | ||
var10001 = false; | ||
break label80; | ||
} | ||
|
||
var10002 = 4; | ||
|
||
try { | ||
var10000[var9] = var10002; | ||
} catch (NoSuchFieldError var1) { | ||
var10001 = false; | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.