Skip to content

Commit

Permalink
Change default pool to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Dec 20, 2018
1 parent fe0956c commit a8bf848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The folder `model` must be located in the same folder as `VMAF.dll`.
Usage
=====

vmaf.VMAF(clip reference, clip distorted[, int model=0, string log_path="", int log_fmt=0, bint psnr=False, bint ssim=False, bint ms_ssim=False, int pool=0, bint ci=False])
vmaf.VMAF(clip reference, clip distorted[, int model=0, string log_path="", int log_fmt=0, bint psnr=False, bint ssim=False, bint ms_ssim=False, int pool=1, bint ci=False])

* reference, distorted: Clips to calculate VMAF score. Only YUV420P8, YUV422P8, YUV444P8, YUV420P10, YUV422P10, and YUV444P10 are supported.

Expand Down
4 changes: 3 additions & 1 deletion VMAF/VMAF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ static void VS_CC vmafCreate(const VSMap *in, VSMap *out, void *userData, VSCore

d->ms_ssim = !!vsapi->propGetInt(in, "ms_ssim", 0, &err);

const int pool = int64ToIntS(vsapi->propGetInt(in, "pool", 0, &err));
int pool = int64ToIntS(vsapi->propGetInt(in, "pool", 0, &err));
if (err)
pool = 1;

d->ci = !!vsapi->propGetInt(in, "ci", 0, &err);

Expand Down

0 comments on commit a8bf848

Please sign in to comment.