Example #1
0
    def setUp(self):

        self.title = "Hanky Panky Bromance"

        self.slope1 = (1.0, 1.0, 1.0)
        self.offset1 = (0.0, 0.0, 0.0)
        self.power1 = (1.0, 1.0, 1.0)
        self.sat1 = 1.01

        line1 = buildFLExTake(sat=self.sat1, scene='bb94', take='x103',
                              roll='line1')

        self.slope2 = (1.2, 2.32, 10.82)
        self.offset2 = (-1.32, 2.32, 0.73)
        self.power2 = (1.329, 0.9833, 1.003)
        self.sat2 = 1.0

        line2 = buildFLExTake(self.slope2, self.offset2, self.power2,
                              scene='bb94', take='x104', roll='line2')

        self.slope3 = (1.0, 1.0, 1.0)
        self.offset3 = (0.0, 0.0, 0.0)
        self.power3 = (1.0, 1.0, 1.0)
        self.sat3 = 1.0

        line3 = buildFLExTake()

        self.file = FLEX_HEADER.format(title=self.title) + line1 + line2 + line3

        # Build our ale
        with tempfile.NamedTemporaryFile(mode='wb', delete=False) as f:
            f.write(enc(self.file))
            self.filename = f.name

        self.raw_cdls = cdl_convert.parse_flex(self.filename)
        self.cdls = self.raw_cdls[:]
        self.cdl1 = self.cdls[0]
        self.cdl2 = self.cdls[1]
        self.cdl3 = cdl_convert.ColorCorrection(
            'bb94_x105_line3', self.filename
        )
        self.cdl3.desc = self.title
        self.cdls.append(self.cdl3)
Example #2
0
    def setUp(self):

        self.title = "Bob's Big Apple Break, into the big apple! Part 365   H"

        self.slope1 = (1.329, 0.9833, 1.003)
        self.offset1 = (0.011, 0.013, 0.11)
        self.power1 = (.993, .998, 1.0113)
        self.sat1 = 1.01

        line1 = buildFLExTake(self.slope1, self.offset1, self.power1, self.sat1,
                              'bb94', 'x103', 'line1')

        # Note that there are limits to the floating point precision here.
        # Python will not parse numbers exactly with numbers with more
        # significant whole and decimal digits
        self.slope2 = (13.329, 4.9334, 348908)
        self.offset2 = (-3424.0, -34.013, -642389)
        self.power2 = (37.993, .00009, 0.0000)
        self.sat2 = 177.01

        line2 = buildFLExTake(self.slope2, self.offset2, self.power2, self.sat2,
                              'bb94', 'x104', 'line2')

        self.slope3 = (1.2, 2.32, 10.82)
        self.offset3 = (-1.3782, 278.32, 0.7383)
        self.power3 = (1.329, 0.9833, 1.003)
        self.sat3 = 0.99

        line3 = buildFLExTake(self.slope3, self.offset3, self.power3, self.sat3,
                              'bb94', 'x105', 'line3')

        self.file = FLEX_HEADER.format(title=self.title) + line1 + line2 + line3

        # Build our ale
        with tempfile.NamedTemporaryFile(mode='wb', delete=False) as f:
            f.write(enc(self.file))
            self.filename = f.name

        self.cdls = cdl_convert.parse_flex(self.filename)
        self.cdl1 = self.cdls[0]
        self.cdl2 = self.cdls[1]
        self.cdl3 = self.cdls[2]