Added code to AVI RIFF viewer to calculate/display video frame rate.

This commit is contained in:
mjbudd77 2021-10-04 19:54:01 -04:00
parent 65565cd1dd
commit 899dd03ac9
1 changed files with 6 additions and 0 deletions

View File

@ -668,6 +668,12 @@ int AviRiffViewerDialog::processChunk( AviRiffTreeItem *item )
twi = new QTreeWidgetItem();
twi->setText( 0, tr("dwRate") );
twi->setText( 2, tr(stmp) );
if ( strcmp( strhType, "vids" ) == 0 )
{
sprintf( stmp, "(%13.10f Hz)", (double)data.readU32(32) / (double)data.readU32(28) );
twi->setText( 3, tr(stmp) );
}
item->addChild(twi);
sprintf( stmp, "%u", data.readU32(36) );