simpler method of delta coding

This commit is contained in:
minjaesong
2025-09-25 00:47:39 +09:00
parent 2b59d5dd8d
commit e2dd0744d2
2 changed files with 3 additions and 1 deletions

View File

@@ -109,6 +109,8 @@ abstract class BlockTransferInterface(val isMaster: Boolean, val isSlave: Boolea
* @param byteCount Number of bytes being transmitted
*/
protected fun applyBaudRateDelay(byteCount: Int) {
if (baudRate <= 0) return
// Calculate delay in milliseconds
// Baud rate is bits per second, and we assume 10 bits per byte (8 data bits + start/stop bits)
val bitsTransmitted = byteCount * 10

View File

@@ -2778,7 +2778,7 @@ int main(int argc, char *argv[]) {
int count_iframe = 0;
int count_pframe = 0;
KEYFRAME_INTERVAL = enc->output_fps >> 2; // refresh often because deltas in DWT are more visible than DCT
KEYFRAME_INTERVAL = CLAMP(enc->output_fps >> 3, 3, 30); // refresh often because deltas in DWT are more visible than DCT
while (continue_encoding) {
// Check encode limit if specified