Commits

Steve Borho  committed 8d48e5e

rdcost: add arbitray scale to make --psy-rd 0..2 range give acceptable quality

  • Participants
  • Parent commits 810151a

Comments (0)

Files changed (1)

File source/encoder/rdcost.h

     uint64_t  m_crDistortionWeight;
     uint32_t  m_psyRd;
 
-    void setPsyRdScale(double scale)                { m_psyRd = (uint32_t)floor(256.0 * scale); }
+    void setPsyRdScale(double scale)                { m_psyRd = (uint32_t)floor(256.0 * scale * 0.33); }
     void setCbDistortionWeight(uint16_t weightFix8) { m_cbDistortionWeight = weightFix8; }
     void setCrDistortionWeight(uint16_t weightFix8) { m_crDistortionWeight = weightFix8; }