Guest User

Untitled

a guest
Aug 16th, 2012
559
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define MIN_QUALITY 0
  2. #define MAX_QUALITY 100
  3. #define MIN_VP8QP 1
  4. #define MAX_VP8QP 63
  5.         const float scale = MAX_VP8QP - MIN_VP8QP;
  6.         const float vp8qp =
  7.         scale * (MAX_QUALITY - quality) / (MAX_QUALITY - MIN_QUALITY) + MIN_VP8QP;
RAW Paste Data