157     USER_DATA_OBJECT = 41
   165     def __lt__(self, other):
   166         if self.__class__ 
is other.__class__:
   167             return self.
value < other.value
   168         return NotImplemented
   170     def __gt__(self, other):
   171         if self.__class__ 
is other.__class__:
   172             return self.
value > other.value
   173         return NotImplemented
   175     def __eq__(self, other):
   176         if self.__class__ 
is other.__class__:
   177             return self.
value == other.value
   178         return NotImplemented
   180     def get_vx_enum_name(type) :
   181         if type == Type.NULL :
   183         elif type == Type.RAW_IMAGE :
   184             return "TIVX_TYPE_" + type.name
   186             return "VX_TYPE_" + type.name
   188     def get_vx_name(type) :
   189         if type == Type.RAW_IMAGE :
   190             return "tivx_" + type.name.lower()
   192             return "vx_" + type.name.lower()
   194     def is_scalar_type(type) :
   195         if type > Type.INVALID 
and type < Type.REFERENCE :
   197         if type == Type.SCALAR :
   201     def is_array_type(type) :
   202         if type > Type.INVALID 
and type < Type.REFERENCE :
   204         if type == Type.RECTANGLE :
   206         if type == Type.KEYPOINT :
   208         if type == Type.COORDINATES2D :
   210         if type == Type.COORDINATES3D :
   214     def get_obj_desc_name(type):
   215         if Type.is_scalar_type(type) :
   217         return "tivx_obj_desc_" + type.name.lower() +  
"_t"   219     def get_scalar_obj_desc_data_name(type) :
   220         if Type.is_scalar_type(type) :
   221             if type 
is Type.CHAR :
   223             if type 
is Type.INT8 :
   225             if type 
is Type.UINT8 :
   227             if type 
is Type.INT16:
   229             if type 
is Type.UINT16:
   231             if type 
is Type.INT32:
   233             if type 
is Type.UINT32:
   235             if type 
is Type.INT64:
   237             if type 
is Type.UINT64:
   239             if type 
is Type.FLOAT32:
   241             if type 
is Type.FLOAT64:
   243             if type 
is Type.ENUM :
   245             if type 
is Type.SIZE :
   247             if type 
is Type.DF_IMAGE:
   249             if type 
is Type.BOOL :
   303     def get_vx_enum_name(df_format) :
   304         if df_format == DfImage.P12 
or df_format == DfImage.NV12_P12 
or df_format == DfImage.RGB565 
or df_format == DfImage.BGRX :
   305             return "TIVX_DF_IMAGE_" + df_format.name
   307             return "VX_DF_IMAGE_" + df_format.name
   309     def get_vx_name(df_format) :
   310         if df_format == DfImage.P12 
or df_format == DfImage.NV12_P12 
or df_format == DfImage.RGB565 
or df_format == DfImage.BGRX :
   311             return "tivx_df_image_e"   313             return "vx_df_image_e"   315     def get_df_enum_from_string(full_df_name) :
   316         index = full_df_name.find(
"VX_DF_IMAGE_")
   318             newstr = full_df_name.replace(
"VX_DF_IMAGE_", 
"")
   319             if newstr 
in DfImage.__members__ :
   320                 return DfImage[newstr]
   322             newstr = full_df_name.replace(
"TIVX_DF_IMAGE_", 
"")
   323             if newstr 
in DfImage.__members__ :
   324                 return DfImage[newstr]
   325         return DfImage.INVALID
   327     def get_num_planes(df_format) :
   328         if df_format == DfImage.NV12 
or df_format == DfImage.NV21 
or df_format == DfImage.NV12_P12 :
   330         if df_format == DfImage.IYUV 
or df_format == DfImage.YUV4 :
   367     def get_vx_enum_name(type) :
   368         if type == Channel.C0 :
   369             return "VX_CHANNEL_0"   370         if type == Channel.C1 :
   371             return "VX_CHANNEL_1"   372         if type == Channel.C2 :
   373             return "VX_CHANNEL_2"   374         if type == Channel.C3 :
   375             return "VX_CHANNEL_3"   376         return "VX_CHANNEL_" + type.name
   378     def get_vx_name(type) :
   379         return "vx_channel_e"   396     def get_vx_enum_name(type) :
   397         if type.name == 
