Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (!strncmp(tune, "littlepox", 9) || !strncmp(tune, "lp", 2) || !strncmp(tune, "vcb-s", 5) || !strncmp(tune, "vcbs", 4)) {
- param->rc.rfConstant = 18;
- param->searchRange = 38;
- param->bEnableAMP = 0;
- param->bEnableRectInter = 0;
- param->rc.aqMode = 3;
- param->rc.aqStrength = 0.7;
- param->rdLevel = 4;
- param->rdoqLevel = 2;
- param->bEnableSAO = 0;
- param->rc.qCompress = 0.60;
- param->bEnableStrongIntraSmoothing = 0;
- if (param->tuQTMaxInterDepth > 3) param->tuQTMaxInterDepth--;
- if (param->tuQTMaxIntraDepth > 3) param->tuQTMaxIntraDepth--;
- if (param->maxNumMergeCand > 3) param->maxNumMergeCand--;
- if (param->subme < 3)
- param->subme = 3;
- param->keyframeMin = 1;
- param->keyframeMax = 360;
- param->bOpenGOP = 0;
- param->deblockingFilterBetaOffset = -1;
- param->deblockingFilterTCOffset = -1;
- param->rdPenalty = 1;
- param->maxCUSize = 32;
- param->maxTUSize = 32;
- if (param->bframes > 6)
- param->bframes = 6;
- param->cbQpOffset = -2;
- param->crQpOffset = -2;
- param->pbFactor = 1.2;
- param->bEnableWeightedBiPred = 1;
- if (tune[0] == 'l') {
- // TVRip anime
- param->psyRd = 1.6;
- param->psyRdoq = 1.0;
- if (strstr(tune, "++")) {
- if (param->maxNumReferences < 2)
- param->maxNumReferences += 1;
- if (param->bframes < 4) param->bframes++;
- if (param->bframes < 4) param->bframes++;
- }
- } else {
- // BDRip anime or film
- param->psyRd = 2.0;
- param->psyRdoq = 1.0;
- param->rc.aqStrength = 0.8;
- if (strstr(tune, "++")) {
- param->subpelRefine = 4;
- param->bIntraInBFrames = 1;
- if (param->maxNumReferences < 4)
- param->maxNumReferences = 4;
- param->bEnableRectInter = 1; //previously it was 2 and I have no idea why not 1...
- param->limitTU = 4;
- if (param->lookaheadDepth < 60)
- param->lookaheadDepth = 60;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement