Skip to content

Commit

Permalink
帧率修复2,修复循环加速
Browse files Browse the repository at this point in the history
  • Loading branch information
w2016561536 committed Sep 2, 2021
1 parent 5e6d9d5 commit 3e07367
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.example.vcam"
minSdk 21
targetSdk 28
versionCode 4
versionName "2.1"
versionCode 5
versionName "2.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 4,
"versionName": "2.1",
"versionCode": 5,
"versionName": "2.2",
"outputFile": "app-release.apk"
}
],
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/example/vcam/HookMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,6 @@ class VideoToFrames implements Runnable {
private Throwable throwable;
private Thread childThread;
private Surface play_surf;
private boolean is_first = false;
private long startWhen;

private Callback callback;

Expand Down Expand Up @@ -817,6 +815,8 @@ private boolean isColorFormatSupported(int colorFormat, MediaCodecInfo.CodecCapa
}

private void decodeFramesToImage(MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat) {
boolean is_first = false;
long startWhen = 0;
MediaCodec.BufferInfo info = new MediaCodec.BufferInfo();
decoder.configure(mediaFormat, play_surf, null, 0);
boolean sawInputEOS = false;
Expand Down

0 comments on commit 3e07367

Please sign in to comment.