Merge changes I6603fdba,Id325040d

* changes:
  Add pixelWidthHeightRatio to MediaParser
  Extract method in MediaParser