19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: CXvidDecoder.cpp,v 1.1.2.9 2004-01-07 13:50:28 syskin Exp $ |
* $Id: CXvidDecoder.cpp,v 1.1.2.10 2004-01-09 04:37:59 syskin Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
339 |
{ |
{ |
340 |
VIDEOINFOHEADER * vih = (VIDEOINFOHEADER *) mtIn->Format(); |
VIDEOINFOHEADER * vih = (VIDEOINFOHEADER *) mtIn->Format(); |
341 |
hdr = &vih->bmiHeader; |
hdr = &vih->bmiHeader; |
342 |
ar_x = vih->bmiHeader.biXPelsPerMeter*hdr->biWidth; |
/* PAR (x:y) is (1/ppm_X):(1/ppm_Y) where ppm is pixels-per-meter |
343 |
ar_y = vih->bmiHeader.biYPelsPerMeter*hdr->biHeight; |
which is equal to ppm_Y:ppm_X */ |
344 |
|
ar_x = vih->bmiHeader.biYPelsPerMeter*hdr->biWidth; |
345 |
|
ar_y = vih->bmiHeader.biXPelsPerMeter*hdr->biHeight; |
346 |
} |
} |
347 |
else if (*mtIn->FormatType() == FORMAT_VideoInfo2) |
else if (*mtIn->FormatType() == FORMAT_VideoInfo2) |
348 |
{ |
{ |