コード例 #1
0
ファイル: patternproducer.py プロジェクト: apienk/flowblade
def create_color_producer(profile, gdk_color_str):
    mlt_color = utils.gdk_color_str_to_mlt_color_str(gdk_color_str)

    producer = mlt.Producer(profile, "colour", mlt_color)
    mltrefhold.hold_ref(producer)
    producer.gdk_color_str = gdk_color_str

    return producer
コード例 #2
0
    def create_mlt_producer(self, profile):
        mlt_color = utils.gdk_color_str_to_mlt_color_str(self.gdk_color_str)

        producer = mlt.Producer(profile, "colour", mlt_color)
        mltrefhold.hold_ref(producer)
        producer.gdk_color_str = self.gdk_color_str

        return producer