[MPlayer-cvslog] r30865 - trunk/loader/qtx/qtxsdk/components.h
sesse
subversion at mplayerhq.hu
Mon Mar 8 20:54:08 CET 2010
Author: sesse
Date: Mon Mar 8 20:54:07 2010
New Revision: 30865
Log:
Correct QuickTime dpi output.
The dpi value for QuickTime codecs is stored as Fixed16 (16.16 fixed-point),
not int. Correct the output value accordingly.
Modified:
trunk/loader/qtx/qtxsdk/components.h
Modified: trunk/loader/qtx/qtxsdk/components.h
==============================================================================
--- trunk/loader/qtx/qtxsdk/components.h Mon Mar 8 20:41:57 2010 (r30864)
+++ trunk/loader/qtx/qtxsdk/components.h Mon Mar 8 20:54:07 2010 (r30865)
@@ -641,10 +641,10 @@ static inline void dump_ImageDescription
printf("=============== ImageDescription at %p ==================\n",xxx);
printf("idSize=0x%X fourcc=0x%08X\n",id->idSize,id->cType);
printf("ver=%d rev=%d vendor=0x%08X\n",id->version,id->revisionLevel,id->vendor);
- printf("tempQ=%d spatQ=%d dim: %d x %d dpi: %d x %d depth: %d\n",
+ printf("tempQ=%d spatQ=%d dim: %d x %d dpi: %.2f x %.2f depth: %d\n",
id->temporalQuality,id->spatialQuality,
id->width, id->height,
- id->hRes, id->vRes,
+ id->hRes / 65536.0, id->vRes / 65536.0,
id->depth);
printf("dataSize=%d frameCount=%d clutID=%d\n",id->dataSize, id->frameCount, id->clutID);
printf("name='%.*s'\n",((char*)(&id->name))[0],((char*)(&id->name))+1);
More information about the MPlayer-cvslog
mailing list