mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-11 15:24:05 +09:00
playmov: frameskip re-enabled UNLESS the video is encoded with ipf-delta
This commit is contained in:
@@ -101,6 +101,7 @@ if (interactive) {
|
|||||||
let notifHideTimer = 0
|
let notifHideTimer = 0
|
||||||
const NOTIF_SHOWUPTIME = 3000000000
|
const NOTIF_SHOWUPTIME = 3000000000
|
||||||
let [cy, cx] = con.getyx()
|
let [cy, cx] = con.getyx()
|
||||||
|
let doFrameskip = true
|
||||||
let errorlevel = 0
|
let errorlevel = 0
|
||||||
try {
|
try {
|
||||||
let t1 = sys.nanoTime()
|
let t1 = sys.nanoTime()
|
||||||
@@ -122,7 +123,7 @@ while (!stopPlay && seqread.getReadCount() < FILE_LENGTH) {
|
|||||||
frameUnit += 1
|
frameUnit += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frameUnit > 1) frameUnit = 1 // comment to enable frameskip
|
if (!doFrameskip) frameUnit = 1
|
||||||
|
|
||||||
if (frameUnit != 0) {
|
if (frameUnit != 0) {
|
||||||
// skip frames if necessary
|
// skip frames if necessary
|
||||||
@@ -214,6 +215,8 @@ while (!stopPlay && seqread.getReadCount() < FILE_LENGTH) {
|
|||||||
}
|
}
|
||||||
// iPF1d
|
// iPF1d
|
||||||
else if (packetType == 516) {
|
else if (packetType == 516) {
|
||||||
|
doFrameskip = false // disable frameskip for delta-coding
|
||||||
|
|
||||||
let payloadLen = seqread.readInt()
|
let payloadLen = seqread.readInt()
|
||||||
|
|
||||||
if (framesRead >= FRAME_COUNT) {
|
if (framesRead >= FRAME_COUNT) {
|
||||||
|
|||||||
Reference in New Issue
Block a user