Пример #1
0
 def test10_CreateProofingTransformWithCustomProofingIntent(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_PERCEPTUAL))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_RELATIVE_COLORIMETRIC))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_SATURATION))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile,
                                        cms.INTENT_PERCEPTUAL,
                                        cms.INTENT_ABSOLUTE_COLORIMETRIC))
Пример #2
0
 def test11_CreateProofingTransformWithCustomFlags(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC,
             cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_GAMUTCHECK))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC, cms.cmsFLAGS_PRESERVEBLACK
             | cms.cmsFLAGS_BLACKPOINTCOMPENSATION))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC,
             cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_HIGHRESPRECALC))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(
             self.inProfile, cms.TYPE_RGB_8, self.inProfile, cms.TYPE_RGB_8,
             self.outProfile, cms.INTENT_PERCEPTUAL,
             cms.INTENT_RELATIVE_COLORIMETRIC,
             cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_LOWRESPRECALC))
Пример #3
0
	def test13_CreateProofingTransformWithInvalidProofingIntent(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, 1, 2))
		try:
			cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, 1, 4)
		except cms.cmsError:
			return
		self.fail()
Пример #4
0
 def test13_CreateProofingTransformWithInvalidProofingIntent(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile, 1, 2))
     try:
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile, 1, 4)
     except cms.cmsError:
         return
     self.fail()
Пример #5
0
	def test10_CreateProofingTransformWithCustomProofingIntent(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_PERCEPTUAL))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_SATURATION))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_ABSOLUTE_COLORIMETRIC))
Пример #6
0
	def test08_CreateProofingTransform(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGBA_8,
														self.outProfile))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
														self.inProfile, cms.TYPE_RGBA_8,
														self.outProfile))
Пример #7
0
	def test11_CreateProofingTransformWithCustomFlags(self):
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_GAMUTCHECK))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_PRESERVEBLACK | cms.cmsFLAGS_BLACKPOINTCOMPENSATION))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_HIGHRESPRECALC))
		self.assertNotEqual(None, cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
														self.inProfile, cms.TYPE_RGB_8,
														self.outProfile, cms.INTENT_PERCEPTUAL, cms.INTENT_RELATIVE_COLORIMETRIC,
														cms.cmsFLAGS_NOTPRECALC | cms.cmsFLAGS_LOWRESPRECALC))
Пример #8
0
 def test08_CreateProofingTransform(self):
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
                                        self.inProfile, cms.TYPE_RGB_8,
                                        self.outProfile))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGB_8,
                                        self.inProfile, cms.TYPE_RGBA_8,
                                        self.outProfile))
     self.assertNotEqual(
         None,
         cms.cmsCreateProofingTransform(self.inProfile, cms.TYPE_RGBA_8,
                                        self.inProfile, cms.TYPE_RGBA_8,
                                        self.outProfile))