mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-09 22:54:03 +09:00
simpler method of delta coding
This commit is contained in:
@@ -109,6 +109,8 @@ abstract class BlockTransferInterface(val isMaster: Boolean, val isSlave: Boolea
|
|||||||
* @param byteCount Number of bytes being transmitted
|
* @param byteCount Number of bytes being transmitted
|
||||||
*/
|
*/
|
||||||
protected fun applyBaudRateDelay(byteCount: Int) {
|
protected fun applyBaudRateDelay(byteCount: Int) {
|
||||||
|
if (baudRate <= 0) return
|
||||||
|
|
||||||
// Calculate delay in milliseconds
|
// Calculate delay in milliseconds
|
||||||
// Baud rate is bits per second, and we assume 10 bits per byte (8 data bits + start/stop bits)
|
// Baud rate is bits per second, and we assume 10 bits per byte (8 data bits + start/stop bits)
|
||||||
val bitsTransmitted = byteCount * 10
|
val bitsTransmitted = byteCount * 10
|
||||||
|
|||||||
@@ -2778,7 +2778,7 @@ int main(int argc, char *argv[]) {
|
|||||||
int count_iframe = 0;
|
int count_iframe = 0;
|
||||||
int count_pframe = 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) {
|
while (continue_encoding) {
|
||||||
// Check encode limit if specified
|
// Check encode limit if specified
|
||||||
|
|||||||
Reference in New Issue
Block a user