[svn] / branches / dev-api-4 / xvidcore / dshow / src / CXvidDecoder.cpp Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/dshow/src/CXvidDecoder.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1307, Wed Jan 7 13:50:28 2004 UTC revision 1310, Fri Jan 9 04:37:59 2004 UTC
# Line 19  Line 19 
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    
# Line 339  Line 339 
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          {          {

Legend:
Removed from v.1307  
changed lines
  Added in v.1310

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4