"IPU2" :
   398             return "TIVX_CPU_ID_IPU2_0"   400             return "TIVX_CPU_ID_" + type.name
   462     def get_vx_enum_name(type) :
   463         return "TIVX_TARGET_" + type.name
   465     def get_target_folder_name(type) :
   466         if target == Target.DSP1 :
   468         if target == Target.DSP2 :
   470         if target == Target.EVE1 :
   472         if target == Target.EVE2 :
   474         if target == Target.EVE3 :
   476         if target == Target.EVE4 :
   478         if target == Target.A15_0 :
   480         if target == Target.MCU2_0 :
   482         if target == Target.MCU2_1 :
   484         if target == Target.IPU2 :
   486         if target == Target.VPAC_NF :
   488         if target == Target.VPAC_LDC1 :
   490         if target == Target.VPAC_LDC2 :
   492         if target == Target.VPAC_MSC1 :
   494         if target == Target.VPAC_MSC2 :
   496         if target == Target.DMPAC_SDE :
   498         if target == Target.DMPAC_DOF :
   500         if target == Target.VPAC_VISS1 :
   502         if target == Target.DSP_C7_1 :
   504         if target == Target.MPU_0 :
   508     def is_j6_target(target) :
   509         if target == Target.DSP1 :
   511         if target == Target.DSP2 :
   513         if target == Target.EVE1 :
   515         if target == Target.EVE2 :
   517         if target == Target.EVE3 :
   519         if target == Target.EVE4 :
   521         if target == Target.A15_0 :
   523         if target == Target.MCU2_0 :
   525         if target == Target.MCU2_1 :
   527         if target == Target.IPU2 :
   532     def get_cpu(target) :
   533         if target == Target.DSP1 :
   535         if target == Target.DSP2 :
   537         if target == Target.EVE1 :
   539         if target == Target.EVE2 :
   541         if target == Target.EVE3 :
   543         if target == Target.EVE4 :
   545         if target == Target.A15_0 :
   547         if target == Target.MCU2_0 :
   549         if target == Target.MCU2_1 :
   551         if target == Target.IPU2 :
   553         if target == Target.VPAC_NF :
   555         if target == Target.VPAC_LDC1 :
   557         if target == Target.VPAC_LDC2 :
   559         if target == Target.VPAC_MSC1 :
   561         if target == Target.VPAC_MSC2 :
   563         if target == Target.DMPAC_SDE :
   565         if target == Target.DMPAC_DOF :
   567         if target == Target.VPAC_VISS1 :
   569         if target == Target.DSP_C7_1 :
   571         if target == Target.MPU_0 :
   590     def get_vx_enum_name(type) :
   591         return "VX_CONVERT_POLICY_" + type.name
   593     def get_vx_name(type) :
   594         return "vx_convert_policy_e"   611     def get_vx_enum_name(type) :
   612         return "VX_ROUND_POLICY_" + type.name
   614     def get_vx_name(type) :
   615         return "vx_round_policy_e"   634     def get_vx_enum_name(type) :
   635         return "VX_NONLINEAR_FILTER_" + type.name
   637     def get_vx_name(type) :
   638         return "vx_non_linear_filter_e"   659     def get_vx_enum_name(type) :
   660         return "VX_PATTERN_" + type.name
   662     def get_vx_name(type) :
   663         return "vx_pattern_e"   682     def get_vx_enum_name(type) :
   683         return "VX_INTERPOLATION_" + type.name
   685     def get_vx_name(type) :
   686         return "vx_interpolation_type_e"   703     def get_vx_enum_name(type) :
   704         return "vx_" + type.name.lower() + 
"_e"   706     def get_vx_name(type) :
   724     def get_vx_enum_name(type) :
   725         return "VX_NORM_" + type.name
   727     def get_vx_name(type) :
   747     def get_vx_enum_name(type) :
   748         return "VX_" + type.name
   750     def get_vx_name(type) :
   751         return "vx_direction_e"   753     def get_access_type(type) :
   754         if type == Direction.INPUT:
   755             return "VX_READ_ONLY"   756         if type == Direction.OUTPUT:
   757             return "VX_WRITE_ONLY"   758         if type == Direction.BIDIRECTIONAL:
   759             return "VX_READ_WRITE"   762     def get_doxygen_name(type) :
   763         if type == Direction.INPUT:
   765         if type == Direction.OUTPUT:
   767         if type == Direction.BIDIRECTIONAL:
   787     def get_vx_enum_name(type) :
   788         return "VX_PARAMETER_STATE_" + type.name
   790     def get_vx_name(type) :
   791         return "vx_parameter_state_e"   808     def get_vx_enum_name(type) :
   809         return "VX_SCALE_PYRAMID_" + type.name
   826     def get_vx_enum_name(type) :
   827         return "VX_THRESHOLD_TYPE_" + type.name
   829     def get_vx_name(type) :
   830         return "vx_threshold_type_e"   850     def get_vx_enum_name(type) :
   851         return "VX_TERM_CRITERIA_" + type.name
   853     def get_vx_name(type) :
   854         return "vx_termination_criteria_e" Image channel (OpenVX equivalent = vx_channel_e) 
Parameter state (OpenVX equivalent = vx_parameter_state_e) 
Interpolation type (OpenVX equivalent = vx_interpolation_type_e) 
Target on which to execute a node (TIOVX equivalent = TIVX_TARGET_xxxx) 
Image data format (OpenVX equivalent = vx_df_image_e) 
Termination Criteria (OpenVX equivalent = vx_termination_criteria_e) 
Threshold Type (OpenVX equivalent = vx_threshold_type_e) 
Boolean type (OpenVX equivalent = vx_bool) 
Pyramid Scale (OpenVX equivalent = VX_SCALE_PYRAMID_xxx) 
Normalization type (OpenVX equivalent = vx_norm_type_e) 
Non linear filter type (OpenVX equivalent = vx_non_linear_filter_e) 
Object/Data type (OpenVX equivalent = vx_type_e) 
Conversion Policy (OpenVX equivalent = vx_convert_policy_e) 
Parameter direction (OpenVX equivalent = vx_direction_e) 
Round Policy (OpenVX equivalent = vx_round_policy_e) 
Matrix Patterns (OpenVX equivalent = vx_pattern_e)