Added code to AVI RIFF viewer to calculate/display video frame rate.
This commit is contained in:
parent
65565cd1dd
commit
899dd03ac9
|
@ -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) );
|
||||
|
|
Loading…
Reference in New Issue