Advertisement
Guest User

Untitled

a guest
May 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. else if (!strncmp(tune, "littlepox", 9) || !strncmp(tune, "lp", 2) || !strncmp(tune, "vcb-s", 5) || !strncmp(tune, "vcbs", 4)) {
  2. param->rc.rfConstant = 18;
  3. param->searchRange = 38;
  4. param->bEnableAMP = 0;
  5. param->bEnableRectInter = 0;
  6. param->rc.aqMode = 3;
  7. param->rc.aqStrength = 0.7;
  8. param->rdLevel = 4;
  9. param->rdoqLevel = 2;
  10. param->bEnableSAO = 0;
  11. param->rc.qCompress = 0.60;
  12. param->bEnableStrongIntraSmoothing = 0;
  13. if (param->tuQTMaxInterDepth > 3) param->tuQTMaxInterDepth--;
  14. if (param->tuQTMaxIntraDepth > 3) param->tuQTMaxIntraDepth--;
  15. if (param->maxNumMergeCand > 3) param->maxNumMergeCand--;
  16. if (param->subme < 3)
  17. param->subme = 3;
  18. param->keyframeMin = 1;
  19. param->keyframeMax = 360;
  20. param->bOpenGOP = 0;
  21. param->deblockingFilterBetaOffset = -1;
  22. param->deblockingFilterTCOffset = -1;
  23. param->rdPenalty = 1;
  24. param->maxCUSize = 32;
  25. param->maxTUSize = 32;
  26. if (param->bframes > 6)
  27. param->bframes = 6;
  28. param->cbQpOffset = -2;
  29. param->crQpOffset = -2;
  30. param->pbFactor = 1.2;
  31. param->bEnableWeightedBiPred = 1;
  32. if (tune[0] == 'l') {
  33. // TVRip anime
  34. param->psyRd = 1.6;
  35. param->psyRdoq = 1.0;
  36. if (strstr(tune, "++")) {
  37. if (param->maxNumReferences < 2)
  38. param->maxNumReferences += 1;
  39. if (param->bframes < 4) param->bframes++;
  40. if (param->bframes < 4) param->bframes++;
  41. }
  42. } else {
  43. // BDRip anime or film
  44. param->psyRd = 2.0;
  45. param->psyRdoq = 1.0;
  46. param->rc.aqStrength = 0.8;
  47. if (strstr(tune, "++")) {
  48. param->subpelRefine = 4;
  49. param->bIntraInBFrames = 1;
  50. if (param->maxNumReferences < 4)
  51. param->maxNumReferences = 4;
  52. param->bEnableRectInter = 1; //previously it was 2 and I have no idea why not 1...
  53. param->limitTU = 4;
  54. if (param->lookaheadDepth < 60)
  55. param->lookaheadDepth = 60;
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement