コード例 #1
0
         PyOCIO_GpuShaderDesc_setLut3DEdgeLen, METH_VARARGS, GPUSHADERDESC_SETLUT3DEDGELEN__DOC__ },
         { "getLut3DEdgeLen",
         (PyCFunction) PyOCIO_GpuShaderDesc_getLut3DEdgeLen, METH_NOARGS, GPUSHADERDESC_GETLUT3DEDGELEN__DOC__ },
         { "getCacheID",
         (PyCFunction) PyOCIO_GpuShaderDesc_getCacheID, METH_NOARGS, GPUSHADERDESC_GETCACHEID__DOC__ },
         { NULL, NULL, 0, NULL }
     };
     
 }
 
 ///////////////////////////////////////////////////////////////////////////
 ///
 
 PyTypeObject PyOCIO_GpuShaderDescType = {
     PyVarObject_HEAD_INIT(NULL, 0)              //ob_size
     OCIO_PYTHON_NAMESPACE(GpuShaderDesc),       //tp_name
     sizeof(PyOCIO_GpuShaderDesc),               //tp_basicsize
     0,                                          //tp_itemsize
     (destructor)PyOCIO_GpuShaderDesc_delete,    //tp_dealloc
     0,                                          //tp_print
     0,                                          //tp_getattr
     0,                                          //tp_setattr
     0,                                          //tp_compare
     0,                                          //tp_repr
     0,                                          //tp_as_number
     0,                                          //tp_as_sequence
     0,                                          //tp_as_mapping
     0,                                          //tp_hash 
     0,                                          //tp_call
     0,                                          //tp_str
     0,                                          //tp_getattro
コード例 #2
0
         PyOCIO_Processor_getGpuLut3DCacheID, METH_VARARGS, PROCESSOR_GETGPULUT3DCACHEID__DOC__ },
         { NULL, NULL, 0, NULL }
     };
     
     const char initMessage[] =
         "Processor objects cannot be instantiated directly. "
         "Please use config.getProcessor() instead.";
     
 }
 
 ///////////////////////////////////////////////////////////////////////////
 ///
 
 PyTypeObject PyOCIO_ProcessorType = {
     PyVarObject_HEAD_INIT(NULL, 0)              //ob_size
     OCIO_PYTHON_NAMESPACE(Processor),           //tp_name
     sizeof(PyOCIO_Processor),                   //tp_basicsize
     0,                                          //tp_itemsize
     (destructor)PyOCIO_Processor_delete,        //tp_dealloc
     0,                                          //tp_print
     0,                                          //tp_getattr
     0,                                          //tp_setattr
     0,                                          //tp_compare
     0,                                          //tp_repr
     0,                                          //tp_as_number
     0,                                          //tp_as_sequence
     0,                                          //tp_as_mapping
     0,                                          //tp_hash 
     0,                                          //tp_call
     0,                                          //tp_str
     0,                                          //tp_getattro
コード例 #3
0
         (PyCFunction) PyOCIO_ProcessorMetadata_getLooks, METH_NOARGS, PROCESSORMETADATA_GETLOOKS__DOC__ },
         { NULL, NULL, 0, NULL }
     };
     
     const char initMessage[] =
         "ProcessorMetadata objects cannot be instantiated directly. "
         "Please use processor.getMetadata() instead.";
     
 }
 
 ///////////////////////////////////////////////////////////////////////////
 ///
 
 PyTypeObject PyOCIO_ProcessorMetadataType = {
     PyVarObject_HEAD_INIT(NULL, 0)              //ob_size
     OCIO_PYTHON_NAMESPACE(ProcessorMetadata),   //tp_name
     sizeof(PyOCIO_ProcessorMetadata),           //tp_basicsize
     0,                                          //tp_itemsize
     (destructor)PyOCIO_ProcessorMetadata_delete,//tp_dealloc
     0,                                          //tp_print
     0,                                          //tp_getattr
     0,                                          //tp_setattr
     0,                                          //tp_compare
     0,                                          //tp_repr
     0,                                          //tp_as_number
     0,                                          //tp_as_sequence
     0,                                          //tp_as_mapping
     0,                                          //tp_hash 
     0,                                          //tp_call
     0,                                          //tp_str
     0,                                          //tp_getattro
コード例 #4
0
ファイル: PyTransform.cpp プロジェクト: KevinJW/OpenColorIO
         (PyCFunction) PyOCIO_Transform_createEditableCopy, METH_NOARGS, TRANSFORM_CREATEEDITABLECOPY__DOC__ },
         { "getDirection",
         (PyCFunction) PyOCIO_Transform_getDirection, METH_NOARGS, TRANSFORM_GETDIRECTION__DOC__ },
         { "setDirection",
         PyOCIO_Transform_setDirection, METH_VARARGS, TRANSFORM_SETDIRECTION__DOC__ },
         { NULL, NULL, 0, NULL }
     };
     
 }
 
 ///////////////////////////////////////////////////////////////////////////
 ///
 
 PyTypeObject PyOCIO_TransformType = {
     PyVarObject_HEAD_INIT(NULL, 0)              //ob_size
     OCIO_PYTHON_NAMESPACE(Transform),           //tp_name
     sizeof(PyOCIO_Transform),                   //tp_basicsize
     0,                                          //tp_itemsize
     (destructor) PyOCIO_Transform_delete,       //tp_dealloc
     0,                                          //tp_print
     0,                                          //tp_getattr
     0,                                          //tp_setattr
     0,                                          //tp_compare
     0,                                          //tp_repr
     0,                                          //tp_as_number
     0,                                          //tp_as_sequence
     0,                                          //tp_as_mapping
     0,                                          //tp_hash 
     0,                                          //tp_call
     (reprfunc)PyOCIO_Transform_str,             //tp_str
     0,                                          //tp_getattro