Add test ref support for SSE2 and 4.2 builds
@@ -249,11 +249,35 @@ def get_encoder_params(encoderName, referenceName, imageSet):
name = "reference-1.7"
outDir = "Test/Images/%s" % imageSet
refName = None
+ elif encoderName == "ref-2.0-sse2":
+ encoder = te.Encoder2_0("sse2")
+ name = "reference-2.0-sse2"
+ outDir = "Test/Images/%s" % imageSet
+ refName = None
+ elif encoderName == "ref-2.0-sse4.2":
+ encoder = te.Encoder2_0("sse4.2")
+ name = "reference-2.0-sse4.2"
+ outDir = "Test/Images/%s" % imageSet
+ refName = None
elif encoderName == "ref-2.0-avx2":
encoder = te.Encoder2_0("avx2")
name = "reference-2.0-avx2"
outDir = "Test/Images/%s" % imageSet
refName = None
+ elif encoderName == "ref-master-sse2":
+ # Warning: this option rebuilds a new reference test result for the
+ # master branch using the user's locally build encoder in ./Source.
+ encoder = te.Encoder2x("sse2")
+ name = "reference-master-sse2"
+ outDir = "Test/Images/%s" % imageSet
+ refName = None
+ elif encoderName == "ref-master-sse4.2":
+ # Warning: this option rebuilds a new reference test result for the
+ # master branch using the user's locally build encoder in ./Source.
+ encoder = te.Encoder2x("sse4.2")
+ name = "reference-master-sse4.2"
+ outDir = "Test/Images/%s" % imageSet
+ refName = None
elif encoderName == "ref-master-avx2":
# Warning: this option rebuilds a new reference test result for the
# master branch using the user's locally build encoder in ./Source.
@@ -279,7 +303,9 @@ def parse_command_line():
"""
parser = argparse.ArgumentParser()
- refcoders = ["ref-1.7", "ref-2.0-avx2", "ref-master-avx2"]
+ refcoders = ["ref-1.7",
+ "ref-2.0-sse2", "ref-2.0-sse4.2", "ref-2.0-avx2",
+ "ref-master-sse2", "ref-master-sse4.2", "ref-master-avx2"]
testcoders = ["sse2", "sse4.2", "avx2"]
coders = refcoders + testcoders + ["all", "all-ref"]
parser.add_argument("--encoder", dest="encoders", default="avx2",
