Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10391 lines
361 KiB

  1. /* Copyright (C) Microsoft Corporation, 1998-1999. All rights reserved. */
  2. /* ASN.1 definitions for Whiteboard */
  3. #include <windows.h>
  4. #include "t126.h"
  5. ASN1module_t T126_Module = NULL;
  6. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(ASN1encoding_t enc, PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes *val);
  7. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(ASN1encoding_t enc, BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode *val);
  8. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut *val);
  9. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor_objectList_Seq(ASN1encoding_t enc, EditablePlaneCopyDescriptor_objectList_Seq *val);
  10. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq(ASN1encoding_t enc, WorkspaceCreatePDU_planeParameters_Seq *val);
  11. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters_Set(ASN1encoding_t enc, WorkspaceCreatePDU_viewParameters_Set *val);
  12. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits_Set(ASN1encoding_t enc, WorkspaceEditPDU_planeEdits_Set *val);
  13. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits(ASN1encoding_t enc, PWorkspaceEditPDU_planeEdits *val);
  14. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters(ASN1encoding_t enc, PWorkspaceCreatePDU_viewParameters *val);
  15. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters *val);
  16. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_protectedPlaneAccessList(ASN1encoding_t enc, PWorkspaceCreatePDU_protectedPlaneAccessList *val);
  17. static int ASN1CALL ASN1Enc_BitmapCreatePDU_checkpoints(ASN1encoding_t enc, PBitmapCreatePDU_checkpoints *val);
  18. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU_passedCheckpoints(ASN1encoding_t enc, PBitmapCheckpointPDU_passedCheckpoints *val);
  19. static int ASN1CALL ASN1Enc_WorkspaceIdentifier_archiveWorkspace(ASN1encoding_t enc, WorkspaceIdentifier_archiveWorkspace *val);
  20. static int ASN1CALL ASN1Enc_PixelAspectRatio_general(ASN1encoding_t enc, PixelAspectRatio_general *val);
  21. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor_objectList(ASN1encoding_t enc, PEditablePlaneCopyDescriptor_objectList *val);
  22. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters(ASN1encoding_t enc, ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters *val);
  23. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab_generalCIELabParameters(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab_generalCIELabParameters *val);
  24. static int ASN1CALL ASN1Enc_BitmapRegion_lowerRight(ASN1encoding_t enc, BitmapRegion_lowerRight *val);
  25. static int ASN1CALL ASN1Enc_BitmapRegion_upperLeft(ASN1encoding_t enc, BitmapRegion_upperLeft *val);
  26. static int ASN1CALL ASN1Enc_BitmapData_dataCheckpoint(ASN1encoding_t enc, PBitmapData_dataCheckpoint *val);
  27. #define ASN1Enc_ArchiveHeader(x,y) 0
  28. #define ASN1Enc_ArchiveMode(x,y) 0
  29. static int ASN1CALL ASN1Enc_BitmapData(ASN1encoding_t enc, BitmapData *val);
  30. static int ASN1CALL ASN1Enc_BitmapHeaderT4(ASN1encoding_t enc, BitmapHeaderT4 *val);
  31. static int ASN1CALL ASN1Enc_BitmapHeaderT6(ASN1encoding_t enc, BitmapHeaderT6 *val);
  32. static int ASN1CALL ASN1Enc_BitmapRegion(ASN1encoding_t enc, BitmapRegion *val);
  33. static int ASN1CALL ASN1Enc_BitmapSize(ASN1encoding_t enc, BitmapSize *val);
  34. static int ASN1CALL ASN1Enc_ColorCIELab(ASN1encoding_t enc, ColorCIELab *val);
  35. static int ASN1CALL ASN1Enc_ColorCIExyChromaticity(ASN1encoding_t enc, ColorCIExyChromaticity *val);
  36. static int ASN1CALL ASN1Enc_ColorIndexTable(ASN1encoding_t enc, PColorIndexTable *val);
  37. static int ASN1CALL ASN1Enc_ColorRGB(ASN1encoding_t enc, ColorRGB *val);
  38. static int ASN1CALL ASN1Enc_ColorYCbCr(ASN1encoding_t enc, ColorYCbCr *val);
  39. static int ASN1CALL ASN1Enc_DSMCCTap(ASN1encoding_t enc, DSMCCTap *val);
  40. static int ASN1CALL ASN1Enc_NonStandardIdentifier(ASN1encoding_t enc, NonStandardIdentifier *val);
  41. static int ASN1CALL ASN1Enc_NonStandardParameter(ASN1encoding_t enc, NonStandardParameter *val);
  42. static int ASN1CALL ASN1Enc_PenNib(ASN1encoding_t enc, PenNib *val);
  43. static int ASN1CALL ASN1Enc_PixelAspectRatio(ASN1encoding_t enc, PixelAspectRatio *val);
  44. static int ASN1CALL ASN1Enc_PlaneProtection(ASN1encoding_t enc, PlaneProtection *val);
  45. static int ASN1CALL ASN1Enc_PlaneUsage(ASN1encoding_t enc, PlaneUsage *val);
  46. static int ASN1CALL ASN1Enc_PointList(ASN1encoding_t enc, PointList *val);
  47. static int ASN1CALL ASN1Enc_PointDiff4(ASN1encoding_t enc, PointDiff4 *val);
  48. static int ASN1CALL ASN1Enc_PointDiff8(ASN1encoding_t enc, PointDiff8 *val);
  49. static int ASN1CALL ASN1Enc_PointDiff16(ASN1encoding_t enc, PointDiff16 *val);
  50. static int ASN1CALL ASN1Enc_RemoteEventDestinationAddress(ASN1encoding_t enc, RemoteEventDestinationAddress *val);
  51. static int ASN1CALL ASN1Enc_RemoteEventPermission(ASN1encoding_t enc, RemoteEventPermission *val);
  52. static int ASN1CALL ASN1Enc_RotationSpecifier(ASN1encoding_t enc, RotationSpecifier *val);
  53. static int ASN1CALL ASN1Enc_SoftCopyDataPlaneAddress(ASN1encoding_t enc, SoftCopyDataPlaneAddress *val);
  54. static int ASN1CALL ASN1Enc_SoftCopyPointerPlaneAddress(ASN1encoding_t enc, SoftCopyPointerPlaneAddress *val);
  55. static int ASN1CALL ASN1Enc_SourceDisplayIndicator(ASN1encoding_t enc, SourceDisplayIndicator *val);
  56. #define ASN1Enc_VideoWindowDestinationAddress(x,y) 0
  57. #define ASN1Enc_VideoSourceIdentifier(x,y) 0
  58. #define ASN1Enc_VideoWindowDeletePDU(x,y) 0
  59. static int ASN1CALL ASN1Enc_ViewState(ASN1encoding_t enc, ViewState *val);
  60. static int ASN1CALL ASN1Enc_WorkspaceColor(ASN1encoding_t enc, WorkspaceColor *val);
  61. static int ASN1CALL ASN1Enc_WorkspaceDeleteReason(ASN1encoding_t enc, WorkspaceDeleteReason *val);
  62. static int ASN1CALL ASN1Enc_WorkspaceIdentifier(ASN1encoding_t enc, WorkspaceIdentifier *val);
  63. static int ASN1CALL ASN1Enc_WorkspacePoint(ASN1encoding_t enc, WorkspacePoint *val);
  64. static int ASN1CALL ASN1Enc_WorkspaceRegion(ASN1encoding_t enc, WorkspaceRegion *val);
  65. static int ASN1CALL ASN1Enc_WorkspaceSize(ASN1encoding_t enc, WorkspaceSize *val);
  66. static int ASN1CALL ASN1Enc_WorkspaceViewState(ASN1encoding_t enc, WorkspaceViewState *val);
  67. #define ASN1Enc_ArchiveClosePDU(x,y) 0
  68. #define ASN1Enc_ArchiveOpenPDU(x,y) 0
  69. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU(ASN1encoding_t enc, BitmapCheckpointPDU *val);
  70. static int ASN1CALL ASN1Enc_BitmapCreateContinuePDU(ASN1encoding_t enc, BitmapCreateContinuePDU *val);
  71. static int ASN1CALL ASN1Enc_BitmapDeletePDU(ASN1encoding_t enc, BitmapDeletePDU *val);
  72. static int ASN1CALL ASN1Enc_BitmapEditPDU(ASN1encoding_t enc, BitmapEditPDU *val);
  73. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU(ASN1encoding_t enc, ConductorPrivilegeGrantPDU *val);
  74. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU(ASN1encoding_t enc, ConductorPrivilegeRequestPDU *val);
  75. static int ASN1CALL ASN1Enc_DrawingDeletePDU(ASN1encoding_t enc, DrawingDeletePDU *val);
  76. static int ASN1CALL ASN1Enc_FontPDU(ASN1encoding_t enc, FontPDU *val);
  77. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU(ASN1encoding_t enc, RemoteEventPermissionGrantPDU *val);
  78. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU(ASN1encoding_t enc, RemoteEventPermissionRequestPDU *val);
  79. static int ASN1CALL ASN1Enc_RemotePrintPDU(ASN1encoding_t enc, RemotePrintPDU *val);
  80. static int ASN1CALL ASN1Enc_SINonStandardPDU(ASN1encoding_t enc, SINonStandardPDU *val);
  81. #define ASN1Enc_TextCreatePDU(x,y) 0
  82. #define ASN1Enc_TextDeletePDU(x,y) 0
  83. #define ASN1Enc_TextEditPDU(x,y) 0
  84. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU(ASN1encoding_t enc, WorkspaceCreatePDU *val);
  85. static int ASN1CALL ASN1Enc_WorkspaceCreateAcknowledgePDU(ASN1encoding_t enc, WorkspaceCreateAcknowledgePDU *val);
  86. static int ASN1CALL ASN1Enc_WorkspaceDeletePDU(ASN1encoding_t enc, WorkspaceDeletePDU *val);
  87. static int ASN1CALL ASN1Enc_WorkspaceEditPDU(ASN1encoding_t enc, WorkspaceEditPDU *val);
  88. static int ASN1CALL ASN1Enc_WorkspaceReadyPDU(ASN1encoding_t enc, WorkspaceReadyPDU *val);
  89. static int ASN1CALL ASN1Enc_WorkspaceRefreshStatusPDU(ASN1encoding_t enc, WorkspaceRefreshStatusPDU *val);
  90. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action(ASN1encoding_t enc, WorkspaceEditPDU_viewEdits_Set_action *val);
  91. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_usage(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters_Seq_usage *val);
  92. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB_palette(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteRGB_palette *val);
  93. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab_palette(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteCIELab_palette *val);
  94. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr_palette(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteYCbCr_palette *val);
  95. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB_generalRGBParameters_primaries(ASN1encoding_t enc, ColorAccuracyEnhancementRGB_generalRGBParameters_primaries *val);
  96. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries *val);
  97. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set(ASN1encoding_t enc, WorkspaceEditPDU_viewEdits_Set *val);
  98. static int ASN1CALL ASN1Enc_WorkspaceRefreshStatusPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceRefreshStatusPDU_nonStandardParameters *val);
  99. static int ASN1CALL ASN1Enc_WorkspaceReadyPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceReadyPDU_nonStandardParameters *val);
  100. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspacePlaneCopyPDU_nonStandardParameters *val);
  101. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceEditPDU_nonStandardParameters *val);
  102. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits *val);
  103. static int ASN1CALL ASN1Enc_WorkspaceDeletePDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceDeletePDU_nonStandardParameters *val);
  104. static int ASN1CALL ASN1Enc_WorkspaceCreateAcknowledgePDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceCreateAcknowledgePDU_nonStandardParameters *val);
  105. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceCreatePDU_nonStandardParameters *val);
  106. static int ASN1CALL ASN1Enc_TextEditPDU_nonStandardParameters(ASN1encoding_t enc, PTextEditPDU_nonStandardParameters *val);
  107. static int ASN1CALL ASN1Enc_TextDeletePDU_nonStandardParameters(ASN1encoding_t enc, PTextDeletePDU_nonStandardParameters *val);
  108. static int ASN1CALL ASN1Enc_TextCreatePDU_nonStandardParameters(ASN1encoding_t enc, PTextCreatePDU_nonStandardParameters *val);
  109. static int ASN1CALL ASN1Enc_RemotePrintPDU_nonStandardParameters(ASN1encoding_t enc, PRemotePrintPDU_nonStandardParameters *val);
  110. static int ASN1CALL ASN1Enc_RemotePointingDeviceEventPDU_nonStandardParameters(ASN1encoding_t enc, PRemotePointingDeviceEventPDU_nonStandardParameters *val);
  111. static int ASN1CALL ASN1Enc_RemoteKeyboardEventPDU_nonStandardParameters(ASN1encoding_t enc, PRemoteKeyboardEventPDU_nonStandardParameters *val);
  112. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU_nonStandardParameters(ASN1encoding_t enc, PRemoteEventPermissionRequestPDU_nonStandardParameters *val);
  113. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU_remoteEventPermissionList(ASN1encoding_t enc, PRemoteEventPermissionRequestPDU_remoteEventPermissionList *val);
  114. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU_nonStandardParameters(ASN1encoding_t enc, PRemoteEventPermissionGrantPDU_nonStandardParameters *val);
  115. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU_remoteEventPermissionList(ASN1encoding_t enc, PRemoteEventPermissionGrantPDU_remoteEventPermissionList *val);
  116. static int ASN1CALL ASN1Enc_FontPDU_nonStandardParameters(ASN1encoding_t enc, PFontPDU_nonStandardParameters *val);
  117. static int ASN1CALL ASN1Enc_DrawingEditPDU_nonStandardParameters(ASN1encoding_t enc, PDrawingEditPDU_nonStandardParameters *val);
  118. static int ASN1CALL ASN1Enc_DrawingDeletePDU_nonStandardParameters(ASN1encoding_t enc, PDrawingDeletePDU_nonStandardParameters *val);
  119. static int ASN1CALL ASN1Enc_DrawingCreatePDU_nonStandardParameters(ASN1encoding_t enc, PDrawingCreatePDU_nonStandardParameters *val);
  120. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU_nonStandardParameters(ASN1encoding_t enc, PConductorPrivilegeRequestPDU_nonStandardParameters *val);
  121. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU_nonStandardParameters(ASN1encoding_t enc, PConductorPrivilegeGrantPDU_nonStandardParameters *val);
  122. static int ASN1CALL ASN1Enc_BitmapEditPDU_nonStandardParameters(ASN1encoding_t enc, PBitmapEditPDU_nonStandardParameters *val);
  123. static int ASN1CALL ASN1Enc_BitmapDeletePDU_nonStandardParameters(ASN1encoding_t enc, PBitmapDeletePDU_nonStandardParameters *val);
  124. static int ASN1CALL ASN1Enc_BitmapCreateContinuePDU_nonStandardParameters(ASN1encoding_t enc, PBitmapCreateContinuePDU_nonStandardParameters *val);
  125. static int ASN1CALL ASN1Enc_BitmapCreatePDU_nonStandardParameters(ASN1encoding_t enc, PBitmapCreatePDU_nonStandardParameters *val);
  126. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU_nonStandardParameters(ASN1encoding_t enc, PBitmapCheckpointPDU_nonStandardParameters *val);
  127. static int ASN1CALL ASN1Enc_BitmapAbortPDU_nonStandardParameters(ASN1encoding_t enc, PBitmapAbortPDU_nonStandardParameters *val);
  128. static int ASN1CALL ASN1Enc_ArchiveOpenPDU_nonStandardParameters(ASN1encoding_t enc, PArchiveOpenPDU_nonStandardParameters *val);
  129. static int ASN1CALL ASN1Enc_ArchiveErrorPDU_nonStandardParameters(ASN1encoding_t enc, PArchiveErrorPDU_nonStandardParameters *val);
  130. static int ASN1CALL ASN1Enc_ArchiveClosePDU_nonStandardParameters(ASN1encoding_t enc, PArchiveClosePDU_nonStandardParameters *val);
  131. static int ASN1CALL ASN1Enc_ArchiveAcknowledgePDU_nonStandardParameters(ASN1encoding_t enc, PArchiveAcknowledgePDU_nonStandardParameters *val);
  132. static int ASN1CALL ASN1Enc_WorkspaceViewAttribute_viewRegion(ASN1encoding_t enc, WorkspaceViewAttribute_viewRegion *val);
  133. static int ASN1CALL ASN1Enc_VideoWindowEditPDU_nonStandardParameters(ASN1encoding_t enc, PVideoWindowEditPDU_nonStandardParameters *val);
  134. static int ASN1CALL ASN1Enc_VideoWindowDeletePDU_nonStandardParameters(ASN1encoding_t enc, PVideoWindowDeletePDU_nonStandardParameters *val);
  135. static int ASN1CALL ASN1Enc_VideoWindowCreatePDU_nonStandardParameters(ASN1encoding_t enc, PVideoWindowCreatePDU_nonStandardParameters *val);
  136. static int ASN1CALL ASN1Enc_VideoSourceIdentifier_dSMCCConnBinder(ASN1encoding_t enc, PVideoSourceIdentifier_dSMCCConnBinder *val);
  137. static int ASN1CALL ASN1Enc_TransparencyMask_nonStandardParameters(ASN1encoding_t enc, PTransparencyMask_nonStandardParameters *val);
  138. static int ASN1CALL ASN1Enc_TransparencyMask_bitMask(ASN1encoding_t enc, TransparencyMask_bitMask *val);
  139. static int ASN1CALL ASN1Enc_PointListEdits_Seq(ASN1encoding_t enc, PointListEdits_Seq *val);
  140. static int ASN1CALL ASN1Enc_PointList_pointsDiff16(ASN1encoding_t enc, PPointList_pointsDiff16 *val);
  141. static int ASN1CALL ASN1Enc_PointList_pointsDiff8(ASN1encoding_t enc, PPointList_pointsDiff8 *val);
  142. static int ASN1CALL ASN1Enc_PointList_pointsDiff4(ASN1encoding_t enc, PPointList_pointsDiff4 *val);
  143. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters *val);
  144. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace *val);
  145. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB_generalRGBParameters(ASN1encoding_t enc, ColorAccuracyEnhancementRGB_generalRGBParameters *val);
  146. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB_predefinedRGBSpace(ASN1encoding_t enc, ColorAccuracyEnhancementRGB_predefinedRGBSpace *val);
  147. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(ASN1encoding_t enc, ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace *val);
  148. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab_predefinedCIELabSpace *val);
  149. #define ASN1Enc_ArchiveError(x,y) 0
  150. #define ASN1Enc_ArchiveOpenResult(x,y) 0
  151. static int ASN1CALL ASN1Enc_BitmapAbortReason(ASN1encoding_t enc, BitmapAbortReason *val);
  152. static int ASN1CALL ASN1Enc_BitmapDestinationAddress(ASN1encoding_t enc, BitmapDestinationAddress *val);
  153. static int ASN1CALL ASN1Enc_ButtonEvent(ASN1encoding_t enc, ButtonEvent *val);
  154. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab *val);
  155. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementGreyscale(ASN1encoding_t enc, ColorAccuracyEnhancementGreyscale *val);
  156. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB(ASN1encoding_t enc, ColorAccuracyEnhancementRGB *val);
  157. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr *val);
  158. static int ASN1CALL ASN1Enc_ColorResolutionModeSpecifier(ASN1encoding_t enc, ColorResolutionModeSpecifier *val);
  159. static int ASN1CALL ASN1Enc_ConductorPrivilege(ASN1encoding_t enc, ConductorPrivilege *val);
  160. static int ASN1CALL ASN1Enc_DrawingDestinationAddress(ASN1encoding_t enc, DrawingDestinationAddress *val);
  161. static int ASN1CALL ASN1Enc_DrawingType(ASN1encoding_t enc, DrawingType *val);
  162. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor(ASN1encoding_t enc, EditablePlaneCopyDescriptor *val);
  163. #define ASN1Enc_KeyCode(x,y) 0
  164. static int ASN1CALL ASN1Enc_KeyModifier(ASN1encoding_t enc, KeyModifier *val);
  165. #define ASN1Enc_KeyPressState(x,y) 0
  166. static int ASN1CALL ASN1Enc_LineStyle(ASN1encoding_t enc, LineStyle *val);
  167. static int ASN1CALL ASN1Enc_PermanentPlaneCopyDescriptor(ASN1encoding_t enc, PermanentPlaneCopyDescriptor *val);
  168. static int ASN1CALL ASN1Enc_PlaneAttribute(ASN1encoding_t enc, PlaneAttribute *val);
  169. static int ASN1CALL ASN1Enc_PointListEdits(ASN1encoding_t enc, PointListEdits *val);
  170. static int ASN1CALL ASN1Enc_TransparencyMask(ASN1encoding_t enc, TransparencyMask *val);
  171. #define ASN1Enc_VideoWindowAttribute(x,y) 0
  172. #define ASN1Enc_VideoWindowCreatePDU(x,y) 0
  173. #define ASN1Enc_VideoWindowEditPDU(x,y) 0
  174. static int ASN1CALL ASN1Enc_WorkspaceAttribute(ASN1encoding_t enc, WorkspaceAttribute *val);
  175. static int ASN1CALL ASN1Enc_WorkspaceViewAttribute(ASN1encoding_t enc, WorkspaceViewAttribute *val);
  176. #define ASN1Enc_ArchiveAcknowledgePDU(x,y) 0
  177. #define ASN1Enc_ArchiveErrorPDU(x,y) 0
  178. static int ASN1CALL ASN1Enc_BitmapAbortPDU(ASN1encoding_t enc, BitmapAbortPDU *val);
  179. static int ASN1CALL ASN1Enc_DrawingCreatePDU(ASN1encoding_t enc, DrawingCreatePDU *val);
  180. static int ASN1CALL ASN1Enc_DrawingEditPDU(ASN1encoding_t enc, DrawingEditPDU *val);
  181. #define ASN1Enc_RemoteKeyboardEventPDU(x,y) 0
  182. static int ASN1CALL ASN1Enc_RemotePointingDeviceEventPDU(ASN1encoding_t enc, RemotePointingDeviceEventPDU *val);
  183. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_editView(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits_Set_action_editView *val);
  184. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_createNewView(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits_Set_action_createNewView *val);
  185. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits_Set_planeAttributes(ASN1encoding_t enc, PWorkspaceEditPDU_planeEdits_Set_planeAttributes *val);
  186. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(ASN1encoding_t enc, PWorkspaceCreatePDU_viewParameters_Set_viewAttributes *val);
  187. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes *val);
  188. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr(ASN1encoding_t enc, ColorPalette_colorLookUpTable_paletteYCbCr *val);
  189. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab(ASN1encoding_t enc, ColorPalette_colorLookUpTable_paletteCIELab *val);
  190. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB(ASN1encoding_t enc, ColorPalette_colorLookUpTable_paletteRGB *val);
  191. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU_copyDescriptor(ASN1encoding_t enc, WorkspacePlaneCopyPDU_copyDescriptor *val);
  192. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_attributeEdits(ASN1encoding_t enc, PWorkspaceEditPDU_attributeEdits *val);
  193. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_workspaceAttributes(ASN1encoding_t enc, PWorkspaceCreatePDU_workspaceAttributes *val);
  194. static int ASN1CALL ASN1Enc_RemoteKeyboardEventPDU_keyModifierStates(ASN1encoding_t enc, PRemoteKeyboardEventPDU_keyModifierStates *val);
  195. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU_privilegeList(ASN1encoding_t enc, PConductorPrivilegeRequestPDU_privilegeList *val);
  196. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU_privilegeList(ASN1encoding_t enc, PConductorPrivilegeGrantPDU_privilegeList *val);
  197. static int ASN1CALL ASN1Enc_VideoWindowEditPDU_attributeEdits(ASN1encoding_t enc, PVideoWindowEditPDU_attributeEdits *val);
  198. static int ASN1CALL ASN1Enc_VideoWindowCreatePDU_attributes(ASN1encoding_t enc, PVideoWindowCreatePDU_attributes *val);
  199. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_cieLab(ASN1encoding_t enc, ColorSpaceSpecifier_cieLab *val);
  200. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_rgb(ASN1encoding_t enc, ColorSpaceSpecifier_rgb *val);
  201. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_yCbCr(ASN1encoding_t enc, ColorSpaceSpecifier_yCbCr *val);
  202. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_greyscale(ASN1encoding_t enc, ColorSpaceSpecifier_greyscale *val);
  203. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable(ASN1encoding_t enc, ColorPalette_colorLookUpTable *val);
  204. static int ASN1CALL ASN1Enc_BitmapAttribute(ASN1encoding_t enc, BitmapAttribute *val);
  205. static int ASN1CALL ASN1Enc_ColorPalette(ASN1encoding_t enc, ColorPalette *val);
  206. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier(ASN1encoding_t enc, ColorSpaceSpecifier *val);
  207. static int ASN1CALL ASN1Enc_DrawingAttribute(ASN1encoding_t enc, DrawingAttribute *val);
  208. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU(ASN1encoding_t enc, WorkspacePlaneCopyPDU *val);
  209. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed_colorMappingMode_paletteMap(ASN1encoding_t enc, BitmapHeaderUncompressed_colorMappingMode_paletteMap *val);
  210. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed_colorMappingMode_directMap(ASN1encoding_t enc, BitmapHeaderUncompressed_colorMappingMode_directMap *val);
  211. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap(ASN1encoding_t enc, BitmapHeaderT82_colorMappingMode_paletteMap *val);
  212. static int ASN1CALL ASN1Enc_DrawingEditPDU_attributeEdits(ASN1encoding_t enc, PDrawingEditPDU_attributeEdits *val);
  213. static int ASN1CALL ASN1Enc_DrawingCreatePDU_attributes(ASN1encoding_t enc, PDrawingCreatePDU_attributes *val);
  214. static int ASN1CALL ASN1Enc_BitmapEditPDU_attributeEdits(ASN1encoding_t enc, PBitmapEditPDU_attributeEdits *val);
  215. static int ASN1CALL ASN1Enc_BitmapCreatePDU_attributes(ASN1encoding_t enc, PBitmapCreatePDU_attributes *val);
  216. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode(ASN1encoding_t enc, BitmapHeaderT82_colorMappingMode *val);
  217. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed_colorMappingMode(ASN1encoding_t enc, BitmapHeaderUncompressed_colorMappingMode *val);
  218. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed(ASN1encoding_t enc, BitmapHeaderUncompressed *val);
  219. static int ASN1CALL ASN1Enc_BitmapHeaderT81(ASN1encoding_t enc, BitmapHeaderT81 *val);
  220. static int ASN1CALL ASN1Enc_BitmapHeaderT82(ASN1encoding_t enc, BitmapHeaderT82 *val);
  221. static int ASN1CALL ASN1Enc_BitmapCreatePDU_bitmapFormatHeader(ASN1encoding_t enc, BitmapCreatePDU_bitmapFormatHeader *val);
  222. static int ASN1CALL ASN1Enc_BitmapCreatePDU(ASN1encoding_t enc, BitmapCreatePDU *val);
  223. static int ASN1CALL ASN1Enc_SIPDU(ASN1encoding_t enc, SIPDU *val);
  224. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(ASN1decoding_t dec, PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes *val);
  225. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(ASN1decoding_t dec, BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode *val);
  226. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut *val);
  227. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor_objectList_Seq(ASN1decoding_t dec, EditablePlaneCopyDescriptor_objectList_Seq *val);
  228. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq(ASN1decoding_t dec, WorkspaceCreatePDU_planeParameters_Seq *val);
  229. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters_Set(ASN1decoding_t dec, WorkspaceCreatePDU_viewParameters_Set *val);
  230. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits_Set(ASN1decoding_t dec, WorkspaceEditPDU_planeEdits_Set *val);
  231. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits(ASN1decoding_t dec, PWorkspaceEditPDU_planeEdits *val);
  232. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters(ASN1decoding_t dec, PWorkspaceCreatePDU_viewParameters *val);
  233. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters *val);
  234. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_protectedPlaneAccessList(ASN1decoding_t dec, PWorkspaceCreatePDU_protectedPlaneAccessList *val);
  235. static int ASN1CALL ASN1Dec_BitmapCreatePDU_checkpoints(ASN1decoding_t dec, PBitmapCreatePDU_checkpoints *val);
  236. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU_passedCheckpoints(ASN1decoding_t dec, PBitmapCheckpointPDU_passedCheckpoints *val);
  237. static int ASN1CALL ASN1Dec_WorkspaceIdentifier_archiveWorkspace(ASN1decoding_t dec, WorkspaceIdentifier_archiveWorkspace *val);
  238. static int ASN1CALL ASN1Dec_PixelAspectRatio_general(ASN1decoding_t dec, PixelAspectRatio_general *val);
  239. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor_objectList(ASN1decoding_t dec, PEditablePlaneCopyDescriptor_objectList *val);
  240. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters(ASN1decoding_t dec, ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters *val);
  241. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab_generalCIELabParameters(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab_generalCIELabParameters *val);
  242. static int ASN1CALL ASN1Dec_BitmapRegion_lowerRight(ASN1decoding_t dec, BitmapRegion_lowerRight *val);
  243. static int ASN1CALL ASN1Dec_BitmapRegion_upperLeft(ASN1decoding_t dec, BitmapRegion_upperLeft *val);
  244. static int ASN1CALL ASN1Dec_BitmapData_dataCheckpoint(ASN1decoding_t dec, PBitmapData_dataCheckpoint *val);
  245. #define ASN1Dec_ArchiveHeader(x,y) 0
  246. #define ASN1Dec_ArchiveMode(x,y) 0
  247. static int ASN1CALL ASN1Dec_BitmapData(ASN1decoding_t dec, BitmapData *val);
  248. static int ASN1CALL ASN1Dec_BitmapHeaderT4(ASN1decoding_t dec, BitmapHeaderT4 *val);
  249. static int ASN1CALL ASN1Dec_BitmapHeaderT6(ASN1decoding_t dec, BitmapHeaderT6 *val);
  250. static int ASN1CALL ASN1Dec_BitmapRegion(ASN1decoding_t dec, BitmapRegion *val);
  251. static int ASN1CALL ASN1Dec_BitmapSize(ASN1decoding_t dec, BitmapSize *val);
  252. static int ASN1CALL ASN1Dec_ColorCIELab(ASN1decoding_t dec, ColorCIELab *val);
  253. static int ASN1CALL ASN1Dec_ColorCIExyChromaticity(ASN1decoding_t dec, ColorCIExyChromaticity *val);
  254. static int ASN1CALL ASN1Dec_ColorIndexTable(ASN1decoding_t dec, PColorIndexTable *val);
  255. static int ASN1CALL ASN1Dec_ColorRGB(ASN1decoding_t dec, ColorRGB *val);
  256. static int ASN1CALL ASN1Dec_ColorYCbCr(ASN1decoding_t dec, ColorYCbCr *val);
  257. static int ASN1CALL ASN1Dec_DSMCCTap(ASN1decoding_t dec, DSMCCTap *val);
  258. static int ASN1CALL ASN1Dec_NonStandardIdentifier(ASN1decoding_t dec, NonStandardIdentifier *val);
  259. static int ASN1CALL ASN1Dec_NonStandardParameter(ASN1decoding_t dec, NonStandardParameter *val);
  260. static int ASN1CALL ASN1Dec_PenNib(ASN1decoding_t dec, PenNib *val);
  261. static int ASN1CALL ASN1Dec_PixelAspectRatio(ASN1decoding_t dec, PixelAspectRatio *val);
  262. static int ASN1CALL ASN1Dec_PlaneProtection(ASN1decoding_t dec, PlaneProtection *val);
  263. static int ASN1CALL ASN1Dec_PlaneUsage(ASN1decoding_t dec, PlaneUsage *val);
  264. static int ASN1CALL ASN1Dec_PointList(ASN1decoding_t dec, PointList *val);
  265. static int ASN1CALL ASN1Dec_PointDiff4(ASN1decoding_t dec, PointDiff4 *val);
  266. static int ASN1CALL ASN1Dec_PointDiff8(ASN1decoding_t dec, PointDiff8 *val);
  267. static int ASN1CALL ASN1Dec_PointDiff16(ASN1decoding_t dec, PointDiff16 *val);
  268. static int ASN1CALL ASN1Dec_RemoteEventDestinationAddress(ASN1decoding_t dec, RemoteEventDestinationAddress *val);
  269. static int ASN1CALL ASN1Dec_RemoteEventPermission(ASN1decoding_t dec, RemoteEventPermission *val);
  270. static int ASN1CALL ASN1Dec_RotationSpecifier(ASN1decoding_t dec, RotationSpecifier *val);
  271. static int ASN1CALL ASN1Dec_SoftCopyDataPlaneAddress(ASN1decoding_t dec, SoftCopyDataPlaneAddress *val);
  272. static int ASN1CALL ASN1Dec_SoftCopyPointerPlaneAddress(ASN1decoding_t dec, SoftCopyPointerPlaneAddress *val);
  273. static int ASN1CALL ASN1Dec_SourceDisplayIndicator(ASN1decoding_t dec, SourceDisplayIndicator *val);
  274. #define ASN1Dec_VideoWindowDestinationAddress(x,y) 0
  275. #define ASN1Dec_VideoSourceIdentifier(x,y) 0
  276. #define ASN1Dec_VideoWindowDeletePDU(x,y) 0
  277. static int ASN1CALL ASN1Dec_ViewState(ASN1decoding_t dec, ViewState *val);
  278. static int ASN1CALL ASN1Dec_WorkspaceColor(ASN1decoding_t dec, WorkspaceColor *val);
  279. static int ASN1CALL ASN1Dec_WorkspaceDeleteReason(ASN1decoding_t dec, WorkspaceDeleteReason *val);
  280. static int ASN1CALL ASN1Dec_WorkspaceIdentifier(ASN1decoding_t dec, WorkspaceIdentifier *val);
  281. static int ASN1CALL ASN1Dec_WorkspacePoint(ASN1decoding_t dec, WorkspacePoint *val);
  282. static int ASN1CALL ASN1Dec_WorkspaceRegion(ASN1decoding_t dec, WorkspaceRegion *val);
  283. static int ASN1CALL ASN1Dec_WorkspaceSize(ASN1decoding_t dec, WorkspaceSize *val);
  284. static int ASN1CALL ASN1Dec_WorkspaceViewState(ASN1decoding_t dec, WorkspaceViewState *val);
  285. #define ASN1Dec_ArchiveClosePDU(x,y) 0
  286. #define ASN1Dec_ArchiveOpenPDU(x,y) 0
  287. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU(ASN1decoding_t dec, BitmapCheckpointPDU *val);
  288. static int ASN1CALL ASN1Dec_BitmapCreateContinuePDU(ASN1decoding_t dec, BitmapCreateContinuePDU *val);
  289. static int ASN1CALL ASN1Dec_BitmapDeletePDU(ASN1decoding_t dec, BitmapDeletePDU *val);
  290. static int ASN1CALL ASN1Dec_BitmapEditPDU(ASN1decoding_t dec, BitmapEditPDU *val);
  291. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU(ASN1decoding_t dec, ConductorPrivilegeGrantPDU *val);
  292. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU(ASN1decoding_t dec, ConductorPrivilegeRequestPDU *val);
  293. static int ASN1CALL ASN1Dec_DrawingDeletePDU(ASN1decoding_t dec, DrawingDeletePDU *val);
  294. static int ASN1CALL ASN1Dec_FontPDU(ASN1decoding_t dec, FontPDU *val);
  295. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU(ASN1decoding_t dec, RemoteEventPermissionGrantPDU *val);
  296. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU(ASN1decoding_t dec, RemoteEventPermissionRequestPDU *val);
  297. static int ASN1CALL ASN1Dec_RemotePrintPDU(ASN1decoding_t dec, RemotePrintPDU *val);
  298. static int ASN1CALL ASN1Dec_SINonStandardPDU(ASN1decoding_t dec, SINonStandardPDU *val);
  299. #define ASN1Dec_TextCreatePDU(x,y) 0
  300. #define ASN1Dec_TextDeletePDU(x,y) 0
  301. #define ASN1Dec_TextEditPDU(x,y) 0
  302. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU(ASN1decoding_t dec, WorkspaceCreatePDU *val);
  303. static int ASN1CALL ASN1Dec_WorkspaceCreateAcknowledgePDU(ASN1decoding_t dec, WorkspaceCreateAcknowledgePDU *val);
  304. static int ASN1CALL ASN1Dec_WorkspaceDeletePDU(ASN1decoding_t dec, WorkspaceDeletePDU *val);
  305. static int ASN1CALL ASN1Dec_WorkspaceEditPDU(ASN1decoding_t dec, WorkspaceEditPDU *val);
  306. static int ASN1CALL ASN1Dec_WorkspaceReadyPDU(ASN1decoding_t dec, WorkspaceReadyPDU *val);
  307. static int ASN1CALL ASN1Dec_WorkspaceRefreshStatusPDU(ASN1decoding_t dec, WorkspaceRefreshStatusPDU *val);
  308. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action(ASN1decoding_t dec, WorkspaceEditPDU_viewEdits_Set_action *val);
  309. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_usage(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters_Seq_usage *val);
  310. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB_palette(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteRGB_palette *val);
  311. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab_palette(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteCIELab_palette *val);
  312. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr_palette(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteYCbCr_palette *val);
  313. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB_generalRGBParameters_primaries(ASN1decoding_t dec, ColorAccuracyEnhancementRGB_generalRGBParameters_primaries *val);
  314. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries *val);
  315. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set(ASN1decoding_t dec, WorkspaceEditPDU_viewEdits_Set *val);
  316. static int ASN1CALL ASN1Dec_WorkspaceRefreshStatusPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceRefreshStatusPDU_nonStandardParameters *val);
  317. static int ASN1CALL ASN1Dec_WorkspaceReadyPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceReadyPDU_nonStandardParameters *val);
  318. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspacePlaneCopyPDU_nonStandardParameters *val);
  319. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceEditPDU_nonStandardParameters *val);
  320. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits *val);
  321. static int ASN1CALL ASN1Dec_WorkspaceDeletePDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceDeletePDU_nonStandardParameters *val);
  322. static int ASN1CALL ASN1Dec_WorkspaceCreateAcknowledgePDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceCreateAcknowledgePDU_nonStandardParameters *val);
  323. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceCreatePDU_nonStandardParameters *val);
  324. static int ASN1CALL ASN1Dec_TextEditPDU_nonStandardParameters(ASN1decoding_t dec, PTextEditPDU_nonStandardParameters *val);
  325. static int ASN1CALL ASN1Dec_TextDeletePDU_nonStandardParameters(ASN1decoding_t dec, PTextDeletePDU_nonStandardParameters *val);
  326. static int ASN1CALL ASN1Dec_TextCreatePDU_nonStandardParameters(ASN1decoding_t dec, PTextCreatePDU_nonStandardParameters *val);
  327. static int ASN1CALL ASN1Dec_RemotePrintPDU_nonStandardParameters(ASN1decoding_t dec, PRemotePrintPDU_nonStandardParameters *val);
  328. static int ASN1CALL ASN1Dec_RemotePointingDeviceEventPDU_nonStandardParameters(ASN1decoding_t dec, PRemotePointingDeviceEventPDU_nonStandardParameters *val);
  329. static int ASN1CALL ASN1Dec_RemoteKeyboardEventPDU_nonStandardParameters(ASN1decoding_t dec, PRemoteKeyboardEventPDU_nonStandardParameters *val);
  330. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU_nonStandardParameters(ASN1decoding_t dec, PRemoteEventPermissionRequestPDU_nonStandardParameters *val);
  331. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU_remoteEventPermissionList(ASN1decoding_t dec, PRemoteEventPermissionRequestPDU_remoteEventPermissionList *val);
  332. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU_nonStandardParameters(ASN1decoding_t dec, PRemoteEventPermissionGrantPDU_nonStandardParameters *val);
  333. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU_remoteEventPermissionList(ASN1decoding_t dec, PRemoteEventPermissionGrantPDU_remoteEventPermissionList *val);
  334. static int ASN1CALL ASN1Dec_FontPDU_nonStandardParameters(ASN1decoding_t dec, PFontPDU_nonStandardParameters *val);
  335. static int ASN1CALL ASN1Dec_DrawingEditPDU_nonStandardParameters(ASN1decoding_t dec, PDrawingEditPDU_nonStandardParameters *val);
  336. static int ASN1CALL ASN1Dec_DrawingDeletePDU_nonStandardParameters(ASN1decoding_t dec, PDrawingDeletePDU_nonStandardParameters *val);
  337. static int ASN1CALL ASN1Dec_DrawingCreatePDU_nonStandardParameters(ASN1decoding_t dec, PDrawingCreatePDU_nonStandardParameters *val);
  338. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU_nonStandardParameters(ASN1decoding_t dec, PConductorPrivilegeRequestPDU_nonStandardParameters *val);
  339. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU_nonStandardParameters(ASN1decoding_t dec, PConductorPrivilegeGrantPDU_nonStandardParameters *val);
  340. static int ASN1CALL ASN1Dec_BitmapEditPDU_nonStandardParameters(ASN1decoding_t dec, PBitmapEditPDU_nonStandardParameters *val);
  341. static int ASN1CALL ASN1Dec_BitmapDeletePDU_nonStandardParameters(ASN1decoding_t dec, PBitmapDeletePDU_nonStandardParameters *val);
  342. static int ASN1CALL ASN1Dec_BitmapCreateContinuePDU_nonStandardParameters(ASN1decoding_t dec, PBitmapCreateContinuePDU_nonStandardParameters *val);
  343. static int ASN1CALL ASN1Dec_BitmapCreatePDU_nonStandardParameters(ASN1decoding_t dec, PBitmapCreatePDU_nonStandardParameters *val);
  344. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU_nonStandardParameters(ASN1decoding_t dec, PBitmapCheckpointPDU_nonStandardParameters *val);
  345. static int ASN1CALL ASN1Dec_BitmapAbortPDU_nonStandardParameters(ASN1decoding_t dec, PBitmapAbortPDU_nonStandardParameters *val);
  346. static int ASN1CALL ASN1Dec_ArchiveOpenPDU_nonStandardParameters(ASN1decoding_t dec, PArchiveOpenPDU_nonStandardParameters *val);
  347. static int ASN1CALL ASN1Dec_ArchiveErrorPDU_nonStandardParameters(ASN1decoding_t dec, PArchiveErrorPDU_nonStandardParameters *val);
  348. static int ASN1CALL ASN1Dec_ArchiveClosePDU_nonStandardParameters(ASN1decoding_t dec, PArchiveClosePDU_nonStandardParameters *val);
  349. static int ASN1CALL ASN1Dec_ArchiveAcknowledgePDU_nonStandardParameters(ASN1decoding_t dec, PArchiveAcknowledgePDU_nonStandardParameters *val);
  350. static int ASN1CALL ASN1Dec_WorkspaceViewAttribute_viewRegion(ASN1decoding_t dec, WorkspaceViewAttribute_viewRegion *val);
  351. static int ASN1CALL ASN1Dec_VideoWindowEditPDU_nonStandardParameters(ASN1decoding_t dec, PVideoWindowEditPDU_nonStandardParameters *val);
  352. static int ASN1CALL ASN1Dec_VideoWindowDeletePDU_nonStandardParameters(ASN1decoding_t dec, PVideoWindowDeletePDU_nonStandardParameters *val);
  353. static int ASN1CALL ASN1Dec_VideoWindowCreatePDU_nonStandardParameters(ASN1decoding_t dec, PVideoWindowCreatePDU_nonStandardParameters *val);
  354. static int ASN1CALL ASN1Dec_VideoSourceIdentifier_dSMCCConnBinder(ASN1decoding_t dec, PVideoSourceIdentifier_dSMCCConnBinder *val);
  355. static int ASN1CALL ASN1Dec_TransparencyMask_nonStandardParameters(ASN1decoding_t dec, PTransparencyMask_nonStandardParameters *val);
  356. static int ASN1CALL ASN1Dec_TransparencyMask_bitMask(ASN1decoding_t dec, TransparencyMask_bitMask *val);
  357. static int ASN1CALL ASN1Dec_PointListEdits_Seq(ASN1decoding_t dec, PointListEdits_Seq *val);
  358. static int ASN1CALL ASN1Dec_PointList_pointsDiff16(ASN1decoding_t dec, PPointList_pointsDiff16 *val);
  359. static int ASN1CALL ASN1Dec_PointList_pointsDiff8(ASN1decoding_t dec, PPointList_pointsDiff8 *val);
  360. static int ASN1CALL ASN1Dec_PointList_pointsDiff4(ASN1decoding_t dec, PPointList_pointsDiff4 *val);
  361. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters *val);
  362. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace *val);
  363. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB_generalRGBParameters(ASN1decoding_t dec, ColorAccuracyEnhancementRGB_generalRGBParameters *val);
  364. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB_predefinedRGBSpace(ASN1decoding_t dec, ColorAccuracyEnhancementRGB_predefinedRGBSpace *val);
  365. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(ASN1decoding_t dec, ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace *val);
  366. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab_predefinedCIELabSpace *val);
  367. #define ASN1Dec_ArchiveError(x,y) 0
  368. #define ASN1Dec_ArchiveOpenResult(x,y) 0
  369. static int ASN1CALL ASN1Dec_BitmapAbortReason(ASN1decoding_t dec, BitmapAbortReason *val);
  370. static int ASN1CALL ASN1Dec_BitmapDestinationAddress(ASN1decoding_t dec, BitmapDestinationAddress *val);
  371. static int ASN1CALL ASN1Dec_ButtonEvent(ASN1decoding_t dec, ButtonEvent *val);
  372. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab *val);
  373. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementGreyscale(ASN1decoding_t dec, ColorAccuracyEnhancementGreyscale *val);
  374. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB(ASN1decoding_t dec, ColorAccuracyEnhancementRGB *val);
  375. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr *val);
  376. static int ASN1CALL ASN1Dec_ColorResolutionModeSpecifier(ASN1decoding_t dec, ColorResolutionModeSpecifier *val);
  377. static int ASN1CALL ASN1Dec_ConductorPrivilege(ASN1decoding_t dec, ConductorPrivilege *val);
  378. static int ASN1CALL ASN1Dec_DrawingDestinationAddress(ASN1decoding_t dec, DrawingDestinationAddress *val);
  379. static int ASN1CALL ASN1Dec_DrawingType(ASN1decoding_t dec, DrawingType *val);
  380. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor(ASN1decoding_t dec, EditablePlaneCopyDescriptor *val);
  381. #define ASN1Dec_KeyCode(x,y) 0
  382. static int ASN1CALL ASN1Dec_KeyModifier(ASN1decoding_t dec, KeyModifier *val);
  383. #define ASN1Dec_KeyPressState(x,y) 0
  384. static int ASN1CALL ASN1Dec_LineStyle(ASN1decoding_t dec, LineStyle *val);
  385. static int ASN1CALL ASN1Dec_PermanentPlaneCopyDescriptor(ASN1decoding_t dec, PermanentPlaneCopyDescriptor *val);
  386. static int ASN1CALL ASN1Dec_PlaneAttribute(ASN1decoding_t dec, PlaneAttribute *val);
  387. static int ASN1CALL ASN1Dec_PointListEdits(ASN1decoding_t dec, PointListEdits *val);
  388. static int ASN1CALL ASN1Dec_TransparencyMask(ASN1decoding_t dec, TransparencyMask *val);
  389. #define ASN1Dec_VideoWindowAttribute(x,y) 0
  390. #define ASN1Dec_VideoWindowCreatePDU(x,y) 0
  391. #define ASN1Dec_VideoWindowEditPDU(x,y) 0
  392. static int ASN1CALL ASN1Dec_WorkspaceAttribute(ASN1decoding_t dec, WorkspaceAttribute *val);
  393. static int ASN1CALL ASN1Dec_WorkspaceViewAttribute(ASN1decoding_t dec, WorkspaceViewAttribute *val);
  394. #define ASN1Dec_ArchiveAcknowledgePDU(x,y) 0
  395. #define ASN1Dec_ArchiveErrorPDU(x,y) 0
  396. static int ASN1CALL ASN1Dec_BitmapAbortPDU(ASN1decoding_t dec, BitmapAbortPDU *val);
  397. static int ASN1CALL ASN1Dec_DrawingCreatePDU(ASN1decoding_t dec, DrawingCreatePDU *val);
  398. static int ASN1CALL ASN1Dec_DrawingEditPDU(ASN1decoding_t dec, DrawingEditPDU *val);
  399. #define ASN1Dec_RemoteKeyboardEventPDU(x,y) 0
  400. static int ASN1CALL ASN1Dec_RemotePointingDeviceEventPDU(ASN1decoding_t dec, RemotePointingDeviceEventPDU *val);
  401. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_editView(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits_Set_action_editView *val);
  402. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_createNewView(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits_Set_action_createNewView *val);
  403. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits_Set_planeAttributes(ASN1decoding_t dec, PWorkspaceEditPDU_planeEdits_Set_planeAttributes *val);
  404. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(ASN1decoding_t dec, PWorkspaceCreatePDU_viewParameters_Set_viewAttributes *val);
  405. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes *val);
  406. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr(ASN1decoding_t dec, ColorPalette_colorLookUpTable_paletteYCbCr *val);
  407. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab(ASN1decoding_t dec, ColorPalette_colorLookUpTable_paletteCIELab *val);
  408. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB(ASN1decoding_t dec, ColorPalette_colorLookUpTable_paletteRGB *val);
  409. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU_copyDescriptor(ASN1decoding_t dec, WorkspacePlaneCopyPDU_copyDescriptor *val);
  410. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_attributeEdits(ASN1decoding_t dec, PWorkspaceEditPDU_attributeEdits *val);
  411. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_workspaceAttributes(ASN1decoding_t dec, PWorkspaceCreatePDU_workspaceAttributes *val);
  412. static int ASN1CALL ASN1Dec_RemoteKeyboardEventPDU_keyModifierStates(ASN1decoding_t dec, PRemoteKeyboardEventPDU_keyModifierStates *val);
  413. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU_privilegeList(ASN1decoding_t dec, PConductorPrivilegeRequestPDU_privilegeList *val);
  414. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU_privilegeList(ASN1decoding_t dec, PConductorPrivilegeGrantPDU_privilegeList *val);
  415. static int ASN1CALL ASN1Dec_VideoWindowEditPDU_attributeEdits(ASN1decoding_t dec, PVideoWindowEditPDU_attributeEdits *val);
  416. static int ASN1CALL ASN1Dec_VideoWindowCreatePDU_attributes(ASN1decoding_t dec, PVideoWindowCreatePDU_attributes *val);
  417. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_cieLab(ASN1decoding_t dec, ColorSpaceSpecifier_cieLab *val);
  418. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_rgb(ASN1decoding_t dec, ColorSpaceSpecifier_rgb *val);
  419. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_yCbCr(ASN1decoding_t dec, ColorSpaceSpecifier_yCbCr *val);
  420. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_greyscale(ASN1decoding_t dec, ColorSpaceSpecifier_greyscale *val);
  421. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable(ASN1decoding_t dec, ColorPalette_colorLookUpTable *val);
  422. static int ASN1CALL ASN1Dec_BitmapAttribute(ASN1decoding_t dec, BitmapAttribute *val);
  423. static int ASN1CALL ASN1Dec_ColorPalette(ASN1decoding_t dec, ColorPalette *val);
  424. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier(ASN1decoding_t dec, ColorSpaceSpecifier *val);
  425. static int ASN1CALL ASN1Dec_DrawingAttribute(ASN1decoding_t dec, DrawingAttribute *val);
  426. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU(ASN1decoding_t dec, WorkspacePlaneCopyPDU *val);
  427. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed_colorMappingMode_paletteMap(ASN1decoding_t dec, BitmapHeaderUncompressed_colorMappingMode_paletteMap *val);
  428. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed_colorMappingMode_directMap(ASN1decoding_t dec, BitmapHeaderUncompressed_colorMappingMode_directMap *val);
  429. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap(ASN1decoding_t dec, BitmapHeaderT82_colorMappingMode_paletteMap *val);
  430. static int ASN1CALL ASN1Dec_DrawingEditPDU_attributeEdits(ASN1decoding_t dec, PDrawingEditPDU_attributeEdits *val);
  431. static int ASN1CALL ASN1Dec_DrawingCreatePDU_attributes(ASN1decoding_t dec, PDrawingCreatePDU_attributes *val);
  432. static int ASN1CALL ASN1Dec_BitmapEditPDU_attributeEdits(ASN1decoding_t dec, PBitmapEditPDU_attributeEdits *val);
  433. static int ASN1CALL ASN1Dec_BitmapCreatePDU_attributes(ASN1decoding_t dec, PBitmapCreatePDU_attributes *val);
  434. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode(ASN1decoding_t dec, BitmapHeaderT82_colorMappingMode *val);
  435. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed_colorMappingMode(ASN1decoding_t dec, BitmapHeaderUncompressed_colorMappingMode *val);
  436. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed(ASN1decoding_t dec, BitmapHeaderUncompressed *val);
  437. static int ASN1CALL ASN1Dec_BitmapHeaderT81(ASN1decoding_t dec, BitmapHeaderT81 *val);
  438. static int ASN1CALL ASN1Dec_BitmapHeaderT82(ASN1decoding_t dec, BitmapHeaderT82 *val);
  439. static int ASN1CALL ASN1Dec_BitmapCreatePDU_bitmapFormatHeader(ASN1decoding_t dec, BitmapCreatePDU_bitmapFormatHeader *val);
  440. static int ASN1CALL ASN1Dec_BitmapCreatePDU(ASN1decoding_t dec, BitmapCreatePDU *val);
  441. static int ASN1CALL ASN1Dec_SIPDU(ASN1decoding_t dec, SIPDU *val);
  442. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes *val);
  443. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode *val);
  444. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq(WorkspaceCreatePDU_planeParameters_Seq *val);
  445. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters_Set(WorkspaceCreatePDU_viewParameters_Set *val);
  446. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits_Set(WorkspaceEditPDU_planeEdits_Set *val);
  447. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits(PWorkspaceEditPDU_planeEdits *val);
  448. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters(PWorkspaceCreatePDU_viewParameters *val);
  449. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters(PWorkspaceCreatePDU_planeParameters *val);
  450. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_protectedPlaneAccessList(PWorkspaceCreatePDU_protectedPlaneAccessList *val);
  451. static void ASN1CALL ASN1Free_BitmapCreatePDU_checkpoints(PBitmapCreatePDU_checkpoints *val);
  452. static void ASN1CALL ASN1Free_BitmapCheckpointPDU_passedCheckpoints(PBitmapCheckpointPDU_passedCheckpoints *val);
  453. static void ASN1CALL ASN1Free_WorkspaceIdentifier_archiveWorkspace(WorkspaceIdentifier_archiveWorkspace *val);
  454. static void ASN1CALL ASN1Free_EditablePlaneCopyDescriptor_objectList(PEditablePlaneCopyDescriptor_objectList *val);
  455. static void ASN1CALL ASN1Free_BitmapData_dataCheckpoint(PBitmapData_dataCheckpoint *val);
  456. #define ASN1Free_ArchiveHeader(x)
  457. static void ASN1CALL ASN1Free_BitmapData(BitmapData *val);
  458. static void ASN1CALL ASN1Free_ColorIndexTable(PColorIndexTable *val);
  459. static void ASN1CALL ASN1Free_DSMCCTap(DSMCCTap *val);
  460. static void ASN1CALL ASN1Free_NonStandardIdentifier(NonStandardIdentifier *val);
  461. static void ASN1CALL ASN1Free_NonStandardParameter(NonStandardParameter *val);
  462. static void ASN1CALL ASN1Free_PenNib(PenNib *val);
  463. static void ASN1CALL ASN1Free_PixelAspectRatio(PixelAspectRatio *val);
  464. static void ASN1CALL ASN1Free_PlaneUsage(PlaneUsage *val);
  465. static void ASN1CALL ASN1Free_PointList(PointList *val);
  466. static void ASN1CALL ASN1Free_RemoteEventDestinationAddress(RemoteEventDestinationAddress *val);
  467. static void ASN1CALL ASN1Free_RemoteEventPermission(RemoteEventPermission *val);
  468. #define ASN1Free_VideoWindowDestinationAddress(x)
  469. #define ASN1Free_VideoSourceIdentifier(x)
  470. #define ASN1Free_VideoWindowDeletePDU(x)
  471. static void ASN1CALL ASN1Free_ViewState(ViewState *val);
  472. static void ASN1CALL ASN1Free_WorkspaceDeleteReason(WorkspaceDeleteReason *val);
  473. static void ASN1CALL ASN1Free_WorkspaceIdentifier(WorkspaceIdentifier *val);
  474. static void ASN1CALL ASN1Free_WorkspaceViewState(WorkspaceViewState *val);
  475. #define ASN1Free_ArchiveClosePDU(x)
  476. #define ASN1Free_ArchiveOpenPDU(x)
  477. static void ASN1CALL ASN1Free_BitmapCheckpointPDU(BitmapCheckpointPDU *val);
  478. static void ASN1CALL ASN1Free_BitmapCreateContinuePDU(BitmapCreateContinuePDU *val);
  479. static void ASN1CALL ASN1Free_BitmapDeletePDU(BitmapDeletePDU *val);
  480. static void ASN1CALL ASN1Free_BitmapEditPDU(BitmapEditPDU *val);
  481. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU(ConductorPrivilegeGrantPDU *val);
  482. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU(ConductorPrivilegeRequestPDU *val);
  483. static void ASN1CALL ASN1Free_DrawingDeletePDU(DrawingDeletePDU *val);
  484. static void ASN1CALL ASN1Free_FontPDU(FontPDU *val);
  485. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU(RemoteEventPermissionGrantPDU *val);
  486. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU(RemoteEventPermissionRequestPDU *val);
  487. static void ASN1CALL ASN1Free_RemotePrintPDU(RemotePrintPDU *val);
  488. static void ASN1CALL ASN1Free_SINonStandardPDU(SINonStandardPDU *val);
  489. #define ASN1Free_TextCreatePDU(x)
  490. #define ASN1Free_TextDeletePDU(x)
  491. #define ASN1Free_TextEditPDU(x)
  492. static void ASN1CALL ASN1Free_WorkspaceCreatePDU(WorkspaceCreatePDU *val);
  493. static void ASN1CALL ASN1Free_WorkspaceCreateAcknowledgePDU(WorkspaceCreateAcknowledgePDU *val);
  494. static void ASN1CALL ASN1Free_WorkspaceDeletePDU(WorkspaceDeletePDU *val);
  495. static void ASN1CALL ASN1Free_WorkspaceEditPDU(WorkspaceEditPDU *val);
  496. static void ASN1CALL ASN1Free_WorkspaceReadyPDU(WorkspaceReadyPDU *val);
  497. static void ASN1CALL ASN1Free_WorkspaceRefreshStatusPDU(WorkspaceRefreshStatusPDU *val);
  498. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action(WorkspaceEditPDU_viewEdits_Set_action *val);
  499. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_usage(PWorkspaceCreatePDU_planeParameters_Seq_usage *val);
  500. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteRGB_palette(PColorPalette_colorLookUpTable_paletteRGB_palette *val);
  501. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab_palette(PColorPalette_colorLookUpTable_paletteCIELab_palette *val);
  502. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr_palette(PColorPalette_colorLookUpTable_paletteYCbCr_palette *val);
  503. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set(WorkspaceEditPDU_viewEdits_Set *val);
  504. static void ASN1CALL ASN1Free_WorkspaceRefreshStatusPDU_nonStandardParameters(PWorkspaceRefreshStatusPDU_nonStandardParameters *val);
  505. static void ASN1CALL ASN1Free_WorkspaceReadyPDU_nonStandardParameters(PWorkspaceReadyPDU_nonStandardParameters *val);
  506. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU_nonStandardParameters(PWorkspacePlaneCopyPDU_nonStandardParameters *val);
  507. static void ASN1CALL ASN1Free_WorkspaceEditPDU_nonStandardParameters(PWorkspaceEditPDU_nonStandardParameters *val);
  508. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits(PWorkspaceEditPDU_viewEdits *val);
  509. static void ASN1CALL ASN1Free_WorkspaceDeletePDU_nonStandardParameters(PWorkspaceDeletePDU_nonStandardParameters *val);
  510. static void ASN1CALL ASN1Free_WorkspaceCreateAcknowledgePDU_nonStandardParameters(PWorkspaceCreateAcknowledgePDU_nonStandardParameters *val);
  511. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_nonStandardParameters(PWorkspaceCreatePDU_nonStandardParameters *val);
  512. static void ASN1CALL ASN1Free_TextEditPDU_nonStandardParameters(PTextEditPDU_nonStandardParameters *val);
  513. static void ASN1CALL ASN1Free_TextDeletePDU_nonStandardParameters(PTextDeletePDU_nonStandardParameters *val);
  514. static void ASN1CALL ASN1Free_TextCreatePDU_nonStandardParameters(PTextCreatePDU_nonStandardParameters *val);
  515. static void ASN1CALL ASN1Free_RemotePrintPDU_nonStandardParameters(PRemotePrintPDU_nonStandardParameters *val);
  516. static void ASN1CALL ASN1Free_RemotePointingDeviceEventPDU_nonStandardParameters(PRemotePointingDeviceEventPDU_nonStandardParameters *val);
  517. static void ASN1CALL ASN1Free_RemoteKeyboardEventPDU_nonStandardParameters(PRemoteKeyboardEventPDU_nonStandardParameters *val);
  518. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU_nonStandardParameters(PRemoteEventPermissionRequestPDU_nonStandardParameters *val);
  519. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU_remoteEventPermissionList(PRemoteEventPermissionRequestPDU_remoteEventPermissionList *val);
  520. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU_nonStandardParameters(PRemoteEventPermissionGrantPDU_nonStandardParameters *val);
  521. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU_remoteEventPermissionList(PRemoteEventPermissionGrantPDU_remoteEventPermissionList *val);
  522. static void ASN1CALL ASN1Free_FontPDU_nonStandardParameters(PFontPDU_nonStandardParameters *val);
  523. static void ASN1CALL ASN1Free_DrawingEditPDU_nonStandardParameters(PDrawingEditPDU_nonStandardParameters *val);
  524. static void ASN1CALL ASN1Free_DrawingDeletePDU_nonStandardParameters(PDrawingDeletePDU_nonStandardParameters *val);
  525. static void ASN1CALL ASN1Free_DrawingCreatePDU_nonStandardParameters(PDrawingCreatePDU_nonStandardParameters *val);
  526. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU_nonStandardParameters(PConductorPrivilegeRequestPDU_nonStandardParameters *val);
  527. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU_nonStandardParameters(PConductorPrivilegeGrantPDU_nonStandardParameters *val);
  528. static void ASN1CALL ASN1Free_BitmapEditPDU_nonStandardParameters(PBitmapEditPDU_nonStandardParameters *val);
  529. static void ASN1CALL ASN1Free_BitmapDeletePDU_nonStandardParameters(PBitmapDeletePDU_nonStandardParameters *val);
  530. static void ASN1CALL ASN1Free_BitmapCreateContinuePDU_nonStandardParameters(PBitmapCreateContinuePDU_nonStandardParameters *val);
  531. static void ASN1CALL ASN1Free_BitmapCreatePDU_nonStandardParameters(PBitmapCreatePDU_nonStandardParameters *val);
  532. static void ASN1CALL ASN1Free_BitmapCheckpointPDU_nonStandardParameters(PBitmapCheckpointPDU_nonStandardParameters *val);
  533. static void ASN1CALL ASN1Free_BitmapAbortPDU_nonStandardParameters(PBitmapAbortPDU_nonStandardParameters *val);
  534. static void ASN1CALL ASN1Free_ArchiveOpenPDU_nonStandardParameters(PArchiveOpenPDU_nonStandardParameters *val);
  535. static void ASN1CALL ASN1Free_ArchiveErrorPDU_nonStandardParameters(PArchiveErrorPDU_nonStandardParameters *val);
  536. static void ASN1CALL ASN1Free_ArchiveClosePDU_nonStandardParameters(PArchiveClosePDU_nonStandardParameters *val);
  537. static void ASN1CALL ASN1Free_ArchiveAcknowledgePDU_nonStandardParameters(PArchiveAcknowledgePDU_nonStandardParameters *val);
  538. static void ASN1CALL ASN1Free_VideoWindowEditPDU_nonStandardParameters(PVideoWindowEditPDU_nonStandardParameters *val);
  539. static void ASN1CALL ASN1Free_VideoWindowDeletePDU_nonStandardParameters(PVideoWindowDeletePDU_nonStandardParameters *val);
  540. static void ASN1CALL ASN1Free_VideoWindowCreatePDU_nonStandardParameters(PVideoWindowCreatePDU_nonStandardParameters *val);
  541. static void ASN1CALL ASN1Free_VideoSourceIdentifier_dSMCCConnBinder(PVideoSourceIdentifier_dSMCCConnBinder *val);
  542. static void ASN1CALL ASN1Free_TransparencyMask_nonStandardParameters(PTransparencyMask_nonStandardParameters *val);
  543. static void ASN1CALL ASN1Free_TransparencyMask_bitMask(TransparencyMask_bitMask *val);
  544. static void ASN1CALL ASN1Free_PointListEdits_Seq(PointListEdits_Seq *val);
  545. static void ASN1CALL ASN1Free_PointList_pointsDiff16(PPointList_pointsDiff16 *val);
  546. static void ASN1CALL ASN1Free_PointList_pointsDiff8(PPointList_pointsDiff8 *val);
  547. static void ASN1CALL ASN1Free_PointList_pointsDiff4(PPointList_pointsDiff4 *val);
  548. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace *val);
  549. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementRGB_predefinedRGBSpace(ColorAccuracyEnhancementRGB_predefinedRGBSpace *val);
  550. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace *val);
  551. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(ColorAccuracyEnhancementCIELab_predefinedCIELabSpace *val);
  552. #define ASN1Free_ArchiveError(x)
  553. #define ASN1Free_ArchiveOpenResult(x)
  554. static void ASN1CALL ASN1Free_BitmapAbortReason(BitmapAbortReason *val);
  555. static void ASN1CALL ASN1Free_BitmapDestinationAddress(BitmapDestinationAddress *val);
  556. static void ASN1CALL ASN1Free_ButtonEvent(ButtonEvent *val);
  557. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementCIELab(ColorAccuracyEnhancementCIELab *val);
  558. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementGreyscale(ColorAccuracyEnhancementGreyscale *val);
  559. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementRGB(ColorAccuracyEnhancementRGB *val);
  560. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementYCbCr(ColorAccuracyEnhancementYCbCr *val);
  561. static void ASN1CALL ASN1Free_ColorResolutionModeSpecifier(ColorResolutionModeSpecifier *val);
  562. static void ASN1CALL ASN1Free_ConductorPrivilege(ConductorPrivilege *val);
  563. static void ASN1CALL ASN1Free_DrawingDestinationAddress(DrawingDestinationAddress *val);
  564. static void ASN1CALL ASN1Free_DrawingType(DrawingType *val);
  565. static void ASN1CALL ASN1Free_EditablePlaneCopyDescriptor(EditablePlaneCopyDescriptor *val);
  566. #define ASN1Free_KeyCode(x)
  567. static void ASN1CALL ASN1Free_KeyModifier(KeyModifier *val);
  568. #define ASN1Free_KeyPressState(x)
  569. static void ASN1CALL ASN1Free_LineStyle(LineStyle *val);
  570. static void ASN1CALL ASN1Free_PlaneAttribute(PlaneAttribute *val);
  571. static void ASN1CALL ASN1Free_PointListEdits(PointListEdits *val);
  572. static void ASN1CALL ASN1Free_TransparencyMask(TransparencyMask *val);
  573. #define ASN1Free_VideoWindowAttribute(x)
  574. #define ASN1Free_VideoWindowCreatePDU(x)
  575. #define ASN1Free_VideoWindowEditPDU(x)
  576. static void ASN1CALL ASN1Free_WorkspaceAttribute(WorkspaceAttribute *val);
  577. static void ASN1CALL ASN1Free_WorkspaceViewAttribute(WorkspaceViewAttribute *val);
  578. #define ASN1Free_ArchiveAcknowledgePDU(x)
  579. #define ASN1Free_ArchiveErrorPDU(x)
  580. static void ASN1CALL ASN1Free_BitmapAbortPDU(BitmapAbortPDU *val);
  581. static void ASN1CALL ASN1Free_DrawingCreatePDU(DrawingCreatePDU *val);
  582. static void ASN1CALL ASN1Free_DrawingEditPDU(DrawingEditPDU *val);
  583. #define ASN1Free_RemoteKeyboardEventPDU(x)
  584. static void ASN1CALL ASN1Free_RemotePointingDeviceEventPDU(RemotePointingDeviceEventPDU *val);
  585. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_editView(PWorkspaceEditPDU_viewEdits_Set_action_editView *val);
  586. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_createNewView(PWorkspaceEditPDU_viewEdits_Set_action_createNewView *val);
  587. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits_Set_planeAttributes(PWorkspaceEditPDU_planeEdits_Set_planeAttributes *val);
  588. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(PWorkspaceCreatePDU_viewParameters_Set_viewAttributes *val);
  589. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes *val);
  590. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr(ColorPalette_colorLookUpTable_paletteYCbCr *val);
  591. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab(ColorPalette_colorLookUpTable_paletteCIELab *val);
  592. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteRGB(ColorPalette_colorLookUpTable_paletteRGB *val);
  593. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU_copyDescriptor(WorkspacePlaneCopyPDU_copyDescriptor *val);
  594. static void ASN1CALL ASN1Free_WorkspaceEditPDU_attributeEdits(PWorkspaceEditPDU_attributeEdits *val);
  595. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_workspaceAttributes(PWorkspaceCreatePDU_workspaceAttributes *val);
  596. static void ASN1CALL ASN1Free_RemoteKeyboardEventPDU_keyModifierStates(PRemoteKeyboardEventPDU_keyModifierStates *val);
  597. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU_privilegeList(PConductorPrivilegeRequestPDU_privilegeList *val);
  598. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU_privilegeList(PConductorPrivilegeGrantPDU_privilegeList *val);
  599. static void ASN1CALL ASN1Free_VideoWindowEditPDU_attributeEdits(PVideoWindowEditPDU_attributeEdits *val);
  600. static void ASN1CALL ASN1Free_VideoWindowCreatePDU_attributes(PVideoWindowCreatePDU_attributes *val);
  601. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_cieLab(ColorSpaceSpecifier_cieLab *val);
  602. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_rgb(ColorSpaceSpecifier_rgb *val);
  603. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_yCbCr(ColorSpaceSpecifier_yCbCr *val);
  604. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_greyscale(ColorSpaceSpecifier_greyscale *val);
  605. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable(ColorPalette_colorLookUpTable *val);
  606. static void ASN1CALL ASN1Free_BitmapAttribute(BitmapAttribute *val);
  607. static void ASN1CALL ASN1Free_ColorPalette(ColorPalette *val);
  608. static void ASN1CALL ASN1Free_ColorSpaceSpecifier(ColorSpaceSpecifier *val);
  609. static void ASN1CALL ASN1Free_DrawingAttribute(DrawingAttribute *val);
  610. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU(WorkspacePlaneCopyPDU *val);
  611. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed_colorMappingMode_paletteMap(BitmapHeaderUncompressed_colorMappingMode_paletteMap *val);
  612. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed_colorMappingMode_directMap(BitmapHeaderUncompressed_colorMappingMode_directMap *val);
  613. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap(BitmapHeaderT82_colorMappingMode_paletteMap *val);
  614. static void ASN1CALL ASN1Free_DrawingEditPDU_attributeEdits(PDrawingEditPDU_attributeEdits *val);
  615. static void ASN1CALL ASN1Free_DrawingCreatePDU_attributes(PDrawingCreatePDU_attributes *val);
  616. static void ASN1CALL ASN1Free_BitmapEditPDU_attributeEdits(PBitmapEditPDU_attributeEdits *val);
  617. static void ASN1CALL ASN1Free_BitmapCreatePDU_attributes(PBitmapCreatePDU_attributes *val);
  618. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode(BitmapHeaderT82_colorMappingMode *val);
  619. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed_colorMappingMode(BitmapHeaderUncompressed_colorMappingMode *val);
  620. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed(BitmapHeaderUncompressed *val);
  621. static void ASN1CALL ASN1Free_BitmapHeaderT81(BitmapHeaderT81 *val);
  622. static void ASN1CALL ASN1Free_BitmapHeaderT82(BitmapHeaderT82 *val);
  623. static void ASN1CALL ASN1Free_BitmapCreatePDU_bitmapFormatHeader(BitmapCreatePDU_bitmapFormatHeader *val);
  624. static void ASN1CALL ASN1Free_BitmapCreatePDU(BitmapCreatePDU *val);
  625. static void ASN1CALL ASN1Free_SIPDU(SIPDU *val);
  626. typedef ASN1PerEncFun_t ASN1EncFun_t;
  627. static const ASN1EncFun_t encfntab[1] = {
  628. (ASN1EncFun_t) ASN1Enc_SIPDU,
  629. };
  630. typedef ASN1PerDecFun_t ASN1DecFun_t;
  631. static const ASN1DecFun_t decfntab[1] = {
  632. (ASN1DecFun_t) ASN1Dec_SIPDU,
  633. };
  634. static const ASN1FreeFun_t freefntab[1] = {
  635. (ASN1FreeFun_t) ASN1Free_SIPDU,
  636. };
  637. static const ULONG sizetab[1] = {
  638. SIZE_T126_Module_PDU_0,
  639. };
  640. /* forward declarations of values: */
  641. /* definitions of value components: */
  642. /* definitions of values: */
  643. double one = 1;
  644. void ASN1CALL T126_Module_Startup(void)
  645. {
  646. T126_Module = ASN1_CreateModule(0x10000, ASN1_PER_RULE_ALIGNED, ASN1FLAGS_NONE, 1, (const ASN1GenericFun_t *) encfntab, (const ASN1GenericFun_t *) decfntab, freefntab, sizetab, 0x36323174);
  647. }
  648. void ASN1CALL T126_Module_Cleanup(void)
  649. {
  650. ASN1_CloseModule(T126_Module);
  651. T126_Module = NULL;
  652. }
  653. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(ASN1encoding_t enc, PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes *val)
  654. {
  655. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes_ElmFn, 1, 8, 3);
  656. }
  657. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes_ElmFn(ASN1encoding_t enc, PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes val)
  658. {
  659. if (!ASN1Enc_ColorIndexTable(enc, &val->value))
  660. return 0;
  661. return 1;
  662. }
  663. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(ASN1decoding_t dec, PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes *val)
  664. {
  665. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes_ElmFn, sizeof(**val), 1, 8, 3);
  666. }
  667. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes_ElmFn(ASN1decoding_t dec, PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes val)
  668. {
  669. if (!ASN1Dec_ColorIndexTable(dec, &val->value))
  670. return 0;
  671. return 1;
  672. }
  673. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes *val)
  674. {
  675. if (val) {
  676. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes_ElmFn);
  677. }
  678. }
  679. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes_ElmFn(PBitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes val)
  680. {
  681. if (val) {
  682. ASN1Free_ColorIndexTable(&val->value);
  683. }
  684. }
  685. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(ASN1encoding_t enc, BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode *val)
  686. {
  687. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  688. return 0;
  689. switch ((val)->choice) {
  690. case 1:
  691. if (!ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(enc, &(val)->u.progressivePalettes))
  692. return 0;
  693. break;
  694. case 2:
  695. break;
  696. default:
  697. /* impossible */
  698. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  699. return 0;
  700. }
  701. return 1;
  702. }
  703. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(ASN1decoding_t dec, BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode *val)
  704. {
  705. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  706. return 0;
  707. switch ((val)->choice) {
  708. case 1:
  709. if (!ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(dec, &(val)->u.progressivePalettes))
  710. return 0;
  711. break;
  712. case 2:
  713. break;
  714. case 0:
  715. /* extension case */
  716. if (!ASN1PERDecSkipFragmented(dec, 8))
  717. return 0;
  718. break;
  719. default:
  720. /* impossible */
  721. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  722. return 0;
  723. }
  724. return 1;
  725. }
  726. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode *val)
  727. {
  728. if (val) {
  729. switch ((val)->choice) {
  730. case 1:
  731. ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode_progressivePalettes(&(val)->u.progressivePalettes);
  732. break;
  733. }
  734. }
  735. }
  736. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut *val)
  737. {
  738. if (!ASN1PEREncUnsignedShort(enc, (val)->lSpan + 32768))
  739. return 0;
  740. if (!ASN1PEREncUnsignedShort(enc, (val)->lOffset + 32768))
  741. return 0;
  742. if (!ASN1PEREncUnsignedShort(enc, (val)->aSpan + 32768))
  743. return 0;
  744. if (!ASN1PEREncUnsignedShort(enc, (val)->aOffset + 32768))
  745. return 0;
  746. if (!ASN1PEREncUnsignedShort(enc, (val)->bSpan + 32768))
  747. return 0;
  748. if (!ASN1PEREncUnsignedShort(enc, (val)->bOffset + 32768))
  749. return 0;
  750. return 1;
  751. }
  752. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut *val)
  753. {
  754. if (!ASN1PERDecUnsignedShort(dec, &(val)->lSpan))
  755. return 0;
  756. (val)->lSpan += 0 - 32768;
  757. if (!ASN1PERDecUnsignedShort(dec, &(val)->lOffset))
  758. return 0;
  759. (val)->lOffset += 0 - 32768;
  760. if (!ASN1PERDecUnsignedShort(dec, &(val)->aSpan))
  761. return 0;
  762. (val)->aSpan += 0 - 32768;
  763. if (!ASN1PERDecUnsignedShort(dec, &(val)->aOffset))
  764. return 0;
  765. (val)->aOffset += 0 - 32768;
  766. if (!ASN1PERDecUnsignedShort(dec, &(val)->bSpan))
  767. return 0;
  768. (val)->bSpan += 0 - 32768;
  769. if (!ASN1PERDecUnsignedShort(dec, &(val)->bOffset))
  770. return 0;
  771. (val)->bOffset += 0 - 32768;
  772. return 1;
  773. }
  774. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor_objectList_Seq(ASN1encoding_t enc, EditablePlaneCopyDescriptor_objectList_Seq *val)
  775. {
  776. ASN1uint32_t l;
  777. l = ASN1uint32_uoctets((val)->sourceObjectHandle);
  778. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  779. return 0;
  780. ASN1PEREncAlignment(enc);
  781. if (!ASN1PEREncBitVal(enc, l * 8, (val)->sourceObjectHandle))
  782. return 0;
  783. l = ASN1uint32_uoctets((val)->destinationObjectHandle);
  784. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  785. return 0;
  786. ASN1PEREncAlignment(enc);
  787. if (!ASN1PEREncBitVal(enc, l * 8, (val)->destinationObjectHandle))
  788. return 0;
  789. return 1;
  790. }
  791. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor_objectList_Seq(ASN1decoding_t dec, EditablePlaneCopyDescriptor_objectList_Seq *val)
  792. {
  793. ASN1uint32_t l;
  794. if (!ASN1PERDecU32Val(dec, 2, &l))
  795. return 0;
  796. l += 1;
  797. ASN1PERDecAlignment(dec);
  798. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->sourceObjectHandle))
  799. return 0;
  800. if (!ASN1PERDecU32Val(dec, 2, &l))
  801. return 0;
  802. l += 1;
  803. ASN1PERDecAlignment(dec);
  804. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->destinationObjectHandle))
  805. return 0;
  806. return 1;
  807. }
  808. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq(ASN1encoding_t enc, WorkspaceCreatePDU_planeParameters_Seq *val)
  809. {
  810. if (!ASN1PEREncExtensionBitClear(enc))
  811. return 0;
  812. if (!ASN1PEREncBits(enc, 1, (val)->o))
  813. return 0;
  814. if (!ASN1PEREncBoolean(enc, (val)->editable))
  815. return 0;
  816. if (!ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_usage(enc, &(val)->usage))
  817. return 0;
  818. if ((val)->o[0] & 0x80) {
  819. if (!ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(enc, &(val)->planeAttributes))
  820. return 0;
  821. }
  822. return 1;
  823. }
  824. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq(ASN1decoding_t dec, WorkspaceCreatePDU_planeParameters_Seq *val)
  825. {
  826. ASN1uint32_t y;
  827. if (!ASN1PERDecExtensionBit(dec, &y))
  828. return 0;
  829. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  830. return 0;
  831. if (!ASN1PERDecBoolean(dec, &(val)->editable))
  832. return 0;
  833. if (!ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_usage(dec, &(val)->usage))
  834. return 0;
  835. if ((val)->o[0] & 0x80) {
  836. if (!ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(dec, &(val)->planeAttributes))
  837. return 0;
  838. }
  839. if (y) {
  840. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  841. return 0;
  842. }
  843. return 1;
  844. }
  845. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq(WorkspaceCreatePDU_planeParameters_Seq *val)
  846. {
  847. if (val) {
  848. ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_usage(&(val)->usage);
  849. if ((val)->o[0] & 0x80) {
  850. ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(&(val)->planeAttributes);
  851. }
  852. }
  853. }
  854. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters_Set(ASN1encoding_t enc, WorkspaceCreatePDU_viewParameters_Set *val)
  855. {
  856. ASN1uint32_t l;
  857. if (!ASN1PEREncExtensionBitClear(enc))
  858. return 0;
  859. if (!ASN1PEREncBits(enc, 1, (val)->o))
  860. return 0;
  861. l = ASN1uint32_uoctets((val)->viewHandle);
  862. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  863. return 0;
  864. ASN1PEREncAlignment(enc);
  865. if (!ASN1PEREncBitVal(enc, l * 8, (val)->viewHandle))
  866. return 0;
  867. if ((val)->o[0] & 0x80) {
  868. if (!ASN1Enc_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(enc, &(val)->viewAttributes))
  869. return 0;
  870. }
  871. return 1;
  872. }
  873. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters_Set(ASN1decoding_t dec, WorkspaceCreatePDU_viewParameters_Set *val)
  874. {
  875. ASN1uint32_t y;
  876. ASN1uint32_t l;
  877. if (!ASN1PERDecExtensionBit(dec, &y))
  878. return 0;
  879. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  880. return 0;
  881. if (!ASN1PERDecU32Val(dec, 2, &l))
  882. return 0;
  883. l += 1;
  884. ASN1PERDecAlignment(dec);
  885. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->viewHandle))
  886. return 0;
  887. if ((val)->o[0] & 0x80) {
  888. if (!ASN1Dec_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(dec, &(val)->viewAttributes))
  889. return 0;
  890. }
  891. if (y) {
  892. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  893. return 0;
  894. }
  895. return 1;
  896. }
  897. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters_Set(WorkspaceCreatePDU_viewParameters_Set *val)
  898. {
  899. if (val) {
  900. if ((val)->o[0] & 0x80) {
  901. ASN1Free_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(&(val)->viewAttributes);
  902. }
  903. }
  904. }
  905. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits_Set(ASN1encoding_t enc, WorkspaceEditPDU_planeEdits_Set *val)
  906. {
  907. if (!ASN1PEREncExtensionBitClear(enc))
  908. return 0;
  909. ASN1PEREncAlignment(enc);
  910. if (!ASN1PEREncBitVal(enc, 8, (val)->plane))
  911. return 0;
  912. if (!ASN1Enc_WorkspaceEditPDU_planeEdits_Set_planeAttributes(enc, &(val)->planeAttributes))
  913. return 0;
  914. return 1;
  915. }
  916. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits_Set(ASN1decoding_t dec, WorkspaceEditPDU_planeEdits_Set *val)
  917. {
  918. ASN1uint32_t y;
  919. if (!ASN1PERDecExtensionBit(dec, &y))
  920. return 0;
  921. ASN1PERDecAlignment(dec);
  922. if (!ASN1PERDecU16Val(dec, 8, &(val)->plane))
  923. return 0;
  924. if (!ASN1Dec_WorkspaceEditPDU_planeEdits_Set_planeAttributes(dec, &(val)->planeAttributes))
  925. return 0;
  926. if (y) {
  927. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  928. return 0;
  929. }
  930. return 1;
  931. }
  932. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits_Set(WorkspaceEditPDU_planeEdits_Set *val)
  933. {
  934. if (val) {
  935. ASN1Free_WorkspaceEditPDU_planeEdits_Set_planeAttributes(&(val)->planeAttributes);
  936. }
  937. }
  938. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits(ASN1encoding_t enc, PWorkspaceEditPDU_planeEdits *val)
  939. {
  940. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_planeEdits_ElmFn, 1, 256, 8);
  941. }
  942. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_planeEdits val)
  943. {
  944. if (!ASN1Enc_WorkspaceEditPDU_planeEdits_Set(enc, &val->value))
  945. return 0;
  946. return 1;
  947. }
  948. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits(ASN1decoding_t dec, PWorkspaceEditPDU_planeEdits *val)
  949. {
  950. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_planeEdits_ElmFn, sizeof(**val), 1, 256, 8);
  951. }
  952. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_planeEdits val)
  953. {
  954. if (!ASN1Dec_WorkspaceEditPDU_planeEdits_Set(dec, &val->value))
  955. return 0;
  956. return 1;
  957. }
  958. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits(PWorkspaceEditPDU_planeEdits *val)
  959. {
  960. if (val) {
  961. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_planeEdits_ElmFn);
  962. }
  963. }
  964. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits_ElmFn(PWorkspaceEditPDU_planeEdits val)
  965. {
  966. if (val) {
  967. ASN1Free_WorkspaceEditPDU_planeEdits_Set(&val->value);
  968. }
  969. }
  970. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters(ASN1encoding_t enc, PWorkspaceCreatePDU_viewParameters *val)
  971. {
  972. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_viewParameters_ElmFn, 1, 256, 8);
  973. }
  974. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_viewParameters val)
  975. {
  976. if (!ASN1Enc_WorkspaceCreatePDU_viewParameters_Set(enc, &val->value))
  977. return 0;
  978. return 1;
  979. }
  980. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters(ASN1decoding_t dec, PWorkspaceCreatePDU_viewParameters *val)
  981. {
  982. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_viewParameters_ElmFn, sizeof(**val), 1, 256, 8);
  983. }
  984. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_viewParameters val)
  985. {
  986. if (!ASN1Dec_WorkspaceCreatePDU_viewParameters_Set(dec, &val->value))
  987. return 0;
  988. return 1;
  989. }
  990. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters(PWorkspaceCreatePDU_viewParameters *val)
  991. {
  992. if (val) {
  993. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_viewParameters_ElmFn);
  994. }
  995. }
  996. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters_ElmFn(PWorkspaceCreatePDU_viewParameters val)
  997. {
  998. if (val) {
  999. ASN1Free_WorkspaceCreatePDU_viewParameters_Set(&val->value);
  1000. }
  1001. }
  1002. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters *val)
  1003. {
  1004. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_planeParameters_ElmFn, 1, 256, 8);
  1005. }
  1006. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters val)
  1007. {
  1008. if (!ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq(enc, &val->value))
  1009. return 0;
  1010. return 1;
  1011. }
  1012. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters *val)
  1013. {
  1014. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_planeParameters_ElmFn, sizeof(**val), 1, 256, 8);
  1015. }
  1016. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters val)
  1017. {
  1018. if (!ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq(dec, &val->value))
  1019. return 0;
  1020. return 1;
  1021. }
  1022. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters(PWorkspaceCreatePDU_planeParameters *val)
  1023. {
  1024. if (val) {
  1025. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_planeParameters_ElmFn);
  1026. }
  1027. }
  1028. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_ElmFn(PWorkspaceCreatePDU_planeParameters val)
  1029. {
  1030. if (val) {
  1031. ASN1Free_WorkspaceCreatePDU_planeParameters_Seq(&val->value);
  1032. }
  1033. }
  1034. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_protectedPlaneAccessList(ASN1encoding_t enc, PWorkspaceCreatePDU_protectedPlaneAccessList *val)
  1035. {
  1036. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_protectedPlaneAccessList_ElmFn);
  1037. }
  1038. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_protectedPlaneAccessList_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_protectedPlaneAccessList val)
  1039. {
  1040. if (!ASN1PEREncUnsignedShort(enc, val->value - 1001))
  1041. return 0;
  1042. return 1;
  1043. }
  1044. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_protectedPlaneAccessList(ASN1decoding_t dec, PWorkspaceCreatePDU_protectedPlaneAccessList *val)
  1045. {
  1046. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_protectedPlaneAccessList_ElmFn, sizeof(**val));
  1047. }
  1048. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_protectedPlaneAccessList_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_protectedPlaneAccessList val)
  1049. {
  1050. if (!ASN1PERDecUnsignedShort(dec, &val->value))
  1051. return 0;
  1052. val->value += 1001;
  1053. return 1;
  1054. }
  1055. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_protectedPlaneAccessList(PWorkspaceCreatePDU_protectedPlaneAccessList *val)
  1056. {
  1057. if (val) {
  1058. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_protectedPlaneAccessList_ElmFn);
  1059. }
  1060. }
  1061. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_protectedPlaneAccessList_ElmFn(PWorkspaceCreatePDU_protectedPlaneAccessList val)
  1062. {
  1063. if (val) {
  1064. }
  1065. }
  1066. static int ASN1CALL ASN1Enc_BitmapCreatePDU_checkpoints(ASN1encoding_t enc, PBitmapCreatePDU_checkpoints *val)
  1067. {
  1068. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapCreatePDU_checkpoints_ElmFn, 1, 100, 7);
  1069. }
  1070. static int ASN1CALL ASN1Enc_BitmapCreatePDU_checkpoints_ElmFn(ASN1encoding_t enc, PBitmapCreatePDU_checkpoints val)
  1071. {
  1072. if (!ASN1PEREncUnsignedShort(enc, val->value - 1))
  1073. return 0;
  1074. return 1;
  1075. }
  1076. static int ASN1CALL ASN1Dec_BitmapCreatePDU_checkpoints(ASN1decoding_t dec, PBitmapCreatePDU_checkpoints *val)
  1077. {
  1078. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapCreatePDU_checkpoints_ElmFn, sizeof(**val), 1, 100, 7);
  1079. }
  1080. static int ASN1CALL ASN1Dec_BitmapCreatePDU_checkpoints_ElmFn(ASN1decoding_t dec, PBitmapCreatePDU_checkpoints val)
  1081. {
  1082. if (!ASN1PERDecUnsignedShort(dec, &val->value))
  1083. return 0;
  1084. val->value += 1;
  1085. return 1;
  1086. }
  1087. static void ASN1CALL ASN1Free_BitmapCreatePDU_checkpoints(PBitmapCreatePDU_checkpoints *val)
  1088. {
  1089. if (val) {
  1090. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapCreatePDU_checkpoints_ElmFn);
  1091. }
  1092. }
  1093. static void ASN1CALL ASN1Free_BitmapCreatePDU_checkpoints_ElmFn(PBitmapCreatePDU_checkpoints val)
  1094. {
  1095. if (val) {
  1096. }
  1097. }
  1098. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU_passedCheckpoints(ASN1encoding_t enc, PBitmapCheckpointPDU_passedCheckpoints *val)
  1099. {
  1100. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapCheckpointPDU_passedCheckpoints_ElmFn, 1, 100, 7);
  1101. }
  1102. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU_passedCheckpoints_ElmFn(ASN1encoding_t enc, PBitmapCheckpointPDU_passedCheckpoints val)
  1103. {
  1104. if (!ASN1PEREncUnsignedShort(enc, val->value - 1))
  1105. return 0;
  1106. return 1;
  1107. }
  1108. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU_passedCheckpoints(ASN1decoding_t dec, PBitmapCheckpointPDU_passedCheckpoints *val)
  1109. {
  1110. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapCheckpointPDU_passedCheckpoints_ElmFn, sizeof(**val), 1, 100, 7);
  1111. }
  1112. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU_passedCheckpoints_ElmFn(ASN1decoding_t dec, PBitmapCheckpointPDU_passedCheckpoints val)
  1113. {
  1114. if (!ASN1PERDecUnsignedShort(dec, &val->value))
  1115. return 0;
  1116. val->value += 1;
  1117. return 1;
  1118. }
  1119. static void ASN1CALL ASN1Free_BitmapCheckpointPDU_passedCheckpoints(PBitmapCheckpointPDU_passedCheckpoints *val)
  1120. {
  1121. if (val) {
  1122. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapCheckpointPDU_passedCheckpoints_ElmFn);
  1123. }
  1124. }
  1125. static void ASN1CALL ASN1Free_BitmapCheckpointPDU_passedCheckpoints_ElmFn(PBitmapCheckpointPDU_passedCheckpoints val)
  1126. {
  1127. if (val) {
  1128. }
  1129. }
  1130. static int ASN1CALL ASN1Enc_WorkspaceIdentifier_archiveWorkspace(ASN1encoding_t enc, WorkspaceIdentifier_archiveWorkspace *val)
  1131. {
  1132. ASN1uint32_t l;
  1133. if (!ASN1PEREncBits(enc, 1, (val)->o))
  1134. return 0;
  1135. l = ASN1uint32_uoctets((val)->archiveHandle);
  1136. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  1137. return 0;
  1138. ASN1PEREncAlignment(enc);
  1139. if (!ASN1PEREncBitVal(enc, l * 8, (val)->archiveHandle))
  1140. return 0;
  1141. ASN1PEREncAlignment(enc);
  1142. if (!ASN1PEREncBitVal(enc, 8, ((val)->entryName).length - 1))
  1143. return 0;
  1144. if (!ASN1PEREncChar16String(enc, ((val)->entryName).length, ((val)->entryName).value, 16))
  1145. return 0;
  1146. if ((val)->o[0] & 0x80) {
  1147. if (!ASN1PEREncGeneralizedTime(enc, &(val)->modificationTime, 8))
  1148. return 0;
  1149. }
  1150. return 1;
  1151. }
  1152. static int ASN1CALL ASN1Dec_WorkspaceIdentifier_archiveWorkspace(ASN1decoding_t dec, WorkspaceIdentifier_archiveWorkspace *val)
  1153. {
  1154. ASN1uint32_t l;
  1155. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  1156. return 0;
  1157. if (!ASN1PERDecU32Val(dec, 2, &l))
  1158. return 0;
  1159. l += 1;
  1160. ASN1PERDecAlignment(dec);
  1161. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->archiveHandle))
  1162. return 0;
  1163. ASN1PERDecAlignment(dec);
  1164. if (!ASN1PERDecU32Val(dec, 8, &((val)->entryName).length))
  1165. return 0;
  1166. ((val)->entryName).length += 1;
  1167. if (!ASN1PERDecChar16String(dec, ((val)->entryName).length, &((val)->entryName).value, 16))
  1168. return 0;
  1169. if ((val)->o[0] & 0x80) {
  1170. if (!ASN1PERDecGeneralizedTime(dec, &(val)->modificationTime, 8))
  1171. return 0;
  1172. }
  1173. return 1;
  1174. }
  1175. static void ASN1CALL ASN1Free_WorkspaceIdentifier_archiveWorkspace(WorkspaceIdentifier_archiveWorkspace *val)
  1176. {
  1177. if (val) {
  1178. ASN1char16string_free(&(val)->entryName);
  1179. if ((val)->o[0] & 0x80) {
  1180. }
  1181. }
  1182. }
  1183. static int ASN1CALL ASN1Enc_PixelAspectRatio_general(ASN1encoding_t enc, PixelAspectRatio_general *val)
  1184. {
  1185. if (!ASN1PEREncUnsignedShort(enc, (val)->numerator - 1))
  1186. return 0;
  1187. if (!ASN1PEREncUnsignedShort(enc, (val)->denominator - 1))
  1188. return 0;
  1189. return 1;
  1190. }
  1191. static int ASN1CALL ASN1Dec_PixelAspectRatio_general(ASN1decoding_t dec, PixelAspectRatio_general *val)
  1192. {
  1193. if (!ASN1PERDecUnsignedShort(dec, &(val)->numerator))
  1194. return 0;
  1195. (val)->numerator += 1;
  1196. if (!ASN1PERDecUnsignedShort(dec, &(val)->denominator))
  1197. return 0;
  1198. (val)->denominator += 1;
  1199. return 1;
  1200. }
  1201. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor_objectList(ASN1encoding_t enc, PEditablePlaneCopyDescriptor_objectList *val)
  1202. {
  1203. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_EditablePlaneCopyDescriptor_objectList_ElmFn);
  1204. }
  1205. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor_objectList_ElmFn(ASN1encoding_t enc, PEditablePlaneCopyDescriptor_objectList val)
  1206. {
  1207. if (!ASN1Enc_EditablePlaneCopyDescriptor_objectList_Seq(enc, &val->value))
  1208. return 0;
  1209. return 1;
  1210. }
  1211. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor_objectList(ASN1decoding_t dec, PEditablePlaneCopyDescriptor_objectList *val)
  1212. {
  1213. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_EditablePlaneCopyDescriptor_objectList_ElmFn, sizeof(**val));
  1214. }
  1215. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor_objectList_ElmFn(ASN1decoding_t dec, PEditablePlaneCopyDescriptor_objectList val)
  1216. {
  1217. if (!ASN1Dec_EditablePlaneCopyDescriptor_objectList_Seq(dec, &val->value))
  1218. return 0;
  1219. return 1;
  1220. }
  1221. static void ASN1CALL ASN1Free_EditablePlaneCopyDescriptor_objectList(PEditablePlaneCopyDescriptor_objectList *val)
  1222. {
  1223. if (val) {
  1224. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_EditablePlaneCopyDescriptor_objectList_ElmFn);
  1225. }
  1226. }
  1227. static void ASN1CALL ASN1Free_EditablePlaneCopyDescriptor_objectList_ElmFn(PEditablePlaneCopyDescriptor_objectList val)
  1228. {
  1229. if (val) {
  1230. }
  1231. }
  1232. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters(ASN1encoding_t enc, ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters *val)
  1233. {
  1234. if (!ASN1PEREncExtensionBitClear(enc))
  1235. return 0;
  1236. if (!ASN1PEREncBits(enc, 1, (val)->o))
  1237. return 0;
  1238. if ((val)->o[0] & 0x80) {
  1239. if (!ASN1PEREncDouble(enc, (val)->gamma))
  1240. return 0;
  1241. }
  1242. return 1;
  1243. }
  1244. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters(ASN1decoding_t dec, ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters *val)
  1245. {
  1246. ASN1uint32_t y;
  1247. if (!ASN1PERDecExtensionBit(dec, &y))
  1248. return 0;
  1249. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  1250. return 0;
  1251. if ((val)->o[0] & 0x80) {
  1252. if (!ASN1PERDecDouble(dec, &(val)->gamma))
  1253. return 0;
  1254. }
  1255. if (y) {
  1256. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1257. return 0;
  1258. }
  1259. return 1;
  1260. }
  1261. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab_generalCIELabParameters(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab_generalCIELabParameters *val)
  1262. {
  1263. if (!ASN1PEREncExtensionBitClear(enc))
  1264. return 0;
  1265. if (!ASN1PEREncBits(enc, 2, (val)->o))
  1266. return 0;
  1267. if ((val)->o[0] & 0x80) {
  1268. if (!ASN1PEREncUnsignedInteger(enc, (val)->colorTemperature))
  1269. return 0;
  1270. }
  1271. if ((val)->o[0] & 0x40) {
  1272. if (!ASN1Enc_ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut(enc, &(val)->gamut))
  1273. return 0;
  1274. }
  1275. return 1;
  1276. }
  1277. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab_generalCIELabParameters(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab_generalCIELabParameters *val)
  1278. {
  1279. ASN1uint32_t y;
  1280. if (!ASN1PERDecExtensionBit(dec, &y))
  1281. return 0;
  1282. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  1283. return 0;
  1284. if ((val)->o[0] & 0x80) {
  1285. if (!ASN1PERDecUnsignedInteger(dec, &(val)->colorTemperature))
  1286. return 0;
  1287. }
  1288. if ((val)->o[0] & 0x40) {
  1289. if (!ASN1Dec_ColorAccuracyEnhancementCIELab_generalCIELabParameters_gamut(dec, &(val)->gamut))
  1290. return 0;
  1291. }
  1292. if (y) {
  1293. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1294. return 0;
  1295. }
  1296. return 1;
  1297. }
  1298. static int ASN1CALL ASN1Enc_BitmapRegion_lowerRight(ASN1encoding_t enc, BitmapRegion_lowerRight *val)
  1299. {
  1300. if (!ASN1PEREncUnsignedShort(enc, (val)->xCoordinate))
  1301. return 0;
  1302. if (!ASN1PEREncUnsignedShort(enc, (val)->yCoordinate))
  1303. return 0;
  1304. return 1;
  1305. }
  1306. static int ASN1CALL ASN1Dec_BitmapRegion_lowerRight(ASN1decoding_t dec, BitmapRegion_lowerRight *val)
  1307. {
  1308. if (!ASN1PERDecUnsignedShort(dec, &(val)->xCoordinate))
  1309. return 0;
  1310. if (!ASN1PERDecUnsignedShort(dec, &(val)->yCoordinate))
  1311. return 0;
  1312. return 1;
  1313. }
  1314. static int ASN1CALL ASN1Enc_BitmapRegion_upperLeft(ASN1encoding_t enc, BitmapRegion_upperLeft *val)
  1315. {
  1316. if (!ASN1PEREncUnsignedShort(enc, (val)->xCoordinate))
  1317. return 0;
  1318. if (!ASN1PEREncUnsignedShort(enc, (val)->yCoordinate))
  1319. return 0;
  1320. return 1;
  1321. }
  1322. static int ASN1CALL ASN1Dec_BitmapRegion_upperLeft(ASN1decoding_t dec, BitmapRegion_upperLeft *val)
  1323. {
  1324. if (!ASN1PERDecUnsignedShort(dec, &(val)->xCoordinate))
  1325. return 0;
  1326. if (!ASN1PERDecUnsignedShort(dec, &(val)->yCoordinate))
  1327. return 0;
  1328. return 1;
  1329. }
  1330. static int ASN1CALL ASN1Enc_BitmapData_dataCheckpoint(ASN1encoding_t enc, PBitmapData_dataCheckpoint *val)
  1331. {
  1332. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapData_dataCheckpoint_ElmFn, 1, 100, 7);
  1333. }
  1334. static int ASN1CALL ASN1Enc_BitmapData_dataCheckpoint_ElmFn(ASN1encoding_t enc, PBitmapData_dataCheckpoint val)
  1335. {
  1336. if (!ASN1PEREncUnsignedShort(enc, val->value - 1))
  1337. return 0;
  1338. return 1;
  1339. }
  1340. static int ASN1CALL ASN1Dec_BitmapData_dataCheckpoint(ASN1decoding_t dec, PBitmapData_dataCheckpoint *val)
  1341. {
  1342. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapData_dataCheckpoint_ElmFn, sizeof(**val), 1, 100, 7);
  1343. }
  1344. static int ASN1CALL ASN1Dec_BitmapData_dataCheckpoint_ElmFn(ASN1decoding_t dec, PBitmapData_dataCheckpoint val)
  1345. {
  1346. if (!ASN1PERDecUnsignedShort(dec, &val->value))
  1347. return 0;
  1348. val->value += 1;
  1349. return 1;
  1350. }
  1351. static void ASN1CALL ASN1Free_BitmapData_dataCheckpoint(PBitmapData_dataCheckpoint *val)
  1352. {
  1353. if (val) {
  1354. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapData_dataCheckpoint_ElmFn);
  1355. }
  1356. }
  1357. static void ASN1CALL ASN1Free_BitmapData_dataCheckpoint_ElmFn(PBitmapData_dataCheckpoint val)
  1358. {
  1359. if (val) {
  1360. }
  1361. }
  1362. static int ASN1CALL ASN1Enc_BitmapData(ASN1encoding_t enc, BitmapData *val)
  1363. {
  1364. if (!ASN1PEREncExtensionBitClear(enc))
  1365. return 0;
  1366. if (!ASN1PEREncBits(enc, 2, (val)->o))
  1367. return 0;
  1368. if ((val)->o[0] & 0x80) {
  1369. if (!ASN1Enc_BitmapData_dataCheckpoint(enc, &(val)->dataCheckpoint))
  1370. return 0;
  1371. }
  1372. if ((val)->o[0] & 0x40) {
  1373. ASN1PEREncAlignment(enc);
  1374. if (!ASN1PEREncBitVal(enc, 8, (val)->padBits - 1))
  1375. return 0;
  1376. }
  1377. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->data, 1, 8192, 16))
  1378. return 0;
  1379. return 1;
  1380. }
  1381. static int ASN1CALL ASN1Dec_BitmapData(ASN1decoding_t dec, BitmapData *val)
  1382. {
  1383. ASN1uint32_t y;
  1384. if (!ASN1PERDecExtensionBit(dec, &y))
  1385. return 0;
  1386. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  1387. return 0;
  1388. if ((val)->o[0] & 0x80) {
  1389. if (!ASN1Dec_BitmapData_dataCheckpoint(dec, &(val)->dataCheckpoint))
  1390. return 0;
  1391. }
  1392. if ((val)->o[0] & 0x40) {
  1393. ASN1PERDecAlignment(dec);
  1394. if (!ASN1PERDecU16Val(dec, 8, &(val)->padBits))
  1395. return 0;
  1396. (val)->padBits += 1;
  1397. }
  1398. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->data, 1, 8192, 16))
  1399. return 0;
  1400. if (y) {
  1401. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1402. return 0;
  1403. }
  1404. return 1;
  1405. }
  1406. static void ASN1CALL ASN1Free_BitmapData(BitmapData *val)
  1407. {
  1408. if (val) {
  1409. if ((val)->o[0] & 0x80) {
  1410. ASN1Free_BitmapData_dataCheckpoint(&(val)->dataCheckpoint);
  1411. }
  1412. }
  1413. }
  1414. static int ASN1CALL ASN1Enc_BitmapHeaderT4(ASN1encoding_t enc, BitmapHeaderT4 *val)
  1415. {
  1416. if (!ASN1PEREncExtensionBitClear(enc))
  1417. return 0;
  1418. if (!ASN1PEREncBoolean(enc, (val)->twoDimensionalEncoding))
  1419. return 0;
  1420. return 1;
  1421. }
  1422. static int ASN1CALL ASN1Dec_BitmapHeaderT4(ASN1decoding_t dec, BitmapHeaderT4 *val)
  1423. {
  1424. ASN1uint32_t y;
  1425. if (!ASN1PERDecExtensionBit(dec, &y))
  1426. return 0;
  1427. if (!ASN1PERDecBoolean(dec, &(val)->twoDimensionalEncoding))
  1428. return 0;
  1429. if (y) {
  1430. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1431. return 0;
  1432. }
  1433. return 1;
  1434. }
  1435. static int ASN1CALL ASN1Enc_BitmapHeaderT6(ASN1encoding_t enc, BitmapHeaderT6 *val)
  1436. {
  1437. if (!ASN1PEREncExtensionBitClear(enc))
  1438. return 0;
  1439. return 1;
  1440. }
  1441. static int ASN1CALL ASN1Dec_BitmapHeaderT6(ASN1decoding_t dec, BitmapHeaderT6 *val)
  1442. {
  1443. ASN1uint32_t y;
  1444. if (!ASN1PERDecExtensionBit(dec, &y))
  1445. return 0;
  1446. if (y) {
  1447. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1448. return 0;
  1449. }
  1450. return 1;
  1451. }
  1452. static int ASN1CALL ASN1Enc_BitmapRegion(ASN1encoding_t enc, BitmapRegion *val)
  1453. {
  1454. if (!ASN1Enc_BitmapRegion_upperLeft(enc, &(val)->upperLeft))
  1455. return 0;
  1456. if (!ASN1Enc_BitmapRegion_lowerRight(enc, &(val)->lowerRight))
  1457. return 0;
  1458. return 1;
  1459. }
  1460. static int ASN1CALL ASN1Dec_BitmapRegion(ASN1decoding_t dec, BitmapRegion *val)
  1461. {
  1462. if (!ASN1Dec_BitmapRegion_upperLeft(dec, &(val)->upperLeft))
  1463. return 0;
  1464. if (!ASN1Dec_BitmapRegion_lowerRight(dec, &(val)->lowerRight))
  1465. return 0;
  1466. return 1;
  1467. }
  1468. static int ASN1CALL ASN1Enc_BitmapSize(ASN1encoding_t enc, BitmapSize *val)
  1469. {
  1470. ASN1PEREncAlignment(enc);
  1471. if (!ASN1PEREncBitVal(enc, 16, (val)->width - 1))
  1472. return 0;
  1473. ASN1PEREncAlignment(enc);
  1474. if (!ASN1PEREncBitVal(enc, 16, (val)->height - 1))
  1475. return 0;
  1476. return 1;
  1477. }
  1478. static int ASN1CALL ASN1Dec_BitmapSize(ASN1decoding_t dec, BitmapSize *val)
  1479. {
  1480. ASN1PERDecAlignment(dec);
  1481. if (!ASN1PERDecU32Val(dec, 16, &(val)->width))
  1482. return 0;
  1483. (val)->width += 1;
  1484. ASN1PERDecAlignment(dec);
  1485. if (!ASN1PERDecU32Val(dec, 16, &(val)->height))
  1486. return 0;
  1487. (val)->height += 1;
  1488. return 1;
  1489. }
  1490. static int ASN1CALL ASN1Enc_ColorCIELab(ASN1encoding_t enc, ColorCIELab *val)
  1491. {
  1492. ASN1PEREncAlignment(enc);
  1493. if (!ASN1PEREncBitVal(enc, 8, (val)->l))
  1494. return 0;
  1495. ASN1PEREncAlignment(enc);
  1496. if (!ASN1PEREncBitVal(enc, 8, (val)->a))
  1497. return 0;
  1498. ASN1PEREncAlignment(enc);
  1499. if (!ASN1PEREncBitVal(enc, 8, (val)->b))
  1500. return 0;
  1501. return 1;
  1502. }
  1503. static int ASN1CALL ASN1Dec_ColorCIELab(ASN1decoding_t dec, ColorCIELab *val)
  1504. {
  1505. ASN1PERDecAlignment(dec);
  1506. if (!ASN1PERDecU16Val(dec, 8, &(val)->l))
  1507. return 0;
  1508. ASN1PERDecAlignment(dec);
  1509. if (!ASN1PERDecU16Val(dec, 8, &(val)->a))
  1510. return 0;
  1511. ASN1PERDecAlignment(dec);
  1512. if (!ASN1PERDecU16Val(dec, 8, &(val)->b))
  1513. return 0;
  1514. return 1;
  1515. }
  1516. static int ASN1CALL ASN1Enc_ColorCIExyChromaticity(ASN1encoding_t enc, ColorCIExyChromaticity *val)
  1517. {
  1518. if (!ASN1PEREncDouble(enc, (val)->x))
  1519. return 0;
  1520. if (!ASN1PEREncDouble(enc, (val)->y))
  1521. return 0;
  1522. return 1;
  1523. }
  1524. static int ASN1CALL ASN1Dec_ColorCIExyChromaticity(ASN1decoding_t dec, ColorCIExyChromaticity *val)
  1525. {
  1526. if (!ASN1PERDecDouble(dec, &(val)->x))
  1527. return 0;
  1528. if (!ASN1PERDecDouble(dec, &(val)->y))
  1529. return 0;
  1530. return 1;
  1531. }
  1532. static int ASN1CALL ASN1Enc_ColorIndexTable(ASN1encoding_t enc, PColorIndexTable *val)
  1533. {
  1534. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ColorIndexTable_ElmFn, 1, 256, 8);
  1535. }
  1536. static int ASN1CALL ASN1Enc_ColorIndexTable_ElmFn(ASN1encoding_t enc, PColorIndexTable val)
  1537. {
  1538. ASN1PEREncAlignment(enc);
  1539. if (!ASN1PEREncBitVal(enc, 8, val->value))
  1540. return 0;
  1541. return 1;
  1542. }
  1543. static int ASN1CALL ASN1Dec_ColorIndexTable(ASN1decoding_t dec, PColorIndexTable *val)
  1544. {
  1545. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ColorIndexTable_ElmFn, sizeof(**val), 1, 256, 8);
  1546. }
  1547. static int ASN1CALL ASN1Dec_ColorIndexTable_ElmFn(ASN1decoding_t dec, PColorIndexTable val)
  1548. {
  1549. ASN1PERDecAlignment(dec);
  1550. if (!ASN1PERDecU16Val(dec, 8, &val->value))
  1551. return 0;
  1552. return 1;
  1553. }
  1554. static void ASN1CALL ASN1Free_ColorIndexTable(PColorIndexTable *val)
  1555. {
  1556. if (val) {
  1557. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ColorIndexTable_ElmFn);
  1558. }
  1559. }
  1560. static void ASN1CALL ASN1Free_ColorIndexTable_ElmFn(PColorIndexTable val)
  1561. {
  1562. if (val) {
  1563. }
  1564. }
  1565. static int ASN1CALL ASN1Enc_ColorRGB(ASN1encoding_t enc, ColorRGB *val)
  1566. {
  1567. ASN1PEREncAlignment(enc);
  1568. if (!ASN1PEREncBitVal(enc, 8, (val)->r))
  1569. return 0;
  1570. ASN1PEREncAlignment(enc);
  1571. if (!ASN1PEREncBitVal(enc, 8, (val)->g))
  1572. return 0;
  1573. ASN1PEREncAlignment(enc);
  1574. if (!ASN1PEREncBitVal(enc, 8, (val)->b))
  1575. return 0;
  1576. return 1;
  1577. }
  1578. static int ASN1CALL ASN1Dec_ColorRGB(ASN1decoding_t dec, ColorRGB *val)
  1579. {
  1580. ASN1PERDecAlignment(dec);
  1581. if (!ASN1PERDecU16Val(dec, 8, &(val)->r))
  1582. return 0;
  1583. ASN1PERDecAlignment(dec);
  1584. if (!ASN1PERDecU16Val(dec, 8, &(val)->g))
  1585. return 0;
  1586. ASN1PERDecAlignment(dec);
  1587. if (!ASN1PERDecU16Val(dec, 8, &(val)->b))
  1588. return 0;
  1589. return 1;
  1590. }
  1591. static int ASN1CALL ASN1Enc_ColorYCbCr(ASN1encoding_t enc, ColorYCbCr *val)
  1592. {
  1593. ASN1PEREncAlignment(enc);
  1594. if (!ASN1PEREncBitVal(enc, 8, (val)->y))
  1595. return 0;
  1596. ASN1PEREncAlignment(enc);
  1597. if (!ASN1PEREncBitVal(enc, 8, (val)->cb))
  1598. return 0;
  1599. ASN1PEREncAlignment(enc);
  1600. if (!ASN1PEREncBitVal(enc, 8, (val)->cr))
  1601. return 0;
  1602. return 1;
  1603. }
  1604. static int ASN1CALL ASN1Dec_ColorYCbCr(ASN1decoding_t dec, ColorYCbCr *val)
  1605. {
  1606. ASN1PERDecAlignment(dec);
  1607. if (!ASN1PERDecU16Val(dec, 8, &(val)->y))
  1608. return 0;
  1609. ASN1PERDecAlignment(dec);
  1610. if (!ASN1PERDecU16Val(dec, 8, &(val)->cb))
  1611. return 0;
  1612. ASN1PERDecAlignment(dec);
  1613. if (!ASN1PERDecU16Val(dec, 8, &(val)->cr))
  1614. return 0;
  1615. return 1;
  1616. }
  1617. static int ASN1CALL ASN1Enc_DSMCCTap(ASN1encoding_t enc, DSMCCTap *val)
  1618. {
  1619. if (!ASN1PEREncExtensionBitClear(enc))
  1620. return 0;
  1621. if (!ASN1PEREncBits(enc, 1, (val)->o))
  1622. return 0;
  1623. if (!ASN1PEREncUnsignedShort(enc, (val)->use))
  1624. return 0;
  1625. if (!ASN1PEREncUnsignedShort(enc, (val)->id))
  1626. return 0;
  1627. if (!ASN1PEREncUnsignedShort(enc, (val)->associationTag))
  1628. return 0;
  1629. if ((val)->o[0] & 0x80) {
  1630. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->selector, 1, 256, 8))
  1631. return 0;
  1632. }
  1633. return 1;
  1634. }
  1635. static int ASN1CALL ASN1Dec_DSMCCTap(ASN1decoding_t dec, DSMCCTap *val)
  1636. {
  1637. ASN1uint32_t y;
  1638. if (!ASN1PERDecExtensionBit(dec, &y))
  1639. return 0;
  1640. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  1641. return 0;
  1642. if (!ASN1PERDecUnsignedShort(dec, &(val)->use))
  1643. return 0;
  1644. if (!ASN1PERDecUnsignedShort(dec, &(val)->id))
  1645. return 0;
  1646. if (!ASN1PERDecUnsignedShort(dec, &(val)->associationTag))
  1647. return 0;
  1648. if ((val)->o[0] & 0x80) {
  1649. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->selector, 1, 256, 8))
  1650. return 0;
  1651. }
  1652. if (y) {
  1653. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1654. return 0;
  1655. }
  1656. return 1;
  1657. }
  1658. static void ASN1CALL ASN1Free_DSMCCTap(DSMCCTap *val)
  1659. {
  1660. if (val) {
  1661. if ((val)->o[0] & 0x80) {
  1662. }
  1663. }
  1664. }
  1665. static int ASN1CALL ASN1Enc_NonStandardIdentifier(ASN1encoding_t enc, NonStandardIdentifier *val)
  1666. {
  1667. if (!ASN1PEREncSimpleChoice(enc, (val)->choice, 1))
  1668. return 0;
  1669. switch ((val)->choice) {
  1670. case 1:
  1671. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.object))
  1672. return 0;
  1673. break;
  1674. case 2:
  1675. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->u.h221nonStandard, 4, 255, 8))
  1676. return 0;
  1677. break;
  1678. default:
  1679. /* impossible */
  1680. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1681. return 0;
  1682. }
  1683. return 1;
  1684. }
  1685. static int ASN1CALL ASN1Dec_NonStandardIdentifier(ASN1decoding_t dec, NonStandardIdentifier *val)
  1686. {
  1687. if (!ASN1PERDecSimpleChoice(dec, &(val)->choice, 1))
  1688. return 0;
  1689. switch ((val)->choice) {
  1690. case 1:
  1691. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.object))
  1692. return 0;
  1693. break;
  1694. case 2:
  1695. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->u.h221nonStandard, 4, 255, 8))
  1696. return 0;
  1697. break;
  1698. default:
  1699. /* impossible */
  1700. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1701. return 0;
  1702. }
  1703. return 1;
  1704. }
  1705. static void ASN1CALL ASN1Free_NonStandardIdentifier(NonStandardIdentifier *val)
  1706. {
  1707. if (val) {
  1708. switch ((val)->choice) {
  1709. case 1:
  1710. ASN1objectidentifier_free(&(val)->u.object);
  1711. break;
  1712. case 2:
  1713. break;
  1714. }
  1715. }
  1716. }
  1717. static int ASN1CALL ASN1Enc_NonStandardParameter(ASN1encoding_t enc, NonStandardParameter *val)
  1718. {
  1719. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->nonStandardIdentifier))
  1720. return 0;
  1721. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->data))
  1722. return 0;
  1723. return 1;
  1724. }
  1725. static int ASN1CALL ASN1Dec_NonStandardParameter(ASN1decoding_t dec, NonStandardParameter *val)
  1726. {
  1727. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->nonStandardIdentifier))
  1728. return 0;
  1729. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->data))
  1730. return 0;
  1731. return 1;
  1732. }
  1733. static void ASN1CALL ASN1Free_NonStandardParameter(NonStandardParameter *val)
  1734. {
  1735. if (val) {
  1736. ASN1Free_NonStandardIdentifier(&(val)->nonStandardIdentifier);
  1737. ASN1octetstring_free(&(val)->data);
  1738. }
  1739. }
  1740. static int ASN1CALL ASN1Enc_PenNib(ASN1encoding_t enc, PenNib *val)
  1741. {
  1742. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  1743. return 0;
  1744. switch ((val)->choice) {
  1745. case 1:
  1746. break;
  1747. case 2:
  1748. break;
  1749. case 3:
  1750. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardNib))
  1751. return 0;
  1752. break;
  1753. default:
  1754. /* impossible */
  1755. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1756. return 0;
  1757. }
  1758. return 1;
  1759. }
  1760. static int ASN1CALL ASN1Dec_PenNib(ASN1decoding_t dec, PenNib *val)
  1761. {
  1762. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  1763. return 0;
  1764. switch ((val)->choice) {
  1765. case 1:
  1766. break;
  1767. case 2:
  1768. break;
  1769. case 3:
  1770. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardNib))
  1771. return 0;
  1772. break;
  1773. case 0:
  1774. /* extension case */
  1775. if (!ASN1PERDecSkipFragmented(dec, 8))
  1776. return 0;
  1777. break;
  1778. default:
  1779. /* impossible */
  1780. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1781. return 0;
  1782. }
  1783. return 1;
  1784. }
  1785. static void ASN1CALL ASN1Free_PenNib(PenNib *val)
  1786. {
  1787. if (val) {
  1788. switch ((val)->choice) {
  1789. case 3:
  1790. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardNib);
  1791. break;
  1792. }
  1793. }
  1794. }
  1795. static int ASN1CALL ASN1Enc_PixelAspectRatio(ASN1encoding_t enc, PixelAspectRatio *val)
  1796. {
  1797. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  1798. return 0;
  1799. switch ((val)->choice) {
  1800. case 1:
  1801. break;
  1802. case 2:
  1803. break;
  1804. case 3:
  1805. break;
  1806. case 4:
  1807. break;
  1808. case 5:
  1809. if (!ASN1Enc_PixelAspectRatio_general(enc, &(val)->u.general))
  1810. return 0;
  1811. break;
  1812. case 6:
  1813. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardAspectRatio))
  1814. return 0;
  1815. break;
  1816. default:
  1817. /* impossible */
  1818. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1819. return 0;
  1820. }
  1821. return 1;
  1822. }
  1823. static int ASN1CALL ASN1Dec_PixelAspectRatio(ASN1decoding_t dec, PixelAspectRatio *val)
  1824. {
  1825. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  1826. return 0;
  1827. switch ((val)->choice) {
  1828. case 1:
  1829. break;
  1830. case 2:
  1831. break;
  1832. case 3:
  1833. break;
  1834. case 4:
  1835. break;
  1836. case 5:
  1837. if (!ASN1Dec_PixelAspectRatio_general(dec, &(val)->u.general))
  1838. return 0;
  1839. break;
  1840. case 6:
  1841. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardAspectRatio))
  1842. return 0;
  1843. break;
  1844. case 0:
  1845. /* extension case */
  1846. if (!ASN1PERDecSkipFragmented(dec, 8))
  1847. return 0;
  1848. break;
  1849. default:
  1850. /* impossible */
  1851. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1852. return 0;
  1853. }
  1854. return 1;
  1855. }
  1856. static void ASN1CALL ASN1Free_PixelAspectRatio(PixelAspectRatio *val)
  1857. {
  1858. if (val) {
  1859. switch ((val)->choice) {
  1860. case 6:
  1861. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardAspectRatio);
  1862. break;
  1863. }
  1864. }
  1865. }
  1866. static int ASN1CALL ASN1Enc_PlaneProtection(ASN1encoding_t enc, PlaneProtection *val)
  1867. {
  1868. if (!ASN1PEREncExtensionBitClear(enc))
  1869. return 0;
  1870. if (!ASN1PEREncBoolean(enc, (val)->protectedplane))
  1871. return 0;
  1872. return 1;
  1873. }
  1874. static int ASN1CALL ASN1Dec_PlaneProtection(ASN1decoding_t dec, PlaneProtection *val)
  1875. {
  1876. ASN1uint32_t y;
  1877. if (!ASN1PERDecExtensionBit(dec, &y))
  1878. return 0;
  1879. if (!ASN1PERDecBoolean(dec, &(val)->protectedplane))
  1880. return 0;
  1881. if (y) {
  1882. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1883. return 0;
  1884. }
  1885. return 1;
  1886. }
  1887. static int ASN1CALL ASN1Enc_PlaneUsage(ASN1encoding_t enc, PlaneUsage *val)
  1888. {
  1889. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  1890. return 0;
  1891. switch ((val)->choice) {
  1892. case 1:
  1893. break;
  1894. case 2:
  1895. break;
  1896. case 3:
  1897. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardPlaneUsage))
  1898. return 0;
  1899. break;
  1900. default:
  1901. /* impossible */
  1902. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1903. return 0;
  1904. }
  1905. return 1;
  1906. }
  1907. static int ASN1CALL ASN1Dec_PlaneUsage(ASN1decoding_t dec, PlaneUsage *val)
  1908. {
  1909. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  1910. return 0;
  1911. switch ((val)->choice) {
  1912. case 1:
  1913. break;
  1914. case 2:
  1915. break;
  1916. case 3:
  1917. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardPlaneUsage))
  1918. return 0;
  1919. break;
  1920. case 0:
  1921. /* extension case */
  1922. if (!ASN1PERDecSkipFragmented(dec, 8))
  1923. return 0;
  1924. break;
  1925. default:
  1926. /* impossible */
  1927. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1928. return 0;
  1929. }
  1930. return 1;
  1931. }
  1932. static void ASN1CALL ASN1Free_PlaneUsage(PlaneUsage *val)
  1933. {
  1934. if (val) {
  1935. switch ((val)->choice) {
  1936. case 3:
  1937. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardPlaneUsage);
  1938. break;
  1939. }
  1940. }
  1941. }
  1942. static int ASN1CALL ASN1Enc_PointList(ASN1encoding_t enc, PointList *val)
  1943. {
  1944. if (!ASN1PEREncSimpleChoice(enc, (val)->choice, 2))
  1945. return 0;
  1946. switch ((val)->choice) {
  1947. case 1:
  1948. if (!ASN1Enc_PointList_pointsDiff4(enc, &(val)->u.pointsDiff4))
  1949. return 0;
  1950. break;
  1951. case 2:
  1952. if (!ASN1Enc_PointList_pointsDiff8(enc, &(val)->u.pointsDiff8))
  1953. return 0;
  1954. break;
  1955. case 3:
  1956. if (!ASN1Enc_PointList_pointsDiff16(enc, &(val)->u.pointsDiff16))
  1957. return 0;
  1958. break;
  1959. default:
  1960. /* impossible */
  1961. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1962. return 0;
  1963. }
  1964. return 1;
  1965. }
  1966. static int ASN1CALL ASN1Dec_PointList(ASN1decoding_t dec, PointList *val)
  1967. {
  1968. if (!ASN1PERDecSimpleChoice(dec, &(val)->choice, 2))
  1969. return 0;
  1970. switch ((val)->choice) {
  1971. case 1:
  1972. if (!ASN1Dec_PointList_pointsDiff4(dec, &(val)->u.pointsDiff4))
  1973. return 0;
  1974. break;
  1975. case 2:
  1976. if (!ASN1Dec_PointList_pointsDiff8(dec, &(val)->u.pointsDiff8))
  1977. return 0;
  1978. break;
  1979. case 3:
  1980. if (!ASN1Dec_PointList_pointsDiff16(dec, &(val)->u.pointsDiff16))
  1981. return 0;
  1982. break;
  1983. default:
  1984. /* impossible */
  1985. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1986. return 0;
  1987. }
  1988. return 1;
  1989. }
  1990. static void ASN1CALL ASN1Free_PointList(PointList *val)
  1991. {
  1992. if (val) {
  1993. switch ((val)->choice) {
  1994. case 1:
  1995. ASN1Free_PointList_pointsDiff4(&(val)->u.pointsDiff4);
  1996. break;
  1997. case 2:
  1998. ASN1Free_PointList_pointsDiff8(&(val)->u.pointsDiff8);
  1999. break;
  2000. case 3:
  2001. ASN1Free_PointList_pointsDiff16(&(val)->u.pointsDiff16);
  2002. break;
  2003. }
  2004. }
  2005. }
  2006. static int ASN1CALL ASN1Enc_PointDiff4(ASN1encoding_t enc, PointDiff4 *val)
  2007. {
  2008. if (!ASN1PEREncBitVal(enc, 4, (val)->xCoordinate + 8))
  2009. return 0;
  2010. if (!ASN1PEREncBitVal(enc, 4, (val)->yCoordinate + 8))
  2011. return 0;
  2012. return 1;
  2013. }
  2014. static int ASN1CALL ASN1Dec_PointDiff4(ASN1decoding_t dec, PointDiff4 *val)
  2015. {
  2016. if (!ASN1PERDecU8Val(dec, 4, &(val)->xCoordinate))
  2017. return 0;
  2018. (val)->xCoordinate += 0 - 8;
  2019. if (!ASN1PERDecU8Val(dec, 4, &(val)->yCoordinate))
  2020. return 0;
  2021. (val)->yCoordinate += 0 - 8;
  2022. return 1;
  2023. }
  2024. static int ASN1CALL ASN1Enc_PointDiff8(ASN1encoding_t enc, PointDiff8 *val)
  2025. {
  2026. ASN1PEREncAlignment(enc);
  2027. if (!ASN1PEREncBitVal(enc, 8, (val)->xCoordinate + 128))
  2028. return 0;
  2029. ASN1PEREncAlignment(enc);
  2030. if (!ASN1PEREncBitVal(enc, 8, (val)->yCoordinate + 128))
  2031. return 0;
  2032. return 1;
  2033. }
  2034. static int ASN1CALL ASN1Dec_PointDiff8(ASN1decoding_t dec, PointDiff8 *val)
  2035. {
  2036. ASN1PERDecAlignment(dec);
  2037. if (!ASN1PERDecU8Val(dec, 8, &(val)->xCoordinate))
  2038. return 0;
  2039. (val)->xCoordinate += 0 - 128;
  2040. ASN1PERDecAlignment(dec);
  2041. if (!ASN1PERDecU8Val(dec, 8, &(val)->yCoordinate))
  2042. return 0;
  2043. (val)->yCoordinate += 0 - 128;
  2044. return 1;
  2045. }
  2046. static int ASN1CALL ASN1Enc_PointDiff16(ASN1encoding_t enc, PointDiff16 *val)
  2047. {
  2048. if (!ASN1PEREncUnsignedShort(enc, (val)->xCoordinate + 32768))
  2049. return 0;
  2050. if (!ASN1PEREncUnsignedShort(enc, (val)->yCoordinate + 32768))
  2051. return 0;
  2052. return 1;
  2053. }
  2054. static int ASN1CALL ASN1Dec_PointDiff16(ASN1decoding_t dec, PointDiff16 *val)
  2055. {
  2056. if (!ASN1PERDecUnsignedShort(dec, &(val)->xCoordinate))
  2057. return 0;
  2058. (val)->xCoordinate += 0 - 32768;
  2059. if (!ASN1PERDecUnsignedShort(dec, &(val)->yCoordinate))
  2060. return 0;
  2061. (val)->yCoordinate += 0 - 32768;
  2062. return 1;
  2063. }
  2064. static int ASN1CALL ASN1Enc_RemoteEventDestinationAddress(ASN1encoding_t enc, RemoteEventDestinationAddress *val)
  2065. {
  2066. ASN1uint32_t l;
  2067. ASN1encoding_t ee;
  2068. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 0, 1))
  2069. return 0;
  2070. switch ((val)->choice) {
  2071. case 1:
  2072. l = ASN1uint32_uoctets((val)->u.softCopyWorkspace);
  2073. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2074. return 0;
  2075. ASN1PEREncAlignment(enc);
  2076. if (!ASN1PEREncBitVal(enc, l * 8, (val)->u.softCopyWorkspace))
  2077. return 0;
  2078. break;
  2079. case 2:
  2080. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2081. return 0;
  2082. if (!ASN1Enc_NonStandardParameter(ee, &(val)->u.nonStandardDestination))
  2083. return 0;
  2084. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2085. return 0;
  2086. ASN1_CloseEncoder2(ee);
  2087. break;
  2088. default:
  2089. /* impossible */
  2090. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2091. return 0;
  2092. }
  2093. return 1;
  2094. }
  2095. static int ASN1CALL ASN1Dec_RemoteEventDestinationAddress(ASN1decoding_t dec, RemoteEventDestinationAddress *val)
  2096. {
  2097. ASN1uint32_t l;
  2098. ASN1decoding_t dd;
  2099. ASN1octet_t *db;
  2100. ASN1uint32_t ds;
  2101. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 0, 1))
  2102. return 0;
  2103. switch ((val)->choice) {
  2104. case 1:
  2105. if (!ASN1PERDecU32Val(dec, 2, &l))
  2106. return 0;
  2107. l += 1;
  2108. ASN1PERDecAlignment(dec);
  2109. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->u.softCopyWorkspace))
  2110. return 0;
  2111. break;
  2112. case 2:
  2113. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2114. return 0;
  2115. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2116. return 0;
  2117. if (!ASN1Dec_NonStandardParameter(dd, &(val)->u.nonStandardDestination))
  2118. return 0;
  2119. ASN1_CloseDecoder(dd);
  2120. ASN1Free(db);
  2121. break;
  2122. case 0:
  2123. /* extension case */
  2124. if (!ASN1PERDecSkipFragmented(dec, 8))
  2125. return 0;
  2126. break;
  2127. default:
  2128. /* impossible */
  2129. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2130. return 0;
  2131. }
  2132. return 1;
  2133. }
  2134. static void ASN1CALL ASN1Free_RemoteEventDestinationAddress(RemoteEventDestinationAddress *val)
  2135. {
  2136. if (val) {
  2137. switch ((val)->choice) {
  2138. case 2:
  2139. ASN1Free_NonStandardParameter(&(val)->u.nonStandardDestination);
  2140. break;
  2141. }
  2142. }
  2143. }
  2144. static int ASN1CALL ASN1Enc_RemoteEventPermission(ASN1encoding_t enc, RemoteEventPermission *val)
  2145. {
  2146. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2147. return 0;
  2148. switch ((val)->choice) {
  2149. case 1:
  2150. break;
  2151. case 2:
  2152. break;
  2153. case 3:
  2154. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardEvent))
  2155. return 0;
  2156. break;
  2157. default:
  2158. /* impossible */
  2159. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2160. return 0;
  2161. }
  2162. return 1;
  2163. }
  2164. static int ASN1CALL ASN1Dec_RemoteEventPermission(ASN1decoding_t dec, RemoteEventPermission *val)
  2165. {
  2166. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2167. return 0;
  2168. switch ((val)->choice) {
  2169. case 1:
  2170. break;
  2171. case 2:
  2172. break;
  2173. case 3:
  2174. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardEvent))
  2175. return 0;
  2176. break;
  2177. case 0:
  2178. /* extension case */
  2179. if (!ASN1PERDecSkipFragmented(dec, 8))
  2180. return 0;
  2181. break;
  2182. default:
  2183. /* impossible */
  2184. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2185. return 0;
  2186. }
  2187. return 1;
  2188. }
  2189. static void ASN1CALL ASN1Free_RemoteEventPermission(RemoteEventPermission *val)
  2190. {
  2191. if (val) {
  2192. switch ((val)->choice) {
  2193. case 3:
  2194. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardEvent);
  2195. break;
  2196. }
  2197. }
  2198. }
  2199. static int ASN1CALL ASN1Enc_RotationSpecifier(ASN1encoding_t enc, RotationSpecifier *val)
  2200. {
  2201. if (!ASN1PEREncUnsignedShort(enc, (val)->rotationAngle))
  2202. return 0;
  2203. if (!ASN1Enc_PointDiff16(enc, &(val)->rotationAxis))
  2204. return 0;
  2205. return 1;
  2206. }
  2207. static int ASN1CALL ASN1Dec_RotationSpecifier(ASN1decoding_t dec, RotationSpecifier *val)
  2208. {
  2209. if (!ASN1PERDecUnsignedShort(dec, &(val)->rotationAngle))
  2210. return 0;
  2211. if (!ASN1Dec_PointDiff16(dec, &(val)->rotationAxis))
  2212. return 0;
  2213. return 1;
  2214. }
  2215. static int ASN1CALL ASN1Enc_SoftCopyDataPlaneAddress(ASN1encoding_t enc, SoftCopyDataPlaneAddress *val)
  2216. {
  2217. ASN1uint32_t l;
  2218. l = ASN1uint32_uoctets((val)->workspaceHandle);
  2219. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2220. return 0;
  2221. ASN1PEREncAlignment(enc);
  2222. if (!ASN1PEREncBitVal(enc, l * 8, (val)->workspaceHandle))
  2223. return 0;
  2224. ASN1PEREncAlignment(enc);
  2225. if (!ASN1PEREncBitVal(enc, 8, (val)->plane))
  2226. return 0;
  2227. return 1;
  2228. }
  2229. static int ASN1CALL ASN1Dec_SoftCopyDataPlaneAddress(ASN1decoding_t dec, SoftCopyDataPlaneAddress *val)
  2230. {
  2231. ASN1uint32_t l;
  2232. if (!ASN1PERDecU32Val(dec, 2, &l))
  2233. return 0;
  2234. l += 1;
  2235. ASN1PERDecAlignment(dec);
  2236. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->workspaceHandle))
  2237. return 0;
  2238. ASN1PERDecAlignment(dec);
  2239. if (!ASN1PERDecU16Val(dec, 8, &(val)->plane))
  2240. return 0;
  2241. return 1;
  2242. }
  2243. static int ASN1CALL ASN1Enc_SoftCopyPointerPlaneAddress(ASN1encoding_t enc, SoftCopyPointerPlaneAddress *val)
  2244. {
  2245. ASN1uint32_t l;
  2246. l = ASN1uint32_uoctets((val)->workspaceHandle);
  2247. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2248. return 0;
  2249. ASN1PEREncAlignment(enc);
  2250. if (!ASN1PEREncBitVal(enc, l * 8, (val)->workspaceHandle))
  2251. return 0;
  2252. return 1;
  2253. }
  2254. static int ASN1CALL ASN1Dec_SoftCopyPointerPlaneAddress(ASN1decoding_t dec, SoftCopyPointerPlaneAddress *val)
  2255. {
  2256. ASN1uint32_t l;
  2257. if (!ASN1PERDecU32Val(dec, 2, &l))
  2258. return 0;
  2259. l += 1;
  2260. ASN1PERDecAlignment(dec);
  2261. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->workspaceHandle))
  2262. return 0;
  2263. return 1;
  2264. }
  2265. static int ASN1CALL ASN1Enc_SourceDisplayIndicator(ASN1encoding_t enc, SourceDisplayIndicator *val)
  2266. {
  2267. if (!ASN1PEREncExtensionBitClear(enc))
  2268. return 0;
  2269. if (!ASN1PEREncDouble(enc, (val)->displayAspectRatio))
  2270. return 0;
  2271. if (!ASN1PEREncDouble(enc, (val)->horizontalSizeRatio))
  2272. return 0;
  2273. if (!ASN1PEREncDouble(enc, (val)->horizontalPosition))
  2274. return 0;
  2275. if (!ASN1PEREncDouble(enc, (val)->verticalPosition))
  2276. return 0;
  2277. return 1;
  2278. }
  2279. static int ASN1CALL ASN1Dec_SourceDisplayIndicator(ASN1decoding_t dec, SourceDisplayIndicator *val)
  2280. {
  2281. ASN1uint32_t y;
  2282. if (!ASN1PERDecExtensionBit(dec, &y))
  2283. return 0;
  2284. if (!ASN1PERDecDouble(dec, &(val)->displayAspectRatio))
  2285. return 0;
  2286. if (!ASN1PERDecDouble(dec, &(val)->horizontalSizeRatio))
  2287. return 0;
  2288. if (!ASN1PERDecDouble(dec, &(val)->horizontalPosition))
  2289. return 0;
  2290. if (!ASN1PERDecDouble(dec, &(val)->verticalPosition))
  2291. return 0;
  2292. if (y) {
  2293. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2294. return 0;
  2295. }
  2296. return 1;
  2297. }
  2298. static int ASN1CALL ASN1Enc_ViewState(ASN1encoding_t enc, ViewState *val)
  2299. {
  2300. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2301. return 0;
  2302. switch ((val)->choice) {
  2303. case 1:
  2304. break;
  2305. case 2:
  2306. break;
  2307. case 3:
  2308. break;
  2309. case 4:
  2310. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardViewState))
  2311. return 0;
  2312. break;
  2313. default:
  2314. /* impossible */
  2315. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2316. return 0;
  2317. }
  2318. return 1;
  2319. }
  2320. static int ASN1CALL ASN1Dec_ViewState(ASN1decoding_t dec, ViewState *val)
  2321. {
  2322. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2323. return 0;
  2324. switch ((val)->choice) {
  2325. case 1:
  2326. break;
  2327. case 2:
  2328. break;
  2329. case 3:
  2330. break;
  2331. case 4:
  2332. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardViewState))
  2333. return 0;
  2334. break;
  2335. case 0:
  2336. /* extension case */
  2337. if (!ASN1PERDecSkipFragmented(dec, 8))
  2338. return 0;
  2339. break;
  2340. default:
  2341. /* impossible */
  2342. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2343. return 0;
  2344. }
  2345. return 1;
  2346. }
  2347. static void ASN1CALL ASN1Free_ViewState(ViewState *val)
  2348. {
  2349. if (val) {
  2350. switch ((val)->choice) {
  2351. case 4:
  2352. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardViewState);
  2353. break;
  2354. }
  2355. }
  2356. }
  2357. static int ASN1CALL ASN1Enc_WorkspaceColor(ASN1encoding_t enc, WorkspaceColor *val)
  2358. {
  2359. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2360. return 0;
  2361. switch ((val)->choice) {
  2362. case 1:
  2363. ASN1PEREncAlignment(enc);
  2364. if (!ASN1PEREncBitVal(enc, 8, (val)->u.workspacePaletteIndex))
  2365. return 0;
  2366. break;
  2367. case 2:
  2368. if (!ASN1Enc_ColorRGB(enc, &(val)->u.rgbTrueColor))
  2369. return 0;
  2370. break;
  2371. case 3:
  2372. break;
  2373. default:
  2374. /* impossible */
  2375. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2376. return 0;
  2377. }
  2378. return 1;
  2379. }
  2380. static int ASN1CALL ASN1Dec_WorkspaceColor(ASN1decoding_t dec, WorkspaceColor *val)
  2381. {
  2382. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2383. return 0;
  2384. switch ((val)->choice) {
  2385. case 1:
  2386. ASN1PERDecAlignment(dec);
  2387. if (!ASN1PERDecU16Val(dec, 8, &(val)->u.workspacePaletteIndex))
  2388. return 0;
  2389. break;
  2390. case 2:
  2391. if (!ASN1Dec_ColorRGB(dec, &(val)->u.rgbTrueColor))
  2392. return 0;
  2393. break;
  2394. case 3:
  2395. break;
  2396. case 0:
  2397. /* extension case */
  2398. if (!ASN1PERDecSkipFragmented(dec, 8))
  2399. return 0;
  2400. break;
  2401. default:
  2402. /* impossible */
  2403. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2404. return 0;
  2405. }
  2406. return 1;
  2407. }
  2408. static int ASN1CALL ASN1Enc_WorkspaceDeleteReason(ASN1encoding_t enc, WorkspaceDeleteReason *val)
  2409. {
  2410. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2411. return 0;
  2412. switch ((val)->choice) {
  2413. case 1:
  2414. break;
  2415. case 2:
  2416. break;
  2417. case 3:
  2418. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardReason))
  2419. return 0;
  2420. break;
  2421. default:
  2422. /* impossible */
  2423. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2424. return 0;
  2425. }
  2426. return 1;
  2427. }
  2428. static int ASN1CALL ASN1Dec_WorkspaceDeleteReason(ASN1decoding_t dec, WorkspaceDeleteReason *val)
  2429. {
  2430. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2431. return 0;
  2432. switch ((val)->choice) {
  2433. case 1:
  2434. break;
  2435. case 2:
  2436. break;
  2437. case 3:
  2438. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardReason))
  2439. return 0;
  2440. break;
  2441. case 0:
  2442. /* extension case */
  2443. if (!ASN1PERDecSkipFragmented(dec, 8))
  2444. return 0;
  2445. break;
  2446. default:
  2447. /* impossible */
  2448. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2449. return 0;
  2450. }
  2451. return 1;
  2452. }
  2453. static void ASN1CALL ASN1Free_WorkspaceDeleteReason(WorkspaceDeleteReason *val)
  2454. {
  2455. if (val) {
  2456. switch ((val)->choice) {
  2457. case 3:
  2458. ASN1Free_NonStandardParameter(&(val)->u.nonStandardReason);
  2459. break;
  2460. }
  2461. }
  2462. }
  2463. static int ASN1CALL ASN1Enc_WorkspaceIdentifier(ASN1encoding_t enc, WorkspaceIdentifier *val)
  2464. {
  2465. ASN1uint32_t l;
  2466. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  2467. return 0;
  2468. switch ((val)->choice) {
  2469. case 1:
  2470. l = ASN1uint32_uoctets((val)->u.activeWorkspace);
  2471. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2472. return 0;
  2473. ASN1PEREncAlignment(enc);
  2474. if (!ASN1PEREncBitVal(enc, l * 8, (val)->u.activeWorkspace))
  2475. return 0;
  2476. break;
  2477. case 2:
  2478. if (!ASN1Enc_WorkspaceIdentifier_archiveWorkspace(enc, &(val)->u.archiveWorkspace))
  2479. return 0;
  2480. break;
  2481. default:
  2482. /* impossible */
  2483. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2484. return 0;
  2485. }
  2486. return 1;
  2487. }
  2488. static int ASN1CALL ASN1Dec_WorkspaceIdentifier(ASN1decoding_t dec, WorkspaceIdentifier *val)
  2489. {
  2490. ASN1uint32_t l;
  2491. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  2492. return 0;
  2493. switch ((val)->choice) {
  2494. case 1:
  2495. if (!ASN1PERDecU32Val(dec, 2, &l))
  2496. return 0;
  2497. l += 1;
  2498. ASN1PERDecAlignment(dec);
  2499. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->u.activeWorkspace))
  2500. return 0;
  2501. break;
  2502. case 2:
  2503. if (!ASN1Dec_WorkspaceIdentifier_archiveWorkspace(dec, &(val)->u.archiveWorkspace))
  2504. return 0;
  2505. break;
  2506. case 0:
  2507. /* extension case */
  2508. if (!ASN1PERDecSkipFragmented(dec, 8))
  2509. return 0;
  2510. break;
  2511. default:
  2512. /* impossible */
  2513. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2514. return 0;
  2515. }
  2516. return 1;
  2517. }
  2518. static void ASN1CALL ASN1Free_WorkspaceIdentifier(WorkspaceIdentifier *val)
  2519. {
  2520. if (val) {
  2521. switch ((val)->choice) {
  2522. case 2:
  2523. ASN1Free_WorkspaceIdentifier_archiveWorkspace(&(val)->u.archiveWorkspace);
  2524. break;
  2525. }
  2526. }
  2527. }
  2528. static int ASN1CALL ASN1Enc_WorkspacePoint(ASN1encoding_t enc, WorkspacePoint *val)
  2529. {
  2530. ASN1PEREncAlignment(enc);
  2531. if (!ASN1PEREncBitVal(enc, 16, (val)->xCoordinate + 21845))
  2532. return 0;
  2533. ASN1PEREncAlignment(enc);
  2534. if (!ASN1PEREncBitVal(enc, 16, (val)->yCoordinate + 21845))
  2535. return 0;
  2536. return 1;
  2537. }
  2538. static int ASN1CALL ASN1Dec_WorkspacePoint(ASN1decoding_t dec, WorkspacePoint *val)
  2539. {
  2540. ASN1PERDecAlignment(dec);
  2541. if (!ASN1PERDecU32Val(dec, 16, &(val)->xCoordinate))
  2542. return 0;
  2543. (val)->xCoordinate += 0 - 21845;
  2544. ASN1PERDecAlignment(dec);
  2545. if (!ASN1PERDecU32Val(dec, 16, &(val)->yCoordinate))
  2546. return 0;
  2547. (val)->yCoordinate += 0 - 21845;
  2548. return 1;
  2549. }
  2550. static int ASN1CALL ASN1Enc_WorkspaceRegion(ASN1encoding_t enc, WorkspaceRegion *val)
  2551. {
  2552. if (!ASN1Enc_WorkspacePoint(enc, &(val)->upperLeft))
  2553. return 0;
  2554. if (!ASN1Enc_WorkspacePoint(enc, &(val)->lowerRight))
  2555. return 0;
  2556. return 1;
  2557. }
  2558. static int ASN1CALL ASN1Dec_WorkspaceRegion(ASN1decoding_t dec, WorkspaceRegion *val)
  2559. {
  2560. if (!ASN1Dec_WorkspacePoint(dec, &(val)->upperLeft))
  2561. return 0;
  2562. if (!ASN1Dec_WorkspacePoint(dec, &(val)->lowerRight))
  2563. return 0;
  2564. return 1;
  2565. }
  2566. static int ASN1CALL ASN1Enc_WorkspaceSize(ASN1encoding_t enc, WorkspaceSize *val)
  2567. {
  2568. if (!ASN1PEREncUnsignedShort(enc, (val)->width - 1))
  2569. return 0;
  2570. if (!ASN1PEREncUnsignedShort(enc, (val)->height - 1))
  2571. return 0;
  2572. return 1;
  2573. }
  2574. static int ASN1CALL ASN1Dec_WorkspaceSize(ASN1decoding_t dec, WorkspaceSize *val)
  2575. {
  2576. if (!ASN1PERDecUnsignedShort(dec, &(val)->width))
  2577. return 0;
  2578. (val)->width += 1;
  2579. if (!ASN1PERDecUnsignedShort(dec, &(val)->height))
  2580. return 0;
  2581. (val)->height += 1;
  2582. return 1;
  2583. }
  2584. static int ASN1CALL ASN1Enc_WorkspaceViewState(ASN1encoding_t enc, WorkspaceViewState *val)
  2585. {
  2586. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  2587. return 0;
  2588. switch ((val)->choice) {
  2589. case 1:
  2590. break;
  2591. case 2:
  2592. break;
  2593. case 3:
  2594. break;
  2595. case 4:
  2596. break;
  2597. case 5:
  2598. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardState))
  2599. return 0;
  2600. break;
  2601. default:
  2602. /* impossible */
  2603. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2604. return 0;
  2605. }
  2606. return 1;
  2607. }
  2608. static int ASN1CALL ASN1Dec_WorkspaceViewState(ASN1decoding_t dec, WorkspaceViewState *val)
  2609. {
  2610. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  2611. return 0;
  2612. switch ((val)->choice) {
  2613. case 1:
  2614. break;
  2615. case 2:
  2616. break;
  2617. case 3:
  2618. break;
  2619. case 4:
  2620. break;
  2621. case 5:
  2622. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardState))
  2623. return 0;
  2624. break;
  2625. case 0:
  2626. /* extension case */
  2627. if (!ASN1PERDecSkipFragmented(dec, 8))
  2628. return 0;
  2629. break;
  2630. default:
  2631. /* impossible */
  2632. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2633. return 0;
  2634. }
  2635. return 1;
  2636. }
  2637. static void ASN1CALL ASN1Free_WorkspaceViewState(WorkspaceViewState *val)
  2638. {
  2639. if (val) {
  2640. switch ((val)->choice) {
  2641. case 5:
  2642. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardState);
  2643. break;
  2644. }
  2645. }
  2646. }
  2647. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU(ASN1encoding_t enc, BitmapCheckpointPDU *val)
  2648. {
  2649. ASN1uint32_t l;
  2650. if (!ASN1PEREncExtensionBitClear(enc))
  2651. return 0;
  2652. if (!ASN1PEREncBits(enc, 1, (val)->o))
  2653. return 0;
  2654. l = ASN1uint32_uoctets((val)->bitmapHandle);
  2655. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2656. return 0;
  2657. ASN1PEREncAlignment(enc);
  2658. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bitmapHandle))
  2659. return 0;
  2660. if (!ASN1Enc_BitmapCheckpointPDU_passedCheckpoints(enc, &(val)->passedCheckpoints))
  2661. return 0;
  2662. if (!ASN1PEREncBitVal(enc, 7, (val)->percentComplete - 1))
  2663. return 0;
  2664. if ((val)->o[0] & 0x80) {
  2665. if (!ASN1Enc_BitmapCheckpointPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  2666. return 0;
  2667. }
  2668. return 1;
  2669. }
  2670. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU(ASN1decoding_t dec, BitmapCheckpointPDU *val)
  2671. {
  2672. ASN1uint32_t y;
  2673. ASN1uint32_t l;
  2674. if (!ASN1PERDecExtensionBit(dec, &y))
  2675. return 0;
  2676. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  2677. return 0;
  2678. if (!ASN1PERDecU32Val(dec, 2, &l))
  2679. return 0;
  2680. l += 1;
  2681. ASN1PERDecAlignment(dec);
  2682. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bitmapHandle))
  2683. return 0;
  2684. if (!ASN1Dec_BitmapCheckpointPDU_passedCheckpoints(dec, &(val)->passedCheckpoints))
  2685. return 0;
  2686. if (!ASN1PERDecU16Val(dec, 7, &(val)->percentComplete))
  2687. return 0;
  2688. (val)->percentComplete += 1;
  2689. if ((val)->o[0] & 0x80) {
  2690. if (!ASN1Dec_BitmapCheckpointPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  2691. return 0;
  2692. }
  2693. if (y) {
  2694. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2695. return 0;
  2696. }
  2697. return 1;
  2698. }
  2699. static void ASN1CALL ASN1Free_BitmapCheckpointPDU(BitmapCheckpointPDU *val)
  2700. {
  2701. if (val) {
  2702. ASN1Free_BitmapCheckpointPDU_passedCheckpoints(&(val)->passedCheckpoints);
  2703. if ((val)->o[0] & 0x80) {
  2704. ASN1Free_BitmapCheckpointPDU_nonStandardParameters(&(val)->nonStandardParameters);
  2705. }
  2706. }
  2707. }
  2708. static int ASN1CALL ASN1Enc_BitmapCreateContinuePDU(ASN1encoding_t enc, BitmapCreateContinuePDU *val)
  2709. {
  2710. ASN1uint32_t l;
  2711. if (!ASN1PEREncExtensionBitClear(enc))
  2712. return 0;
  2713. if (!ASN1PEREncBits(enc, 1, (val)->o))
  2714. return 0;
  2715. l = ASN1uint32_uoctets((val)->bitmapHandle);
  2716. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2717. return 0;
  2718. ASN1PEREncAlignment(enc);
  2719. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bitmapHandle))
  2720. return 0;
  2721. if (!ASN1Enc_BitmapData(enc, &(val)->bitmapData))
  2722. return 0;
  2723. if (!ASN1PEREncBoolean(enc, (val)->moreToFollow))
  2724. return 0;
  2725. if ((val)->o[0] & 0x80) {
  2726. if (!ASN1Enc_BitmapCreateContinuePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  2727. return 0;
  2728. }
  2729. return 1;
  2730. }
  2731. static int ASN1CALL ASN1Dec_BitmapCreateContinuePDU(ASN1decoding_t dec, BitmapCreateContinuePDU *val)
  2732. {
  2733. ASN1uint32_t y;
  2734. ASN1uint32_t l;
  2735. if (!ASN1PERDecExtensionBit(dec, &y))
  2736. return 0;
  2737. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  2738. return 0;
  2739. if (!ASN1PERDecU32Val(dec, 2, &l))
  2740. return 0;
  2741. l += 1;
  2742. ASN1PERDecAlignment(dec);
  2743. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bitmapHandle))
  2744. return 0;
  2745. if (!ASN1Dec_BitmapData(dec, &(val)->bitmapData))
  2746. return 0;
  2747. if (!ASN1PERDecBoolean(dec, &(val)->moreToFollow))
  2748. return 0;
  2749. if ((val)->o[0] & 0x80) {
  2750. if (!ASN1Dec_BitmapCreateContinuePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  2751. return 0;
  2752. }
  2753. if (y) {
  2754. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2755. return 0;
  2756. }
  2757. return 1;
  2758. }
  2759. static void ASN1CALL ASN1Free_BitmapCreateContinuePDU(BitmapCreateContinuePDU *val)
  2760. {
  2761. if (val) {
  2762. ASN1Free_BitmapData(&(val)->bitmapData);
  2763. if ((val)->o[0] & 0x80) {
  2764. ASN1Free_BitmapCreateContinuePDU_nonStandardParameters(&(val)->nonStandardParameters);
  2765. }
  2766. }
  2767. }
  2768. static int ASN1CALL ASN1Enc_BitmapDeletePDU(ASN1encoding_t enc, BitmapDeletePDU *val)
  2769. {
  2770. ASN1uint32_t l;
  2771. if (!ASN1PEREncExtensionBitClear(enc))
  2772. return 0;
  2773. if (!ASN1PEREncBits(enc, 1, (val)->o))
  2774. return 0;
  2775. l = ASN1uint32_uoctets((val)->bitmapHandle);
  2776. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2777. return 0;
  2778. ASN1PEREncAlignment(enc);
  2779. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bitmapHandle))
  2780. return 0;
  2781. if ((val)->o[0] & 0x80) {
  2782. if (!ASN1Enc_BitmapDeletePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  2783. return 0;
  2784. }
  2785. return 1;
  2786. }
  2787. static int ASN1CALL ASN1Dec_BitmapDeletePDU(ASN1decoding_t dec, BitmapDeletePDU *val)
  2788. {
  2789. ASN1uint32_t y;
  2790. ASN1uint32_t l;
  2791. if (!ASN1PERDecExtensionBit(dec, &y))
  2792. return 0;
  2793. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  2794. return 0;
  2795. if (!ASN1PERDecU32Val(dec, 2, &l))
  2796. return 0;
  2797. l += 1;
  2798. ASN1PERDecAlignment(dec);
  2799. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bitmapHandle))
  2800. return 0;
  2801. if ((val)->o[0] & 0x80) {
  2802. if (!ASN1Dec_BitmapDeletePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  2803. return 0;
  2804. }
  2805. if (y) {
  2806. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2807. return 0;
  2808. }
  2809. return 1;
  2810. }
  2811. static void ASN1CALL ASN1Free_BitmapDeletePDU(BitmapDeletePDU *val)
  2812. {
  2813. if (val) {
  2814. if ((val)->o[0] & 0x80) {
  2815. ASN1Free_BitmapDeletePDU_nonStandardParameters(&(val)->nonStandardParameters);
  2816. }
  2817. }
  2818. }
  2819. static int ASN1CALL ASN1Enc_BitmapEditPDU(ASN1encoding_t enc, BitmapEditPDU *val)
  2820. {
  2821. ASN1uint32_t l;
  2822. if (!ASN1PEREncExtensionBitClear(enc))
  2823. return 0;
  2824. if (!ASN1PEREncBits(enc, 5, (val)->o))
  2825. return 0;
  2826. l = ASN1uint32_uoctets((val)->bitmapHandle);
  2827. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  2828. return 0;
  2829. ASN1PEREncAlignment(enc);
  2830. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bitmapHandle))
  2831. return 0;
  2832. if ((val)->o[0] & 0x80) {
  2833. if (!ASN1Enc_BitmapEditPDU_attributeEdits(enc, &(val)->attributeEdits))
  2834. return 0;
  2835. }
  2836. if ((val)->o[0] & 0x40) {
  2837. if (!ASN1Enc_WorkspacePoint(enc, &(val)->anchorPointEdit))
  2838. return 0;
  2839. }
  2840. if ((val)->o[0] & 0x20) {
  2841. if (!ASN1Enc_BitmapRegion(enc, &(val)->bitmapRegionOfInterestEdit))
  2842. return 0;
  2843. }
  2844. if ((val)->o[0] & 0x10) {
  2845. if (!ASN1Enc_PointDiff16(enc, &(val)->scalingEdit))
  2846. return 0;
  2847. }
  2848. if ((val)->o[0] & 0x8) {
  2849. if (!ASN1Enc_BitmapEditPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  2850. return 0;
  2851. }
  2852. return 1;
  2853. }
  2854. static int ASN1CALL ASN1Dec_BitmapEditPDU(ASN1decoding_t dec, BitmapEditPDU *val)
  2855. {
  2856. ASN1uint32_t y;
  2857. ASN1uint32_t l;
  2858. if (!ASN1PERDecExtensionBit(dec, &y))
  2859. return 0;
  2860. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  2861. return 0;
  2862. if (!ASN1PERDecU32Val(dec, 2, &l))
  2863. return 0;
  2864. l += 1;
  2865. ASN1PERDecAlignment(dec);
  2866. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bitmapHandle))
  2867. return 0;
  2868. if ((val)->o[0] & 0x80) {
  2869. if (!ASN1Dec_BitmapEditPDU_attributeEdits(dec, &(val)->attributeEdits))
  2870. return 0;
  2871. }
  2872. if ((val)->o[0] & 0x40) {
  2873. if (!ASN1Dec_WorkspacePoint(dec, &(val)->anchorPointEdit))
  2874. return 0;
  2875. }
  2876. if ((val)->o[0] & 0x20) {
  2877. if (!ASN1Dec_BitmapRegion(dec, &(val)->bitmapRegionOfInterestEdit))
  2878. return 0;
  2879. }
  2880. if ((val)->o[0] & 0x10) {
  2881. if (!ASN1Dec_PointDiff16(dec, &(val)->scalingEdit))
  2882. return 0;
  2883. }
  2884. if ((val)->o[0] & 0x8) {
  2885. if (!ASN1Dec_BitmapEditPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  2886. return 0;
  2887. }
  2888. if (y) {
  2889. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2890. return 0;
  2891. }
  2892. return 1;
  2893. }
  2894. static void ASN1CALL ASN1Free_BitmapEditPDU(BitmapEditPDU *val)
  2895. {
  2896. if (val) {
  2897. if ((val)->o[0] & 0x80) {
  2898. ASN1Free_BitmapEditPDU_attributeEdits(&(val)->attributeEdits);
  2899. }
  2900. if ((val)->o[0] & 0x8) {
  2901. ASN1Free_BitmapEditPDU_nonStandardParameters(&(val)->nonStandardParameters);
  2902. }
  2903. }
  2904. }
  2905. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU(ASN1encoding_t enc, ConductorPrivilegeGrantPDU *val)
  2906. {
  2907. if (!ASN1PEREncExtensionBitClear(enc))
  2908. return 0;
  2909. if (!ASN1PEREncBits(enc, 1, (val)->o))
  2910. return 0;
  2911. if (!ASN1PEREncUnsignedShort(enc, (val)->destinationUserID - 1001))
  2912. return 0;
  2913. if (!ASN1Enc_ConductorPrivilegeGrantPDU_privilegeList(enc, &(val)->privilegeList))
  2914. return 0;
  2915. if ((val)->o[0] & 0x80) {
  2916. if (!ASN1Enc_ConductorPrivilegeGrantPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  2917. return 0;
  2918. }
  2919. return 1;
  2920. }
  2921. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU(ASN1decoding_t dec, ConductorPrivilegeGrantPDU *val)
  2922. {
  2923. ASN1uint32_t y;
  2924. if (!ASN1PERDecExtensionBit(dec, &y))
  2925. return 0;
  2926. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  2927. return 0;
  2928. if (!ASN1PERDecUnsignedShort(dec, &(val)->destinationUserID))
  2929. return 0;
  2930. (val)->destinationUserID += 1001;
  2931. if (!ASN1Dec_ConductorPrivilegeGrantPDU_privilegeList(dec, &(val)->privilegeList))
  2932. return 0;
  2933. if ((val)->o[0] & 0x80) {
  2934. if (!ASN1Dec_ConductorPrivilegeGrantPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  2935. return 0;
  2936. }
  2937. if (y) {
  2938. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2939. return 0;
  2940. }
  2941. return 1;
  2942. }
  2943. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU(ConductorPrivilegeGrantPDU *val)
  2944. {
  2945. if (val) {
  2946. ASN1Free_ConductorPrivilegeGrantPDU_privilegeList(&(val)->privilegeList);
  2947. if ((val)->o[0] & 0x80) {
  2948. ASN1Free_ConductorPrivilegeGrantPDU_nonStandardParameters(&(val)->nonStandardParameters);
  2949. }
  2950. }
  2951. }
  2952. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU(ASN1encoding_t enc, ConductorPrivilegeRequestPDU *val)
  2953. {
  2954. if (!ASN1PEREncExtensionBitClear(enc))
  2955. return 0;
  2956. if (!ASN1PEREncBits(enc, 1, (val)->o))
  2957. return 0;
  2958. if (!ASN1Enc_ConductorPrivilegeRequestPDU_privilegeList(enc, &(val)->privilegeList))
  2959. return 0;
  2960. if ((val)->o[0] & 0x80) {
  2961. if (!ASN1Enc_ConductorPrivilegeRequestPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  2962. return 0;
  2963. }
  2964. return 1;
  2965. }
  2966. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU(ASN1decoding_t dec, ConductorPrivilegeRequestPDU *val)
  2967. {
  2968. ASN1uint32_t y;
  2969. if (!ASN1PERDecExtensionBit(dec, &y))
  2970. return 0;
  2971. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  2972. return 0;
  2973. if (!ASN1Dec_ConductorPrivilegeRequestPDU_privilegeList(dec, &(val)->privilegeList))
  2974. return 0;
  2975. if ((val)->o[0] & 0x80) {
  2976. if (!ASN1Dec_ConductorPrivilegeRequestPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  2977. return 0;
  2978. }
  2979. if (y) {
  2980. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2981. return 0;
  2982. }
  2983. return 1;
  2984. }
  2985. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU(ConductorPrivilegeRequestPDU *val)
  2986. {
  2987. if (val) {
  2988. ASN1Free_ConductorPrivilegeRequestPDU_privilegeList(&(val)->privilegeList);
  2989. if ((val)->o[0] & 0x80) {
  2990. ASN1Free_ConductorPrivilegeRequestPDU_nonStandardParameters(&(val)->nonStandardParameters);
  2991. }
  2992. }
  2993. }
  2994. static int ASN1CALL ASN1Enc_DrawingDeletePDU(ASN1encoding_t enc, DrawingDeletePDU *val)
  2995. {
  2996. ASN1uint32_t l;
  2997. if (!ASN1PEREncExtensionBitClear(enc))
  2998. return 0;
  2999. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3000. return 0;
  3001. l = ASN1uint32_uoctets((val)->drawingHandle);
  3002. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  3003. return 0;
  3004. ASN1PEREncAlignment(enc);
  3005. if (!ASN1PEREncBitVal(enc, l * 8, (val)->drawingHandle))
  3006. return 0;
  3007. if ((val)->o[0] & 0x80) {
  3008. if (!ASN1Enc_DrawingDeletePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3009. return 0;
  3010. }
  3011. return 1;
  3012. }
  3013. static int ASN1CALL ASN1Dec_DrawingDeletePDU(ASN1decoding_t dec, DrawingDeletePDU *val)
  3014. {
  3015. ASN1uint32_t y;
  3016. ASN1uint32_t l;
  3017. if (!ASN1PERDecExtensionBit(dec, &y))
  3018. return 0;
  3019. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3020. return 0;
  3021. if (!ASN1PERDecU32Val(dec, 2, &l))
  3022. return 0;
  3023. l += 1;
  3024. ASN1PERDecAlignment(dec);
  3025. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->drawingHandle))
  3026. return 0;
  3027. if ((val)->o[0] & 0x80) {
  3028. if (!ASN1Dec_DrawingDeletePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3029. return 0;
  3030. }
  3031. if (y) {
  3032. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3033. return 0;
  3034. }
  3035. return 1;
  3036. }
  3037. static void ASN1CALL ASN1Free_DrawingDeletePDU(DrawingDeletePDU *val)
  3038. {
  3039. if (val) {
  3040. if ((val)->o[0] & 0x80) {
  3041. ASN1Free_DrawingDeletePDU_nonStandardParameters(&(val)->nonStandardParameters);
  3042. }
  3043. }
  3044. }
  3045. static int ASN1CALL ASN1Enc_FontPDU(ASN1encoding_t enc, FontPDU *val)
  3046. {
  3047. if (!ASN1PEREncExtensionBitClear(enc))
  3048. return 0;
  3049. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3050. return 0;
  3051. if ((val)->o[0] & 0x80) {
  3052. if (!ASN1Enc_FontPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3053. return 0;
  3054. }
  3055. return 1;
  3056. }
  3057. static int ASN1CALL ASN1Dec_FontPDU(ASN1decoding_t dec, FontPDU *val)
  3058. {
  3059. ASN1uint32_t y;
  3060. if (!ASN1PERDecExtensionBit(dec, &y))
  3061. return 0;
  3062. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3063. return 0;
  3064. if ((val)->o[0] & 0x80) {
  3065. if (!ASN1Dec_FontPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3066. return 0;
  3067. }
  3068. if (y) {
  3069. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3070. return 0;
  3071. }
  3072. return 1;
  3073. }
  3074. static void ASN1CALL ASN1Free_FontPDU(FontPDU *val)
  3075. {
  3076. if (val) {
  3077. if ((val)->o[0] & 0x80) {
  3078. ASN1Free_FontPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3079. }
  3080. }
  3081. }
  3082. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU(ASN1encoding_t enc, RemoteEventPermissionGrantPDU *val)
  3083. {
  3084. if (!ASN1PEREncExtensionBitClear(enc))
  3085. return 0;
  3086. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3087. return 0;
  3088. if (!ASN1Enc_RemoteEventDestinationAddress(enc, &(val)->destinationAddress))
  3089. return 0;
  3090. if (!ASN1PEREncUnsignedShort(enc, (val)->destinationUserID - 1001))
  3091. return 0;
  3092. if (!ASN1Enc_RemoteEventPermissionGrantPDU_remoteEventPermissionList(enc, &(val)->remoteEventPermissionList))
  3093. return 0;
  3094. if ((val)->o[0] & 0x80) {
  3095. if (!ASN1Enc_RemoteEventPermissionGrantPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3096. return 0;
  3097. }
  3098. return 1;
  3099. }
  3100. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU(ASN1decoding_t dec, RemoteEventPermissionGrantPDU *val)
  3101. {
  3102. ASN1uint32_t y;
  3103. if (!ASN1PERDecExtensionBit(dec, &y))
  3104. return 0;
  3105. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3106. return 0;
  3107. if (!ASN1Dec_RemoteEventDestinationAddress(dec, &(val)->destinationAddress))
  3108. return 0;
  3109. if (!ASN1PERDecUnsignedShort(dec, &(val)->destinationUserID))
  3110. return 0;
  3111. (val)->destinationUserID += 1001;
  3112. if (!ASN1Dec_RemoteEventPermissionGrantPDU_remoteEventPermissionList(dec, &(val)->remoteEventPermissionList))
  3113. return 0;
  3114. if ((val)->o[0] & 0x80) {
  3115. if (!ASN1Dec_RemoteEventPermissionGrantPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3116. return 0;
  3117. }
  3118. if (y) {
  3119. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3120. return 0;
  3121. }
  3122. return 1;
  3123. }
  3124. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU(RemoteEventPermissionGrantPDU *val)
  3125. {
  3126. if (val) {
  3127. ASN1Free_RemoteEventDestinationAddress(&(val)->destinationAddress);
  3128. ASN1Free_RemoteEventPermissionGrantPDU_remoteEventPermissionList(&(val)->remoteEventPermissionList);
  3129. if ((val)->o[0] & 0x80) {
  3130. ASN1Free_RemoteEventPermissionGrantPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3131. }
  3132. }
  3133. }
  3134. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU(ASN1encoding_t enc, RemoteEventPermissionRequestPDU *val)
  3135. {
  3136. if (!ASN1PEREncExtensionBitClear(enc))
  3137. return 0;
  3138. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3139. return 0;
  3140. if (!ASN1Enc_RemoteEventDestinationAddress(enc, &(val)->destinationAddress))
  3141. return 0;
  3142. if (!ASN1Enc_RemoteEventPermissionRequestPDU_remoteEventPermissionList(enc, &(val)->remoteEventPermissionList))
  3143. return 0;
  3144. if ((val)->o[0] & 0x80) {
  3145. if (!ASN1Enc_RemoteEventPermissionRequestPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3146. return 0;
  3147. }
  3148. return 1;
  3149. }
  3150. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU(ASN1decoding_t dec, RemoteEventPermissionRequestPDU *val)
  3151. {
  3152. ASN1uint32_t y;
  3153. if (!ASN1PERDecExtensionBit(dec, &y))
  3154. return 0;
  3155. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3156. return 0;
  3157. if (!ASN1Dec_RemoteEventDestinationAddress(dec, &(val)->destinationAddress))
  3158. return 0;
  3159. if (!ASN1Dec_RemoteEventPermissionRequestPDU_remoteEventPermissionList(dec, &(val)->remoteEventPermissionList))
  3160. return 0;
  3161. if ((val)->o[0] & 0x80) {
  3162. if (!ASN1Dec_RemoteEventPermissionRequestPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3163. return 0;
  3164. }
  3165. if (y) {
  3166. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3167. return 0;
  3168. }
  3169. return 1;
  3170. }
  3171. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU(RemoteEventPermissionRequestPDU *val)
  3172. {
  3173. if (val) {
  3174. ASN1Free_RemoteEventDestinationAddress(&(val)->destinationAddress);
  3175. ASN1Free_RemoteEventPermissionRequestPDU_remoteEventPermissionList(&(val)->remoteEventPermissionList);
  3176. if ((val)->o[0] & 0x80) {
  3177. ASN1Free_RemoteEventPermissionRequestPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3178. }
  3179. }
  3180. }
  3181. static int ASN1CALL ASN1Enc_RemotePrintPDU(ASN1encoding_t enc, RemotePrintPDU *val)
  3182. {
  3183. if (!ASN1PEREncExtensionBitClear(enc))
  3184. return 0;
  3185. if (!ASN1PEREncBits(enc, 4, (val)->o))
  3186. return 0;
  3187. if (!ASN1Enc_RemoteEventDestinationAddress(enc, &(val)->destinationAddress))
  3188. return 0;
  3189. if ((val)->o[0] & 0x80) {
  3190. ASN1PEREncAlignment(enc);
  3191. if (!ASN1PEREncBitVal(enc, 16, (val)->numberOfCopies - 1))
  3192. return 0;
  3193. }
  3194. if ((val)->o[0] & 0x40) {
  3195. if (!ASN1PEREncBoolean(enc, (val)->portrait))
  3196. return 0;
  3197. }
  3198. if ((val)->o[0] & 0x20) {
  3199. if (!ASN1Enc_WorkspaceRegion(enc, &(val)->regionOfInterest))
  3200. return 0;
  3201. }
  3202. if ((val)->o[0] & 0x10) {
  3203. if (!ASN1Enc_RemotePrintPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3204. return 0;
  3205. }
  3206. return 1;
  3207. }
  3208. static int ASN1CALL ASN1Dec_RemotePrintPDU(ASN1decoding_t dec, RemotePrintPDU *val)
  3209. {
  3210. ASN1uint32_t y;
  3211. if (!ASN1PERDecExtensionBit(dec, &y))
  3212. return 0;
  3213. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  3214. return 0;
  3215. if (!ASN1Dec_RemoteEventDestinationAddress(dec, &(val)->destinationAddress))
  3216. return 0;
  3217. if ((val)->o[0] & 0x80) {
  3218. ASN1PERDecAlignment(dec);
  3219. if (!ASN1PERDecU32Val(dec, 16, &(val)->numberOfCopies))
  3220. return 0;
  3221. (val)->numberOfCopies += 1;
  3222. }
  3223. if ((val)->o[0] & 0x40) {
  3224. if (!ASN1PERDecBoolean(dec, &(val)->portrait))
  3225. return 0;
  3226. }
  3227. if ((val)->o[0] & 0x20) {
  3228. if (!ASN1Dec_WorkspaceRegion(dec, &(val)->regionOfInterest))
  3229. return 0;
  3230. }
  3231. if ((val)->o[0] & 0x10) {
  3232. if (!ASN1Dec_RemotePrintPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3233. return 0;
  3234. }
  3235. if (y) {
  3236. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3237. return 0;
  3238. }
  3239. return 1;
  3240. }
  3241. static void ASN1CALL ASN1Free_RemotePrintPDU(RemotePrintPDU *val)
  3242. {
  3243. if (val) {
  3244. ASN1Free_RemoteEventDestinationAddress(&(val)->destinationAddress);
  3245. if ((val)->o[0] & 0x10) {
  3246. ASN1Free_RemotePrintPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3247. }
  3248. }
  3249. }
  3250. static int ASN1CALL ASN1Enc_SINonStandardPDU(ASN1encoding_t enc, SINonStandardPDU *val)
  3251. {
  3252. if (!ASN1PEREncExtensionBitClear(enc))
  3253. return 0;
  3254. if (!ASN1Enc_NonStandardParameter(enc, &(val)->nonStandardTransaction))
  3255. return 0;
  3256. return 1;
  3257. }
  3258. static int ASN1CALL ASN1Dec_SINonStandardPDU(ASN1decoding_t dec, SINonStandardPDU *val)
  3259. {
  3260. ASN1uint32_t y;
  3261. if (!ASN1PERDecExtensionBit(dec, &y))
  3262. return 0;
  3263. if (!ASN1Dec_NonStandardParameter(dec, &(val)->nonStandardTransaction))
  3264. return 0;
  3265. if (y) {
  3266. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3267. return 0;
  3268. }
  3269. return 1;
  3270. }
  3271. static void ASN1CALL ASN1Free_SINonStandardPDU(SINonStandardPDU *val)
  3272. {
  3273. if (val) {
  3274. ASN1Free_NonStandardParameter(&(val)->nonStandardTransaction);
  3275. }
  3276. }
  3277. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU(ASN1encoding_t enc, WorkspaceCreatePDU *val)
  3278. {
  3279. if (!ASN1PEREncExtensionBitClear(enc))
  3280. return 0;
  3281. if (!ASN1PEREncBits(enc, 4, (val)->o))
  3282. return 0;
  3283. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->workspaceIdentifier))
  3284. return 0;
  3285. if (!ASN1PEREncUnsignedShort(enc, (val)->appRosterInstance))
  3286. return 0;
  3287. if (!ASN1PEREncBoolean(enc, (val)->synchronized))
  3288. return 0;
  3289. if (!ASN1PEREncBoolean(enc, (val)->acceptKeyboardEvents))
  3290. return 0;
  3291. if (!ASN1PEREncBoolean(enc, (val)->acceptPointingDeviceEvents))
  3292. return 0;
  3293. if ((val)->o[0] & 0x80) {
  3294. if (!ASN1Enc_WorkspaceCreatePDU_protectedPlaneAccessList(enc, &(val)->protectedPlaneAccessList))
  3295. return 0;
  3296. }
  3297. if (!ASN1Enc_WorkspaceSize(enc, &(val)->workspaceSize))
  3298. return 0;
  3299. if ((val)->o[0] & 0x40) {
  3300. if (!ASN1Enc_WorkspaceCreatePDU_workspaceAttributes(enc, &(val)->workspaceAttributes))
  3301. return 0;
  3302. }
  3303. if (!ASN1Enc_WorkspaceCreatePDU_planeParameters(enc, &(val)->planeParameters))
  3304. return 0;
  3305. if ((val)->o[0] & 0x20) {
  3306. if (!ASN1Enc_WorkspaceCreatePDU_viewParameters(enc, &(val)->viewParameters))
  3307. return 0;
  3308. }
  3309. if ((val)->o[0] & 0x10) {
  3310. if (!ASN1Enc_WorkspaceCreatePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3311. return 0;
  3312. }
  3313. return 1;
  3314. }
  3315. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU(ASN1decoding_t dec, WorkspaceCreatePDU *val)
  3316. {
  3317. ASN1uint32_t y;
  3318. if (!ASN1PERDecExtensionBit(dec, &y))
  3319. return 0;
  3320. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  3321. return 0;
  3322. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->workspaceIdentifier))
  3323. return 0;
  3324. if (!ASN1PERDecUnsignedShort(dec, &(val)->appRosterInstance))
  3325. return 0;
  3326. if (!ASN1PERDecBoolean(dec, &(val)->synchronized))
  3327. return 0;
  3328. if (!ASN1PERDecBoolean(dec, &(val)->acceptKeyboardEvents))
  3329. return 0;
  3330. if (!ASN1PERDecBoolean(dec, &(val)->acceptPointingDeviceEvents))
  3331. return 0;
  3332. if ((val)->o[0] & 0x80) {
  3333. if (!ASN1Dec_WorkspaceCreatePDU_protectedPlaneAccessList(dec, &(val)->protectedPlaneAccessList))
  3334. return 0;
  3335. }
  3336. if (!ASN1Dec_WorkspaceSize(dec, &(val)->workspaceSize))
  3337. return 0;
  3338. if ((val)->o[0] & 0x40) {
  3339. if (!ASN1Dec_WorkspaceCreatePDU_workspaceAttributes(dec, &(val)->workspaceAttributes))
  3340. return 0;
  3341. }
  3342. if (!ASN1Dec_WorkspaceCreatePDU_planeParameters(dec, &(val)->planeParameters))
  3343. return 0;
  3344. if ((val)->o[0] & 0x20) {
  3345. if (!ASN1Dec_WorkspaceCreatePDU_viewParameters(dec, &(val)->viewParameters))
  3346. return 0;
  3347. }
  3348. if ((val)->o[0] & 0x10) {
  3349. if (!ASN1Dec_WorkspaceCreatePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3350. return 0;
  3351. }
  3352. if (y) {
  3353. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3354. return 0;
  3355. }
  3356. return 1;
  3357. }
  3358. static void ASN1CALL ASN1Free_WorkspaceCreatePDU(WorkspaceCreatePDU *val)
  3359. {
  3360. if (val) {
  3361. ASN1Free_WorkspaceIdentifier(&(val)->workspaceIdentifier);
  3362. if ((val)->o[0] & 0x80) {
  3363. ASN1Free_WorkspaceCreatePDU_protectedPlaneAccessList(&(val)->protectedPlaneAccessList);
  3364. }
  3365. if ((val)->o[0] & 0x40) {
  3366. ASN1Free_WorkspaceCreatePDU_workspaceAttributes(&(val)->workspaceAttributes);
  3367. }
  3368. ASN1Free_WorkspaceCreatePDU_planeParameters(&(val)->planeParameters);
  3369. if ((val)->o[0] & 0x20) {
  3370. ASN1Free_WorkspaceCreatePDU_viewParameters(&(val)->viewParameters);
  3371. }
  3372. if ((val)->o[0] & 0x10) {
  3373. ASN1Free_WorkspaceCreatePDU_nonStandardParameters(&(val)->nonStandardParameters);
  3374. }
  3375. }
  3376. }
  3377. static int ASN1CALL ASN1Enc_WorkspaceCreateAcknowledgePDU(ASN1encoding_t enc, WorkspaceCreateAcknowledgePDU *val)
  3378. {
  3379. if (!ASN1PEREncExtensionBitClear(enc))
  3380. return 0;
  3381. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3382. return 0;
  3383. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->workspaceIdentifier))
  3384. return 0;
  3385. if ((val)->o[0] & 0x80) {
  3386. if (!ASN1Enc_WorkspaceCreateAcknowledgePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3387. return 0;
  3388. }
  3389. return 1;
  3390. }
  3391. static int ASN1CALL ASN1Dec_WorkspaceCreateAcknowledgePDU(ASN1decoding_t dec, WorkspaceCreateAcknowledgePDU *val)
  3392. {
  3393. ASN1uint32_t y;
  3394. if (!ASN1PERDecExtensionBit(dec, &y))
  3395. return 0;
  3396. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3397. return 0;
  3398. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->workspaceIdentifier))
  3399. return 0;
  3400. if ((val)->o[0] & 0x80) {
  3401. if (!ASN1Dec_WorkspaceCreateAcknowledgePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3402. return 0;
  3403. }
  3404. if (y) {
  3405. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3406. return 0;
  3407. }
  3408. return 1;
  3409. }
  3410. static void ASN1CALL ASN1Free_WorkspaceCreateAcknowledgePDU(WorkspaceCreateAcknowledgePDU *val)
  3411. {
  3412. if (val) {
  3413. ASN1Free_WorkspaceIdentifier(&(val)->workspaceIdentifier);
  3414. if ((val)->o[0] & 0x80) {
  3415. ASN1Free_WorkspaceCreateAcknowledgePDU_nonStandardParameters(&(val)->nonStandardParameters);
  3416. }
  3417. }
  3418. }
  3419. static int ASN1CALL ASN1Enc_WorkspaceDeletePDU(ASN1encoding_t enc, WorkspaceDeletePDU *val)
  3420. {
  3421. if (!ASN1PEREncExtensionBitClear(enc))
  3422. return 0;
  3423. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3424. return 0;
  3425. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->workspaceIdentifier))
  3426. return 0;
  3427. if (!ASN1Enc_WorkspaceDeleteReason(enc, &(val)->reason))
  3428. return 0;
  3429. if ((val)->o[0] & 0x80) {
  3430. if (!ASN1Enc_WorkspaceDeletePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3431. return 0;
  3432. }
  3433. return 1;
  3434. }
  3435. static int ASN1CALL ASN1Dec_WorkspaceDeletePDU(ASN1decoding_t dec, WorkspaceDeletePDU *val)
  3436. {
  3437. ASN1uint32_t y;
  3438. if (!ASN1PERDecExtensionBit(dec, &y))
  3439. return 0;
  3440. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3441. return 0;
  3442. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->workspaceIdentifier))
  3443. return 0;
  3444. if (!ASN1Dec_WorkspaceDeleteReason(dec, &(val)->reason))
  3445. return 0;
  3446. if ((val)->o[0] & 0x80) {
  3447. if (!ASN1Dec_WorkspaceDeletePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3448. return 0;
  3449. }
  3450. if (y) {
  3451. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3452. return 0;
  3453. }
  3454. return 1;
  3455. }
  3456. static void ASN1CALL ASN1Free_WorkspaceDeletePDU(WorkspaceDeletePDU *val)
  3457. {
  3458. if (val) {
  3459. ASN1Free_WorkspaceIdentifier(&(val)->workspaceIdentifier);
  3460. ASN1Free_WorkspaceDeleteReason(&(val)->reason);
  3461. if ((val)->o[0] & 0x80) {
  3462. ASN1Free_WorkspaceDeletePDU_nonStandardParameters(&(val)->nonStandardParameters);
  3463. }
  3464. }
  3465. }
  3466. static int ASN1CALL ASN1Enc_WorkspaceEditPDU(ASN1encoding_t enc, WorkspaceEditPDU *val)
  3467. {
  3468. if (!ASN1PEREncExtensionBitClear(enc))
  3469. return 0;
  3470. if (!ASN1PEREncBits(enc, 4, (val)->o))
  3471. return 0;
  3472. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->workspaceIdentifier))
  3473. return 0;
  3474. if ((val)->o[0] & 0x80) {
  3475. if (!ASN1Enc_WorkspaceEditPDU_attributeEdits(enc, &(val)->attributeEdits))
  3476. return 0;
  3477. }
  3478. if ((val)->o[0] & 0x40) {
  3479. if (!ASN1Enc_WorkspaceEditPDU_planeEdits(enc, &(val)->planeEdits))
  3480. return 0;
  3481. }
  3482. if ((val)->o[0] & 0x20) {
  3483. if (!ASN1Enc_WorkspaceEditPDU_viewEdits(enc, &(val)->viewEdits))
  3484. return 0;
  3485. }
  3486. if ((val)->o[0] & 0x10) {
  3487. if (!ASN1Enc_WorkspaceEditPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3488. return 0;
  3489. }
  3490. return 1;
  3491. }
  3492. static int ASN1CALL ASN1Dec_WorkspaceEditPDU(ASN1decoding_t dec, WorkspaceEditPDU *val)
  3493. {
  3494. ASN1uint32_t y;
  3495. if (!ASN1PERDecExtensionBit(dec, &y))
  3496. return 0;
  3497. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  3498. return 0;
  3499. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->workspaceIdentifier))
  3500. return 0;
  3501. if ((val)->o[0] & 0x80) {
  3502. if (!ASN1Dec_WorkspaceEditPDU_attributeEdits(dec, &(val)->attributeEdits))
  3503. return 0;
  3504. }
  3505. if ((val)->o[0] & 0x40) {
  3506. if (!ASN1Dec_WorkspaceEditPDU_planeEdits(dec, &(val)->planeEdits))
  3507. return 0;
  3508. }
  3509. if ((val)->o[0] & 0x20) {
  3510. if (!ASN1Dec_WorkspaceEditPDU_viewEdits(dec, &(val)->viewEdits))
  3511. return 0;
  3512. }
  3513. if ((val)->o[0] & 0x10) {
  3514. if (!ASN1Dec_WorkspaceEditPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3515. return 0;
  3516. }
  3517. if (y) {
  3518. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3519. return 0;
  3520. }
  3521. return 1;
  3522. }
  3523. static void ASN1CALL ASN1Free_WorkspaceEditPDU(WorkspaceEditPDU *val)
  3524. {
  3525. if (val) {
  3526. ASN1Free_WorkspaceIdentifier(&(val)->workspaceIdentifier);
  3527. if ((val)->o[0] & 0x80) {
  3528. ASN1Free_WorkspaceEditPDU_attributeEdits(&(val)->attributeEdits);
  3529. }
  3530. if ((val)->o[0] & 0x40) {
  3531. ASN1Free_WorkspaceEditPDU_planeEdits(&(val)->planeEdits);
  3532. }
  3533. if ((val)->o[0] & 0x20) {
  3534. ASN1Free_WorkspaceEditPDU_viewEdits(&(val)->viewEdits);
  3535. }
  3536. if ((val)->o[0] & 0x10) {
  3537. ASN1Free_WorkspaceEditPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3538. }
  3539. }
  3540. }
  3541. static int ASN1CALL ASN1Enc_WorkspaceReadyPDU(ASN1encoding_t enc, WorkspaceReadyPDU *val)
  3542. {
  3543. if (!ASN1PEREncExtensionBitClear(enc))
  3544. return 0;
  3545. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3546. return 0;
  3547. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->workspaceIdentifier))
  3548. return 0;
  3549. if ((val)->o[0] & 0x80) {
  3550. if (!ASN1Enc_WorkspaceReadyPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3551. return 0;
  3552. }
  3553. return 1;
  3554. }
  3555. static int ASN1CALL ASN1Dec_WorkspaceReadyPDU(ASN1decoding_t dec, WorkspaceReadyPDU *val)
  3556. {
  3557. ASN1uint32_t y;
  3558. if (!ASN1PERDecExtensionBit(dec, &y))
  3559. return 0;
  3560. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3561. return 0;
  3562. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->workspaceIdentifier))
  3563. return 0;
  3564. if ((val)->o[0] & 0x80) {
  3565. if (!ASN1Dec_WorkspaceReadyPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3566. return 0;
  3567. }
  3568. if (y) {
  3569. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3570. return 0;
  3571. }
  3572. return 1;
  3573. }
  3574. static void ASN1CALL ASN1Free_WorkspaceReadyPDU(WorkspaceReadyPDU *val)
  3575. {
  3576. if (val) {
  3577. ASN1Free_WorkspaceIdentifier(&(val)->workspaceIdentifier);
  3578. if ((val)->o[0] & 0x80) {
  3579. ASN1Free_WorkspaceReadyPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3580. }
  3581. }
  3582. }
  3583. static int ASN1CALL ASN1Enc_WorkspaceRefreshStatusPDU(ASN1encoding_t enc, WorkspaceRefreshStatusPDU *val)
  3584. {
  3585. if (!ASN1PEREncExtensionBitClear(enc))
  3586. return 0;
  3587. if (!ASN1PEREncBits(enc, 1, (val)->o))
  3588. return 0;
  3589. if (!ASN1PEREncBoolean(enc, (val)->refreshStatus))
  3590. return 0;
  3591. if ((val)->o[0] & 0x80) {
  3592. if (!ASN1Enc_WorkspaceRefreshStatusPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  3593. return 0;
  3594. }
  3595. return 1;
  3596. }
  3597. static int ASN1CALL ASN1Dec_WorkspaceRefreshStatusPDU(ASN1decoding_t dec, WorkspaceRefreshStatusPDU *val)
  3598. {
  3599. ASN1uint32_t y;
  3600. if (!ASN1PERDecExtensionBit(dec, &y))
  3601. return 0;
  3602. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  3603. return 0;
  3604. if (!ASN1PERDecBoolean(dec, &(val)->refreshStatus))
  3605. return 0;
  3606. if ((val)->o[0] & 0x80) {
  3607. if (!ASN1Dec_WorkspaceRefreshStatusPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  3608. return 0;
  3609. }
  3610. if (y) {
  3611. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3612. return 0;
  3613. }
  3614. return 1;
  3615. }
  3616. static void ASN1CALL ASN1Free_WorkspaceRefreshStatusPDU(WorkspaceRefreshStatusPDU *val)
  3617. {
  3618. if (val) {
  3619. if ((val)->o[0] & 0x80) {
  3620. ASN1Free_WorkspaceRefreshStatusPDU_nonStandardParameters(&(val)->nonStandardParameters);
  3621. }
  3622. }
  3623. }
  3624. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action(ASN1encoding_t enc, WorkspaceEditPDU_viewEdits_Set_action *val)
  3625. {
  3626. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  3627. return 0;
  3628. switch ((val)->choice) {
  3629. case 1:
  3630. if (!ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_createNewView(enc, &(val)->u.createNewView))
  3631. return 0;
  3632. break;
  3633. case 2:
  3634. if (!ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_editView(enc, &(val)->u.editView))
  3635. return 0;
  3636. break;
  3637. case 3:
  3638. break;
  3639. case 4:
  3640. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardAction))
  3641. return 0;
  3642. break;
  3643. default:
  3644. /* impossible */
  3645. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  3646. return 0;
  3647. }
  3648. return 1;
  3649. }
  3650. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action(ASN1decoding_t dec, WorkspaceEditPDU_viewEdits_Set_action *val)
  3651. {
  3652. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  3653. return 0;
  3654. switch ((val)->choice) {
  3655. case 1:
  3656. if (!ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_createNewView(dec, &(val)->u.createNewView))
  3657. return 0;
  3658. break;
  3659. case 2:
  3660. if (!ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_editView(dec, &(val)->u.editView))
  3661. return 0;
  3662. break;
  3663. case 3:
  3664. break;
  3665. case 4:
  3666. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardAction))
  3667. return 0;
  3668. break;
  3669. case 0:
  3670. /* extension case */
  3671. if (!ASN1PERDecSkipFragmented(dec, 8))
  3672. return 0;
  3673. break;
  3674. default:
  3675. /* impossible */
  3676. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  3677. return 0;
  3678. }
  3679. return 1;
  3680. }
  3681. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action(WorkspaceEditPDU_viewEdits_Set_action *val)
  3682. {
  3683. if (val) {
  3684. switch ((val)->choice) {
  3685. case 1:
  3686. ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_createNewView(&(val)->u.createNewView);
  3687. break;
  3688. case 2:
  3689. ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_editView(&(val)->u.editView);
  3690. break;
  3691. case 4:
  3692. ASN1Free_NonStandardParameter(&(val)->u.nonStandardAction);
  3693. break;
  3694. }
  3695. }
  3696. }
  3697. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_usage(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters_Seq_usage *val)
  3698. {
  3699. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_usage_ElmFn);
  3700. }
  3701. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_usage_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters_Seq_usage val)
  3702. {
  3703. if (!ASN1Enc_PlaneUsage(enc, &val->value))
  3704. return 0;
  3705. return 1;
  3706. }
  3707. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_usage(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters_Seq_usage *val)
  3708. {
  3709. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_usage_ElmFn, sizeof(**val));
  3710. }
  3711. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_usage_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters_Seq_usage val)
  3712. {
  3713. if (!ASN1Dec_PlaneUsage(dec, &val->value))
  3714. return 0;
  3715. return 1;
  3716. }
  3717. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_usage(PWorkspaceCreatePDU_planeParameters_Seq_usage *val)
  3718. {
  3719. if (val) {
  3720. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_usage_ElmFn);
  3721. }
  3722. }
  3723. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_usage_ElmFn(PWorkspaceCreatePDU_planeParameters_Seq_usage val)
  3724. {
  3725. if (val) {
  3726. ASN1Free_PlaneUsage(&val->value);
  3727. }
  3728. }
  3729. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB_palette(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteRGB_palette *val)
  3730. {
  3731. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB_palette_ElmFn, 2, 256, 8);
  3732. }
  3733. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB_palette_ElmFn(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteRGB_palette val)
  3734. {
  3735. if (!ASN1Enc_ColorRGB(enc, &val->value))
  3736. return 0;
  3737. return 1;
  3738. }
  3739. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB_palette(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteRGB_palette *val)
  3740. {
  3741. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB_palette_ElmFn, sizeof(**val), 2, 256, 8);
  3742. }
  3743. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB_palette_ElmFn(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteRGB_palette val)
  3744. {
  3745. if (!ASN1Dec_ColorRGB(dec, &val->value))
  3746. return 0;
  3747. return 1;
  3748. }
  3749. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteRGB_palette(PColorPalette_colorLookUpTable_paletteRGB_palette *val)
  3750. {
  3751. if (val) {
  3752. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ColorPalette_colorLookUpTable_paletteRGB_palette_ElmFn);
  3753. }
  3754. }
  3755. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteRGB_palette_ElmFn(PColorPalette_colorLookUpTable_paletteRGB_palette val)
  3756. {
  3757. if (val) {
  3758. }
  3759. }
  3760. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab_palette(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteCIELab_palette *val)
  3761. {
  3762. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab_palette_ElmFn, 2, 256, 8);
  3763. }
  3764. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab_palette_ElmFn(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteCIELab_palette val)
  3765. {
  3766. if (!ASN1Enc_ColorCIELab(enc, &val->value))
  3767. return 0;
  3768. return 1;
  3769. }
  3770. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab_palette(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteCIELab_palette *val)
  3771. {
  3772. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab_palette_ElmFn, sizeof(**val), 2, 256, 8);
  3773. }
  3774. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab_palette_ElmFn(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteCIELab_palette val)
  3775. {
  3776. if (!ASN1Dec_ColorCIELab(dec, &val->value))
  3777. return 0;
  3778. return 1;
  3779. }
  3780. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab_palette(PColorPalette_colorLookUpTable_paletteCIELab_palette *val)
  3781. {
  3782. if (val) {
  3783. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab_palette_ElmFn);
  3784. }
  3785. }
  3786. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab_palette_ElmFn(PColorPalette_colorLookUpTable_paletteCIELab_palette val)
  3787. {
  3788. if (val) {
  3789. }
  3790. }
  3791. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr_palette(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteYCbCr_palette *val)
  3792. {
  3793. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr_palette_ElmFn, 2, 256, 8);
  3794. }
  3795. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr_palette_ElmFn(ASN1encoding_t enc, PColorPalette_colorLookUpTable_paletteYCbCr_palette val)
  3796. {
  3797. if (!ASN1Enc_ColorYCbCr(enc, &val->value))
  3798. return 0;
  3799. return 1;
  3800. }
  3801. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr_palette(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteYCbCr_palette *val)
  3802. {
  3803. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr_palette_ElmFn, sizeof(**val), 2, 256, 8);
  3804. }
  3805. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr_palette_ElmFn(ASN1decoding_t dec, PColorPalette_colorLookUpTable_paletteYCbCr_palette val)
  3806. {
  3807. if (!ASN1Dec_ColorYCbCr(dec, &val->value))
  3808. return 0;
  3809. return 1;
  3810. }
  3811. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr_palette(PColorPalette_colorLookUpTable_paletteYCbCr_palette *val)
  3812. {
  3813. if (val) {
  3814. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr_palette_ElmFn);
  3815. }
  3816. }
  3817. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr_palette_ElmFn(PColorPalette_colorLookUpTable_paletteYCbCr_palette val)
  3818. {
  3819. if (val) {
  3820. }
  3821. }
  3822. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB_generalRGBParameters_primaries(ASN1encoding_t enc, ColorAccuracyEnhancementRGB_generalRGBParameters_primaries *val)
  3823. {
  3824. if (!ASN1Enc_ColorCIExyChromaticity(enc, &(val)->red))
  3825. return 0;
  3826. if (!ASN1Enc_ColorCIExyChromaticity(enc, &(val)->green))
  3827. return 0;
  3828. if (!ASN1Enc_ColorCIExyChromaticity(enc, &(val)->blue))
  3829. return 0;
  3830. return 1;
  3831. }
  3832. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB_generalRGBParameters_primaries(ASN1decoding_t dec, ColorAccuracyEnhancementRGB_generalRGBParameters_primaries *val)
  3833. {
  3834. if (!ASN1Dec_ColorCIExyChromaticity(dec, &(val)->red))
  3835. return 0;
  3836. if (!ASN1Dec_ColorCIExyChromaticity(dec, &(val)->green))
  3837. return 0;
  3838. if (!ASN1Dec_ColorCIExyChromaticity(dec, &(val)->blue))
  3839. return 0;
  3840. return 1;
  3841. }
  3842. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries *val)
  3843. {
  3844. if (!ASN1Enc_ColorCIExyChromaticity(enc, &(val)->red))
  3845. return 0;
  3846. if (!ASN1Enc_ColorCIExyChromaticity(enc, &(val)->green))
  3847. return 0;
  3848. if (!ASN1Enc_ColorCIExyChromaticity(enc, &(val)->blue))
  3849. return 0;
  3850. return 1;
  3851. }
  3852. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries *val)
  3853. {
  3854. if (!ASN1Dec_ColorCIExyChromaticity(dec, &(val)->red))
  3855. return 0;
  3856. if (!ASN1Dec_ColorCIExyChromaticity(dec, &(val)->green))
  3857. return 0;
  3858. if (!ASN1Dec_ColorCIExyChromaticity(dec, &(val)->blue))
  3859. return 0;
  3860. return 1;
  3861. }
  3862. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set(ASN1encoding_t enc, WorkspaceEditPDU_viewEdits_Set *val)
  3863. {
  3864. ASN1uint32_t l;
  3865. if (!ASN1PEREncExtensionBitClear(enc))
  3866. return 0;
  3867. l = ASN1uint32_uoctets((val)->viewHandle);
  3868. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  3869. return 0;
  3870. ASN1PEREncAlignment(enc);
  3871. if (!ASN1PEREncBitVal(enc, l * 8, (val)->viewHandle))
  3872. return 0;
  3873. if (!ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action(enc, &(val)->action))
  3874. return 0;
  3875. return 1;
  3876. }
  3877. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set(ASN1decoding_t dec, WorkspaceEditPDU_viewEdits_Set *val)
  3878. {
  3879. ASN1uint32_t y;
  3880. ASN1uint32_t l;
  3881. if (!ASN1PERDecExtensionBit(dec, &y))
  3882. return 0;
  3883. if (!ASN1PERDecU32Val(dec, 2, &l))
  3884. return 0;
  3885. l += 1;
  3886. ASN1PERDecAlignment(dec);
  3887. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->viewHandle))
  3888. return 0;
  3889. if (!ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action(dec, &(val)->action))
  3890. return 0;
  3891. if (y) {
  3892. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  3893. return 0;
  3894. }
  3895. return 1;
  3896. }
  3897. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set(WorkspaceEditPDU_viewEdits_Set *val)
  3898. {
  3899. if (val) {
  3900. ASN1Free_WorkspaceEditPDU_viewEdits_Set_action(&(val)->action);
  3901. }
  3902. }
  3903. static int ASN1CALL ASN1Enc_WorkspaceRefreshStatusPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceRefreshStatusPDU_nonStandardParameters *val)
  3904. {
  3905. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceRefreshStatusPDU_nonStandardParameters_ElmFn);
  3906. }
  3907. static int ASN1CALL ASN1Enc_WorkspaceRefreshStatusPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspaceRefreshStatusPDU_nonStandardParameters val)
  3908. {
  3909. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  3910. return 0;
  3911. return 1;
  3912. }
  3913. static int ASN1CALL ASN1Dec_WorkspaceRefreshStatusPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceRefreshStatusPDU_nonStandardParameters *val)
  3914. {
  3915. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceRefreshStatusPDU_nonStandardParameters_ElmFn, sizeof(**val));
  3916. }
  3917. static int ASN1CALL ASN1Dec_WorkspaceRefreshStatusPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspaceRefreshStatusPDU_nonStandardParameters val)
  3918. {
  3919. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  3920. return 0;
  3921. return 1;
  3922. }
  3923. static void ASN1CALL ASN1Free_WorkspaceRefreshStatusPDU_nonStandardParameters(PWorkspaceRefreshStatusPDU_nonStandardParameters *val)
  3924. {
  3925. if (val) {
  3926. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceRefreshStatusPDU_nonStandardParameters_ElmFn);
  3927. }
  3928. }
  3929. static void ASN1CALL ASN1Free_WorkspaceRefreshStatusPDU_nonStandardParameters_ElmFn(PWorkspaceRefreshStatusPDU_nonStandardParameters val)
  3930. {
  3931. if (val) {
  3932. ASN1Free_NonStandardParameter(&val->value);
  3933. }
  3934. }
  3935. static int ASN1CALL ASN1Enc_WorkspaceReadyPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceReadyPDU_nonStandardParameters *val)
  3936. {
  3937. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceReadyPDU_nonStandardParameters_ElmFn);
  3938. }
  3939. static int ASN1CALL ASN1Enc_WorkspaceReadyPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspaceReadyPDU_nonStandardParameters val)
  3940. {
  3941. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  3942. return 0;
  3943. return 1;
  3944. }
  3945. static int ASN1CALL ASN1Dec_WorkspaceReadyPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceReadyPDU_nonStandardParameters *val)
  3946. {
  3947. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceReadyPDU_nonStandardParameters_ElmFn, sizeof(**val));
  3948. }
  3949. static int ASN1CALL ASN1Dec_WorkspaceReadyPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspaceReadyPDU_nonStandardParameters val)
  3950. {
  3951. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  3952. return 0;
  3953. return 1;
  3954. }
  3955. static void ASN1CALL ASN1Free_WorkspaceReadyPDU_nonStandardParameters(PWorkspaceReadyPDU_nonStandardParameters *val)
  3956. {
  3957. if (val) {
  3958. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceReadyPDU_nonStandardParameters_ElmFn);
  3959. }
  3960. }
  3961. static void ASN1CALL ASN1Free_WorkspaceReadyPDU_nonStandardParameters_ElmFn(PWorkspaceReadyPDU_nonStandardParameters val)
  3962. {
  3963. if (val) {
  3964. ASN1Free_NonStandardParameter(&val->value);
  3965. }
  3966. }
  3967. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspacePlaneCopyPDU_nonStandardParameters *val)
  3968. {
  3969. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspacePlaneCopyPDU_nonStandardParameters_ElmFn);
  3970. }
  3971. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspacePlaneCopyPDU_nonStandardParameters val)
  3972. {
  3973. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  3974. return 0;
  3975. return 1;
  3976. }
  3977. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspacePlaneCopyPDU_nonStandardParameters *val)
  3978. {
  3979. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspacePlaneCopyPDU_nonStandardParameters_ElmFn, sizeof(**val));
  3980. }
  3981. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspacePlaneCopyPDU_nonStandardParameters val)
  3982. {
  3983. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  3984. return 0;
  3985. return 1;
  3986. }
  3987. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU_nonStandardParameters(PWorkspacePlaneCopyPDU_nonStandardParameters *val)
  3988. {
  3989. if (val) {
  3990. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspacePlaneCopyPDU_nonStandardParameters_ElmFn);
  3991. }
  3992. }
  3993. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU_nonStandardParameters_ElmFn(PWorkspacePlaneCopyPDU_nonStandardParameters val)
  3994. {
  3995. if (val) {
  3996. ASN1Free_NonStandardParameter(&val->value);
  3997. }
  3998. }
  3999. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceEditPDU_nonStandardParameters *val)
  4000. {
  4001. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_nonStandardParameters_ElmFn);
  4002. }
  4003. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_nonStandardParameters val)
  4004. {
  4005. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4006. return 0;
  4007. return 1;
  4008. }
  4009. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceEditPDU_nonStandardParameters *val)
  4010. {
  4011. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4012. }
  4013. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_nonStandardParameters val)
  4014. {
  4015. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4016. return 0;
  4017. return 1;
  4018. }
  4019. static void ASN1CALL ASN1Free_WorkspaceEditPDU_nonStandardParameters(PWorkspaceEditPDU_nonStandardParameters *val)
  4020. {
  4021. if (val) {
  4022. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_nonStandardParameters_ElmFn);
  4023. }
  4024. }
  4025. static void ASN1CALL ASN1Free_WorkspaceEditPDU_nonStandardParameters_ElmFn(PWorkspaceEditPDU_nonStandardParameters val)
  4026. {
  4027. if (val) {
  4028. ASN1Free_NonStandardParameter(&val->value);
  4029. }
  4030. }
  4031. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits *val)
  4032. {
  4033. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_viewEdits_ElmFn, 1, 256, 8);
  4034. }
  4035. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits val)
  4036. {
  4037. if (!ASN1Enc_WorkspaceEditPDU_viewEdits_Set(enc, &val->value))
  4038. return 0;
  4039. return 1;
  4040. }
  4041. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits *val)
  4042. {
  4043. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_viewEdits_ElmFn, sizeof(**val), 1, 256, 8);
  4044. }
  4045. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits val)
  4046. {
  4047. if (!ASN1Dec_WorkspaceEditPDU_viewEdits_Set(dec, &val->value))
  4048. return 0;
  4049. return 1;
  4050. }
  4051. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits(PWorkspaceEditPDU_viewEdits *val)
  4052. {
  4053. if (val) {
  4054. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_viewEdits_ElmFn);
  4055. }
  4056. }
  4057. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_ElmFn(PWorkspaceEditPDU_viewEdits val)
  4058. {
  4059. if (val) {
  4060. ASN1Free_WorkspaceEditPDU_viewEdits_Set(&val->value);
  4061. }
  4062. }
  4063. static int ASN1CALL ASN1Enc_WorkspaceDeletePDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceDeletePDU_nonStandardParameters *val)
  4064. {
  4065. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceDeletePDU_nonStandardParameters_ElmFn);
  4066. }
  4067. static int ASN1CALL ASN1Enc_WorkspaceDeletePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspaceDeletePDU_nonStandardParameters val)
  4068. {
  4069. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4070. return 0;
  4071. return 1;
  4072. }
  4073. static int ASN1CALL ASN1Dec_WorkspaceDeletePDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceDeletePDU_nonStandardParameters *val)
  4074. {
  4075. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceDeletePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4076. }
  4077. static int ASN1CALL ASN1Dec_WorkspaceDeletePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspaceDeletePDU_nonStandardParameters val)
  4078. {
  4079. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4080. return 0;
  4081. return 1;
  4082. }
  4083. static void ASN1CALL ASN1Free_WorkspaceDeletePDU_nonStandardParameters(PWorkspaceDeletePDU_nonStandardParameters *val)
  4084. {
  4085. if (val) {
  4086. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceDeletePDU_nonStandardParameters_ElmFn);
  4087. }
  4088. }
  4089. static void ASN1CALL ASN1Free_WorkspaceDeletePDU_nonStandardParameters_ElmFn(PWorkspaceDeletePDU_nonStandardParameters val)
  4090. {
  4091. if (val) {
  4092. ASN1Free_NonStandardParameter(&val->value);
  4093. }
  4094. }
  4095. static int ASN1CALL ASN1Enc_WorkspaceCreateAcknowledgePDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceCreateAcknowledgePDU_nonStandardParameters *val)
  4096. {
  4097. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreateAcknowledgePDU_nonStandardParameters_ElmFn);
  4098. }
  4099. static int ASN1CALL ASN1Enc_WorkspaceCreateAcknowledgePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspaceCreateAcknowledgePDU_nonStandardParameters val)
  4100. {
  4101. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4102. return 0;
  4103. return 1;
  4104. }
  4105. static int ASN1CALL ASN1Dec_WorkspaceCreateAcknowledgePDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceCreateAcknowledgePDU_nonStandardParameters *val)
  4106. {
  4107. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreateAcknowledgePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4108. }
  4109. static int ASN1CALL ASN1Dec_WorkspaceCreateAcknowledgePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspaceCreateAcknowledgePDU_nonStandardParameters val)
  4110. {
  4111. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4112. return 0;
  4113. return 1;
  4114. }
  4115. static void ASN1CALL ASN1Free_WorkspaceCreateAcknowledgePDU_nonStandardParameters(PWorkspaceCreateAcknowledgePDU_nonStandardParameters *val)
  4116. {
  4117. if (val) {
  4118. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreateAcknowledgePDU_nonStandardParameters_ElmFn);
  4119. }
  4120. }
  4121. static void ASN1CALL ASN1Free_WorkspaceCreateAcknowledgePDU_nonStandardParameters_ElmFn(PWorkspaceCreateAcknowledgePDU_nonStandardParameters val)
  4122. {
  4123. if (val) {
  4124. ASN1Free_NonStandardParameter(&val->value);
  4125. }
  4126. }
  4127. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_nonStandardParameters(ASN1encoding_t enc, PWorkspaceCreatePDU_nonStandardParameters *val)
  4128. {
  4129. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_nonStandardParameters_ElmFn);
  4130. }
  4131. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_nonStandardParameters val)
  4132. {
  4133. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4134. return 0;
  4135. return 1;
  4136. }
  4137. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_nonStandardParameters(ASN1decoding_t dec, PWorkspaceCreatePDU_nonStandardParameters *val)
  4138. {
  4139. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4140. }
  4141. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_nonStandardParameters val)
  4142. {
  4143. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4144. return 0;
  4145. return 1;
  4146. }
  4147. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_nonStandardParameters(PWorkspaceCreatePDU_nonStandardParameters *val)
  4148. {
  4149. if (val) {
  4150. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_nonStandardParameters_ElmFn);
  4151. }
  4152. }
  4153. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_nonStandardParameters_ElmFn(PWorkspaceCreatePDU_nonStandardParameters val)
  4154. {
  4155. if (val) {
  4156. ASN1Free_NonStandardParameter(&val->value);
  4157. }
  4158. }
  4159. static int ASN1CALL ASN1Enc_TextEditPDU_nonStandardParameters(ASN1encoding_t enc, PTextEditPDU_nonStandardParameters *val)
  4160. {
  4161. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_TextEditPDU_nonStandardParameters_ElmFn);
  4162. }
  4163. static int ASN1CALL ASN1Enc_TextEditPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PTextEditPDU_nonStandardParameters val)
  4164. {
  4165. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4166. return 0;
  4167. return 1;
  4168. }
  4169. static int ASN1CALL ASN1Dec_TextEditPDU_nonStandardParameters(ASN1decoding_t dec, PTextEditPDU_nonStandardParameters *val)
  4170. {
  4171. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_TextEditPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4172. }
  4173. static int ASN1CALL ASN1Dec_TextEditPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PTextEditPDU_nonStandardParameters val)
  4174. {
  4175. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4176. return 0;
  4177. return 1;
  4178. }
  4179. static void ASN1CALL ASN1Free_TextEditPDU_nonStandardParameters(PTextEditPDU_nonStandardParameters *val)
  4180. {
  4181. if (val) {
  4182. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_TextEditPDU_nonStandardParameters_ElmFn);
  4183. }
  4184. }
  4185. static void ASN1CALL ASN1Free_TextEditPDU_nonStandardParameters_ElmFn(PTextEditPDU_nonStandardParameters val)
  4186. {
  4187. if (val) {
  4188. ASN1Free_NonStandardParameter(&val->value);
  4189. }
  4190. }
  4191. static int ASN1CALL ASN1Enc_TextDeletePDU_nonStandardParameters(ASN1encoding_t enc, PTextDeletePDU_nonStandardParameters *val)
  4192. {
  4193. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_TextDeletePDU_nonStandardParameters_ElmFn);
  4194. }
  4195. static int ASN1CALL ASN1Enc_TextDeletePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PTextDeletePDU_nonStandardParameters val)
  4196. {
  4197. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4198. return 0;
  4199. return 1;
  4200. }
  4201. static int ASN1CALL ASN1Dec_TextDeletePDU_nonStandardParameters(ASN1decoding_t dec, PTextDeletePDU_nonStandardParameters *val)
  4202. {
  4203. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_TextDeletePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4204. }
  4205. static int ASN1CALL ASN1Dec_TextDeletePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PTextDeletePDU_nonStandardParameters val)
  4206. {
  4207. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4208. return 0;
  4209. return 1;
  4210. }
  4211. static void ASN1CALL ASN1Free_TextDeletePDU_nonStandardParameters(PTextDeletePDU_nonStandardParameters *val)
  4212. {
  4213. if (val) {
  4214. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_TextDeletePDU_nonStandardParameters_ElmFn);
  4215. }
  4216. }
  4217. static void ASN1CALL ASN1Free_TextDeletePDU_nonStandardParameters_ElmFn(PTextDeletePDU_nonStandardParameters val)
  4218. {
  4219. if (val) {
  4220. ASN1Free_NonStandardParameter(&val->value);
  4221. }
  4222. }
  4223. static int ASN1CALL ASN1Enc_TextCreatePDU_nonStandardParameters(ASN1encoding_t enc, PTextCreatePDU_nonStandardParameters *val)
  4224. {
  4225. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_TextCreatePDU_nonStandardParameters_ElmFn);
  4226. }
  4227. static int ASN1CALL ASN1Enc_TextCreatePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PTextCreatePDU_nonStandardParameters val)
  4228. {
  4229. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4230. return 0;
  4231. return 1;
  4232. }
  4233. static int ASN1CALL ASN1Dec_TextCreatePDU_nonStandardParameters(ASN1decoding_t dec, PTextCreatePDU_nonStandardParameters *val)
  4234. {
  4235. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_TextCreatePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4236. }
  4237. static int ASN1CALL ASN1Dec_TextCreatePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PTextCreatePDU_nonStandardParameters val)
  4238. {
  4239. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4240. return 0;
  4241. return 1;
  4242. }
  4243. static void ASN1CALL ASN1Free_TextCreatePDU_nonStandardParameters(PTextCreatePDU_nonStandardParameters *val)
  4244. {
  4245. if (val) {
  4246. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_TextCreatePDU_nonStandardParameters_ElmFn);
  4247. }
  4248. }
  4249. static void ASN1CALL ASN1Free_TextCreatePDU_nonStandardParameters_ElmFn(PTextCreatePDU_nonStandardParameters val)
  4250. {
  4251. if (val) {
  4252. ASN1Free_NonStandardParameter(&val->value);
  4253. }
  4254. }
  4255. static int ASN1CALL ASN1Enc_RemotePrintPDU_nonStandardParameters(ASN1encoding_t enc, PRemotePrintPDU_nonStandardParameters *val)
  4256. {
  4257. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemotePrintPDU_nonStandardParameters_ElmFn);
  4258. }
  4259. static int ASN1CALL ASN1Enc_RemotePrintPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PRemotePrintPDU_nonStandardParameters val)
  4260. {
  4261. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4262. return 0;
  4263. return 1;
  4264. }
  4265. static int ASN1CALL ASN1Dec_RemotePrintPDU_nonStandardParameters(ASN1decoding_t dec, PRemotePrintPDU_nonStandardParameters *val)
  4266. {
  4267. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemotePrintPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4268. }
  4269. static int ASN1CALL ASN1Dec_RemotePrintPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PRemotePrintPDU_nonStandardParameters val)
  4270. {
  4271. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4272. return 0;
  4273. return 1;
  4274. }
  4275. static void ASN1CALL ASN1Free_RemotePrintPDU_nonStandardParameters(PRemotePrintPDU_nonStandardParameters *val)
  4276. {
  4277. if (val) {
  4278. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemotePrintPDU_nonStandardParameters_ElmFn);
  4279. }
  4280. }
  4281. static void ASN1CALL ASN1Free_RemotePrintPDU_nonStandardParameters_ElmFn(PRemotePrintPDU_nonStandardParameters val)
  4282. {
  4283. if (val) {
  4284. ASN1Free_NonStandardParameter(&val->value);
  4285. }
  4286. }
  4287. static int ASN1CALL ASN1Enc_RemotePointingDeviceEventPDU_nonStandardParameters(ASN1encoding_t enc, PRemotePointingDeviceEventPDU_nonStandardParameters *val)
  4288. {
  4289. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemotePointingDeviceEventPDU_nonStandardParameters_ElmFn);
  4290. }
  4291. static int ASN1CALL ASN1Enc_RemotePointingDeviceEventPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PRemotePointingDeviceEventPDU_nonStandardParameters val)
  4292. {
  4293. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4294. return 0;
  4295. return 1;
  4296. }
  4297. static int ASN1CALL ASN1Dec_RemotePointingDeviceEventPDU_nonStandardParameters(ASN1decoding_t dec, PRemotePointingDeviceEventPDU_nonStandardParameters *val)
  4298. {
  4299. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemotePointingDeviceEventPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4300. }
  4301. static int ASN1CALL ASN1Dec_RemotePointingDeviceEventPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PRemotePointingDeviceEventPDU_nonStandardParameters val)
  4302. {
  4303. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4304. return 0;
  4305. return 1;
  4306. }
  4307. static void ASN1CALL ASN1Free_RemotePointingDeviceEventPDU_nonStandardParameters(PRemotePointingDeviceEventPDU_nonStandardParameters *val)
  4308. {
  4309. if (val) {
  4310. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemotePointingDeviceEventPDU_nonStandardParameters_ElmFn);
  4311. }
  4312. }
  4313. static void ASN1CALL ASN1Free_RemotePointingDeviceEventPDU_nonStandardParameters_ElmFn(PRemotePointingDeviceEventPDU_nonStandardParameters val)
  4314. {
  4315. if (val) {
  4316. ASN1Free_NonStandardParameter(&val->value);
  4317. }
  4318. }
  4319. static int ASN1CALL ASN1Enc_RemoteKeyboardEventPDU_nonStandardParameters(ASN1encoding_t enc, PRemoteKeyboardEventPDU_nonStandardParameters *val)
  4320. {
  4321. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemoteKeyboardEventPDU_nonStandardParameters_ElmFn);
  4322. }
  4323. static int ASN1CALL ASN1Enc_RemoteKeyboardEventPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PRemoteKeyboardEventPDU_nonStandardParameters val)
  4324. {
  4325. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4326. return 0;
  4327. return 1;
  4328. }
  4329. static int ASN1CALL ASN1Dec_RemoteKeyboardEventPDU_nonStandardParameters(ASN1decoding_t dec, PRemoteKeyboardEventPDU_nonStandardParameters *val)
  4330. {
  4331. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemoteKeyboardEventPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4332. }
  4333. static int ASN1CALL ASN1Dec_RemoteKeyboardEventPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PRemoteKeyboardEventPDU_nonStandardParameters val)
  4334. {
  4335. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4336. return 0;
  4337. return 1;
  4338. }
  4339. static void ASN1CALL ASN1Free_RemoteKeyboardEventPDU_nonStandardParameters(PRemoteKeyboardEventPDU_nonStandardParameters *val)
  4340. {
  4341. if (val) {
  4342. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemoteKeyboardEventPDU_nonStandardParameters_ElmFn);
  4343. }
  4344. }
  4345. static void ASN1CALL ASN1Free_RemoteKeyboardEventPDU_nonStandardParameters_ElmFn(PRemoteKeyboardEventPDU_nonStandardParameters val)
  4346. {
  4347. if (val) {
  4348. ASN1Free_NonStandardParameter(&val->value);
  4349. }
  4350. }
  4351. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU_nonStandardParameters(ASN1encoding_t enc, PRemoteEventPermissionRequestPDU_nonStandardParameters *val)
  4352. {
  4353. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemoteEventPermissionRequestPDU_nonStandardParameters_ElmFn);
  4354. }
  4355. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PRemoteEventPermissionRequestPDU_nonStandardParameters val)
  4356. {
  4357. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4358. return 0;
  4359. return 1;
  4360. }
  4361. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU_nonStandardParameters(ASN1decoding_t dec, PRemoteEventPermissionRequestPDU_nonStandardParameters *val)
  4362. {
  4363. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemoteEventPermissionRequestPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4364. }
  4365. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PRemoteEventPermissionRequestPDU_nonStandardParameters val)
  4366. {
  4367. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4368. return 0;
  4369. return 1;
  4370. }
  4371. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU_nonStandardParameters(PRemoteEventPermissionRequestPDU_nonStandardParameters *val)
  4372. {
  4373. if (val) {
  4374. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemoteEventPermissionRequestPDU_nonStandardParameters_ElmFn);
  4375. }
  4376. }
  4377. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU_nonStandardParameters_ElmFn(PRemoteEventPermissionRequestPDU_nonStandardParameters val)
  4378. {
  4379. if (val) {
  4380. ASN1Free_NonStandardParameter(&val->value);
  4381. }
  4382. }
  4383. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU_remoteEventPermissionList(ASN1encoding_t enc, PRemoteEventPermissionRequestPDU_remoteEventPermissionList *val)
  4384. {
  4385. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemoteEventPermissionRequestPDU_remoteEventPermissionList_ElmFn);
  4386. }
  4387. static int ASN1CALL ASN1Enc_RemoteEventPermissionRequestPDU_remoteEventPermissionList_ElmFn(ASN1encoding_t enc, PRemoteEventPermissionRequestPDU_remoteEventPermissionList val)
  4388. {
  4389. if (!ASN1Enc_RemoteEventPermission(enc, &val->value))
  4390. return 0;
  4391. return 1;
  4392. }
  4393. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU_remoteEventPermissionList(ASN1decoding_t dec, PRemoteEventPermissionRequestPDU_remoteEventPermissionList *val)
  4394. {
  4395. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemoteEventPermissionRequestPDU_remoteEventPermissionList_ElmFn, sizeof(**val));
  4396. }
  4397. static int ASN1CALL ASN1Dec_RemoteEventPermissionRequestPDU_remoteEventPermissionList_ElmFn(ASN1decoding_t dec, PRemoteEventPermissionRequestPDU_remoteEventPermissionList val)
  4398. {
  4399. if (!ASN1Dec_RemoteEventPermission(dec, &val->value))
  4400. return 0;
  4401. return 1;
  4402. }
  4403. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU_remoteEventPermissionList(PRemoteEventPermissionRequestPDU_remoteEventPermissionList *val)
  4404. {
  4405. if (val) {
  4406. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemoteEventPermissionRequestPDU_remoteEventPermissionList_ElmFn);
  4407. }
  4408. }
  4409. static void ASN1CALL ASN1Free_RemoteEventPermissionRequestPDU_remoteEventPermissionList_ElmFn(PRemoteEventPermissionRequestPDU_remoteEventPermissionList val)
  4410. {
  4411. if (val) {
  4412. ASN1Free_RemoteEventPermission(&val->value);
  4413. }
  4414. }
  4415. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU_nonStandardParameters(ASN1encoding_t enc, PRemoteEventPermissionGrantPDU_nonStandardParameters *val)
  4416. {
  4417. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemoteEventPermissionGrantPDU_nonStandardParameters_ElmFn);
  4418. }
  4419. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PRemoteEventPermissionGrantPDU_nonStandardParameters val)
  4420. {
  4421. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4422. return 0;
  4423. return 1;
  4424. }
  4425. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU_nonStandardParameters(ASN1decoding_t dec, PRemoteEventPermissionGrantPDU_nonStandardParameters *val)
  4426. {
  4427. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemoteEventPermissionGrantPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4428. }
  4429. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PRemoteEventPermissionGrantPDU_nonStandardParameters val)
  4430. {
  4431. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4432. return 0;
  4433. return 1;
  4434. }
  4435. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU_nonStandardParameters(PRemoteEventPermissionGrantPDU_nonStandardParameters *val)
  4436. {
  4437. if (val) {
  4438. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemoteEventPermissionGrantPDU_nonStandardParameters_ElmFn);
  4439. }
  4440. }
  4441. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU_nonStandardParameters_ElmFn(PRemoteEventPermissionGrantPDU_nonStandardParameters val)
  4442. {
  4443. if (val) {
  4444. ASN1Free_NonStandardParameter(&val->value);
  4445. }
  4446. }
  4447. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU_remoteEventPermissionList(ASN1encoding_t enc, PRemoteEventPermissionGrantPDU_remoteEventPermissionList *val)
  4448. {
  4449. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemoteEventPermissionGrantPDU_remoteEventPermissionList_ElmFn);
  4450. }
  4451. static int ASN1CALL ASN1Enc_RemoteEventPermissionGrantPDU_remoteEventPermissionList_ElmFn(ASN1encoding_t enc, PRemoteEventPermissionGrantPDU_remoteEventPermissionList val)
  4452. {
  4453. if (!ASN1Enc_RemoteEventPermission(enc, &val->value))
  4454. return 0;
  4455. return 1;
  4456. }
  4457. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU_remoteEventPermissionList(ASN1decoding_t dec, PRemoteEventPermissionGrantPDU_remoteEventPermissionList *val)
  4458. {
  4459. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemoteEventPermissionGrantPDU_remoteEventPermissionList_ElmFn, sizeof(**val));
  4460. }
  4461. static int ASN1CALL ASN1Dec_RemoteEventPermissionGrantPDU_remoteEventPermissionList_ElmFn(ASN1decoding_t dec, PRemoteEventPermissionGrantPDU_remoteEventPermissionList val)
  4462. {
  4463. if (!ASN1Dec_RemoteEventPermission(dec, &val->value))
  4464. return 0;
  4465. return 1;
  4466. }
  4467. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU_remoteEventPermissionList(PRemoteEventPermissionGrantPDU_remoteEventPermissionList *val)
  4468. {
  4469. if (val) {
  4470. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemoteEventPermissionGrantPDU_remoteEventPermissionList_ElmFn);
  4471. }
  4472. }
  4473. static void ASN1CALL ASN1Free_RemoteEventPermissionGrantPDU_remoteEventPermissionList_ElmFn(PRemoteEventPermissionGrantPDU_remoteEventPermissionList val)
  4474. {
  4475. if (val) {
  4476. ASN1Free_RemoteEventPermission(&val->value);
  4477. }
  4478. }
  4479. static int ASN1CALL ASN1Enc_FontPDU_nonStandardParameters(ASN1encoding_t enc, PFontPDU_nonStandardParameters *val)
  4480. {
  4481. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_FontPDU_nonStandardParameters_ElmFn);
  4482. }
  4483. static int ASN1CALL ASN1Enc_FontPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PFontPDU_nonStandardParameters val)
  4484. {
  4485. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4486. return 0;
  4487. return 1;
  4488. }
  4489. static int ASN1CALL ASN1Dec_FontPDU_nonStandardParameters(ASN1decoding_t dec, PFontPDU_nonStandardParameters *val)
  4490. {
  4491. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_FontPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4492. }
  4493. static int ASN1CALL ASN1Dec_FontPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PFontPDU_nonStandardParameters val)
  4494. {
  4495. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4496. return 0;
  4497. return 1;
  4498. }
  4499. static void ASN1CALL ASN1Free_FontPDU_nonStandardParameters(PFontPDU_nonStandardParameters *val)
  4500. {
  4501. if (val) {
  4502. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_FontPDU_nonStandardParameters_ElmFn);
  4503. }
  4504. }
  4505. static void ASN1CALL ASN1Free_FontPDU_nonStandardParameters_ElmFn(PFontPDU_nonStandardParameters val)
  4506. {
  4507. if (val) {
  4508. ASN1Free_NonStandardParameter(&val->value);
  4509. }
  4510. }
  4511. static int ASN1CALL ASN1Enc_DrawingEditPDU_nonStandardParameters(ASN1encoding_t enc, PDrawingEditPDU_nonStandardParameters *val)
  4512. {
  4513. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DrawingEditPDU_nonStandardParameters_ElmFn);
  4514. }
  4515. static int ASN1CALL ASN1Enc_DrawingEditPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PDrawingEditPDU_nonStandardParameters val)
  4516. {
  4517. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4518. return 0;
  4519. return 1;
  4520. }
  4521. static int ASN1CALL ASN1Dec_DrawingEditPDU_nonStandardParameters(ASN1decoding_t dec, PDrawingEditPDU_nonStandardParameters *val)
  4522. {
  4523. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DrawingEditPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4524. }
  4525. static int ASN1CALL ASN1Dec_DrawingEditPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PDrawingEditPDU_nonStandardParameters val)
  4526. {
  4527. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4528. return 0;
  4529. return 1;
  4530. }
  4531. static void ASN1CALL ASN1Free_DrawingEditPDU_nonStandardParameters(PDrawingEditPDU_nonStandardParameters *val)
  4532. {
  4533. if (val) {
  4534. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DrawingEditPDU_nonStandardParameters_ElmFn);
  4535. }
  4536. }
  4537. static void ASN1CALL ASN1Free_DrawingEditPDU_nonStandardParameters_ElmFn(PDrawingEditPDU_nonStandardParameters val)
  4538. {
  4539. if (val) {
  4540. ASN1Free_NonStandardParameter(&val->value);
  4541. }
  4542. }
  4543. static int ASN1CALL ASN1Enc_DrawingDeletePDU_nonStandardParameters(ASN1encoding_t enc, PDrawingDeletePDU_nonStandardParameters *val)
  4544. {
  4545. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DrawingDeletePDU_nonStandardParameters_ElmFn);
  4546. }
  4547. static int ASN1CALL ASN1Enc_DrawingDeletePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PDrawingDeletePDU_nonStandardParameters val)
  4548. {
  4549. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4550. return 0;
  4551. return 1;
  4552. }
  4553. static int ASN1CALL ASN1Dec_DrawingDeletePDU_nonStandardParameters(ASN1decoding_t dec, PDrawingDeletePDU_nonStandardParameters *val)
  4554. {
  4555. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DrawingDeletePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4556. }
  4557. static int ASN1CALL ASN1Dec_DrawingDeletePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PDrawingDeletePDU_nonStandardParameters val)
  4558. {
  4559. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4560. return 0;
  4561. return 1;
  4562. }
  4563. static void ASN1CALL ASN1Free_DrawingDeletePDU_nonStandardParameters(PDrawingDeletePDU_nonStandardParameters *val)
  4564. {
  4565. if (val) {
  4566. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DrawingDeletePDU_nonStandardParameters_ElmFn);
  4567. }
  4568. }
  4569. static void ASN1CALL ASN1Free_DrawingDeletePDU_nonStandardParameters_ElmFn(PDrawingDeletePDU_nonStandardParameters val)
  4570. {
  4571. if (val) {
  4572. ASN1Free_NonStandardParameter(&val->value);
  4573. }
  4574. }
  4575. static int ASN1CALL ASN1Enc_DrawingCreatePDU_nonStandardParameters(ASN1encoding_t enc, PDrawingCreatePDU_nonStandardParameters *val)
  4576. {
  4577. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DrawingCreatePDU_nonStandardParameters_ElmFn);
  4578. }
  4579. static int ASN1CALL ASN1Enc_DrawingCreatePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PDrawingCreatePDU_nonStandardParameters val)
  4580. {
  4581. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4582. return 0;
  4583. return 1;
  4584. }
  4585. static int ASN1CALL ASN1Dec_DrawingCreatePDU_nonStandardParameters(ASN1decoding_t dec, PDrawingCreatePDU_nonStandardParameters *val)
  4586. {
  4587. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DrawingCreatePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4588. }
  4589. static int ASN1CALL ASN1Dec_DrawingCreatePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PDrawingCreatePDU_nonStandardParameters val)
  4590. {
  4591. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4592. return 0;
  4593. return 1;
  4594. }
  4595. static void ASN1CALL ASN1Free_DrawingCreatePDU_nonStandardParameters(PDrawingCreatePDU_nonStandardParameters *val)
  4596. {
  4597. if (val) {
  4598. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DrawingCreatePDU_nonStandardParameters_ElmFn);
  4599. }
  4600. }
  4601. static void ASN1CALL ASN1Free_DrawingCreatePDU_nonStandardParameters_ElmFn(PDrawingCreatePDU_nonStandardParameters val)
  4602. {
  4603. if (val) {
  4604. ASN1Free_NonStandardParameter(&val->value);
  4605. }
  4606. }
  4607. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU_nonStandardParameters(ASN1encoding_t enc, PConductorPrivilegeRequestPDU_nonStandardParameters *val)
  4608. {
  4609. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ConductorPrivilegeRequestPDU_nonStandardParameters_ElmFn);
  4610. }
  4611. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PConductorPrivilegeRequestPDU_nonStandardParameters val)
  4612. {
  4613. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4614. return 0;
  4615. return 1;
  4616. }
  4617. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU_nonStandardParameters(ASN1decoding_t dec, PConductorPrivilegeRequestPDU_nonStandardParameters *val)
  4618. {
  4619. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ConductorPrivilegeRequestPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4620. }
  4621. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PConductorPrivilegeRequestPDU_nonStandardParameters val)
  4622. {
  4623. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4624. return 0;
  4625. return 1;
  4626. }
  4627. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU_nonStandardParameters(PConductorPrivilegeRequestPDU_nonStandardParameters *val)
  4628. {
  4629. if (val) {
  4630. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ConductorPrivilegeRequestPDU_nonStandardParameters_ElmFn);
  4631. }
  4632. }
  4633. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU_nonStandardParameters_ElmFn(PConductorPrivilegeRequestPDU_nonStandardParameters val)
  4634. {
  4635. if (val) {
  4636. ASN1Free_NonStandardParameter(&val->value);
  4637. }
  4638. }
  4639. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU_nonStandardParameters(ASN1encoding_t enc, PConductorPrivilegeGrantPDU_nonStandardParameters *val)
  4640. {
  4641. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ConductorPrivilegeGrantPDU_nonStandardParameters_ElmFn);
  4642. }
  4643. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PConductorPrivilegeGrantPDU_nonStandardParameters val)
  4644. {
  4645. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4646. return 0;
  4647. return 1;
  4648. }
  4649. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU_nonStandardParameters(ASN1decoding_t dec, PConductorPrivilegeGrantPDU_nonStandardParameters *val)
  4650. {
  4651. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ConductorPrivilegeGrantPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4652. }
  4653. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PConductorPrivilegeGrantPDU_nonStandardParameters val)
  4654. {
  4655. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4656. return 0;
  4657. return 1;
  4658. }
  4659. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU_nonStandardParameters(PConductorPrivilegeGrantPDU_nonStandardParameters *val)
  4660. {
  4661. if (val) {
  4662. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ConductorPrivilegeGrantPDU_nonStandardParameters_ElmFn);
  4663. }
  4664. }
  4665. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU_nonStandardParameters_ElmFn(PConductorPrivilegeGrantPDU_nonStandardParameters val)
  4666. {
  4667. if (val) {
  4668. ASN1Free_NonStandardParameter(&val->value);
  4669. }
  4670. }
  4671. static int ASN1CALL ASN1Enc_BitmapEditPDU_nonStandardParameters(ASN1encoding_t enc, PBitmapEditPDU_nonStandardParameters *val)
  4672. {
  4673. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapEditPDU_nonStandardParameters_ElmFn);
  4674. }
  4675. static int ASN1CALL ASN1Enc_BitmapEditPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PBitmapEditPDU_nonStandardParameters val)
  4676. {
  4677. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4678. return 0;
  4679. return 1;
  4680. }
  4681. static int ASN1CALL ASN1Dec_BitmapEditPDU_nonStandardParameters(ASN1decoding_t dec, PBitmapEditPDU_nonStandardParameters *val)
  4682. {
  4683. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapEditPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4684. }
  4685. static int ASN1CALL ASN1Dec_BitmapEditPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PBitmapEditPDU_nonStandardParameters val)
  4686. {
  4687. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4688. return 0;
  4689. return 1;
  4690. }
  4691. static void ASN1CALL ASN1Free_BitmapEditPDU_nonStandardParameters(PBitmapEditPDU_nonStandardParameters *val)
  4692. {
  4693. if (val) {
  4694. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapEditPDU_nonStandardParameters_ElmFn);
  4695. }
  4696. }
  4697. static void ASN1CALL ASN1Free_BitmapEditPDU_nonStandardParameters_ElmFn(PBitmapEditPDU_nonStandardParameters val)
  4698. {
  4699. if (val) {
  4700. ASN1Free_NonStandardParameter(&val->value);
  4701. }
  4702. }
  4703. static int ASN1CALL ASN1Enc_BitmapDeletePDU_nonStandardParameters(ASN1encoding_t enc, PBitmapDeletePDU_nonStandardParameters *val)
  4704. {
  4705. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapDeletePDU_nonStandardParameters_ElmFn);
  4706. }
  4707. static int ASN1CALL ASN1Enc_BitmapDeletePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PBitmapDeletePDU_nonStandardParameters val)
  4708. {
  4709. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4710. return 0;
  4711. return 1;
  4712. }
  4713. static int ASN1CALL ASN1Dec_BitmapDeletePDU_nonStandardParameters(ASN1decoding_t dec, PBitmapDeletePDU_nonStandardParameters *val)
  4714. {
  4715. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapDeletePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4716. }
  4717. static int ASN1CALL ASN1Dec_BitmapDeletePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PBitmapDeletePDU_nonStandardParameters val)
  4718. {
  4719. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4720. return 0;
  4721. return 1;
  4722. }
  4723. static void ASN1CALL ASN1Free_BitmapDeletePDU_nonStandardParameters(PBitmapDeletePDU_nonStandardParameters *val)
  4724. {
  4725. if (val) {
  4726. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapDeletePDU_nonStandardParameters_ElmFn);
  4727. }
  4728. }
  4729. static void ASN1CALL ASN1Free_BitmapDeletePDU_nonStandardParameters_ElmFn(PBitmapDeletePDU_nonStandardParameters val)
  4730. {
  4731. if (val) {
  4732. ASN1Free_NonStandardParameter(&val->value);
  4733. }
  4734. }
  4735. static int ASN1CALL ASN1Enc_BitmapCreateContinuePDU_nonStandardParameters(ASN1encoding_t enc, PBitmapCreateContinuePDU_nonStandardParameters *val)
  4736. {
  4737. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapCreateContinuePDU_nonStandardParameters_ElmFn);
  4738. }
  4739. static int ASN1CALL ASN1Enc_BitmapCreateContinuePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PBitmapCreateContinuePDU_nonStandardParameters val)
  4740. {
  4741. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4742. return 0;
  4743. return 1;
  4744. }
  4745. static int ASN1CALL ASN1Dec_BitmapCreateContinuePDU_nonStandardParameters(ASN1decoding_t dec, PBitmapCreateContinuePDU_nonStandardParameters *val)
  4746. {
  4747. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapCreateContinuePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4748. }
  4749. static int ASN1CALL ASN1Dec_BitmapCreateContinuePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PBitmapCreateContinuePDU_nonStandardParameters val)
  4750. {
  4751. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4752. return 0;
  4753. return 1;
  4754. }
  4755. static void ASN1CALL ASN1Free_BitmapCreateContinuePDU_nonStandardParameters(PBitmapCreateContinuePDU_nonStandardParameters *val)
  4756. {
  4757. if (val) {
  4758. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapCreateContinuePDU_nonStandardParameters_ElmFn);
  4759. }
  4760. }
  4761. static void ASN1CALL ASN1Free_BitmapCreateContinuePDU_nonStandardParameters_ElmFn(PBitmapCreateContinuePDU_nonStandardParameters val)
  4762. {
  4763. if (val) {
  4764. ASN1Free_NonStandardParameter(&val->value);
  4765. }
  4766. }
  4767. static int ASN1CALL ASN1Enc_BitmapCreatePDU_nonStandardParameters(ASN1encoding_t enc, PBitmapCreatePDU_nonStandardParameters *val)
  4768. {
  4769. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapCreatePDU_nonStandardParameters_ElmFn);
  4770. }
  4771. static int ASN1CALL ASN1Enc_BitmapCreatePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PBitmapCreatePDU_nonStandardParameters val)
  4772. {
  4773. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4774. return 0;
  4775. return 1;
  4776. }
  4777. static int ASN1CALL ASN1Dec_BitmapCreatePDU_nonStandardParameters(ASN1decoding_t dec, PBitmapCreatePDU_nonStandardParameters *val)
  4778. {
  4779. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapCreatePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4780. }
  4781. static int ASN1CALL ASN1Dec_BitmapCreatePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PBitmapCreatePDU_nonStandardParameters val)
  4782. {
  4783. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4784. return 0;
  4785. return 1;
  4786. }
  4787. static void ASN1CALL ASN1Free_BitmapCreatePDU_nonStandardParameters(PBitmapCreatePDU_nonStandardParameters *val)
  4788. {
  4789. if (val) {
  4790. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapCreatePDU_nonStandardParameters_ElmFn);
  4791. }
  4792. }
  4793. static void ASN1CALL ASN1Free_BitmapCreatePDU_nonStandardParameters_ElmFn(PBitmapCreatePDU_nonStandardParameters val)
  4794. {
  4795. if (val) {
  4796. ASN1Free_NonStandardParameter(&val->value);
  4797. }
  4798. }
  4799. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU_nonStandardParameters(ASN1encoding_t enc, PBitmapCheckpointPDU_nonStandardParameters *val)
  4800. {
  4801. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapCheckpointPDU_nonStandardParameters_ElmFn);
  4802. }
  4803. static int ASN1CALL ASN1Enc_BitmapCheckpointPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PBitmapCheckpointPDU_nonStandardParameters val)
  4804. {
  4805. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4806. return 0;
  4807. return 1;
  4808. }
  4809. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU_nonStandardParameters(ASN1decoding_t dec, PBitmapCheckpointPDU_nonStandardParameters *val)
  4810. {
  4811. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapCheckpointPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4812. }
  4813. static int ASN1CALL ASN1Dec_BitmapCheckpointPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PBitmapCheckpointPDU_nonStandardParameters val)
  4814. {
  4815. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4816. return 0;
  4817. return 1;
  4818. }
  4819. static void ASN1CALL ASN1Free_BitmapCheckpointPDU_nonStandardParameters(PBitmapCheckpointPDU_nonStandardParameters *val)
  4820. {
  4821. if (val) {
  4822. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapCheckpointPDU_nonStandardParameters_ElmFn);
  4823. }
  4824. }
  4825. static void ASN1CALL ASN1Free_BitmapCheckpointPDU_nonStandardParameters_ElmFn(PBitmapCheckpointPDU_nonStandardParameters val)
  4826. {
  4827. if (val) {
  4828. ASN1Free_NonStandardParameter(&val->value);
  4829. }
  4830. }
  4831. static int ASN1CALL ASN1Enc_BitmapAbortPDU_nonStandardParameters(ASN1encoding_t enc, PBitmapAbortPDU_nonStandardParameters *val)
  4832. {
  4833. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapAbortPDU_nonStandardParameters_ElmFn);
  4834. }
  4835. static int ASN1CALL ASN1Enc_BitmapAbortPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PBitmapAbortPDU_nonStandardParameters val)
  4836. {
  4837. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4838. return 0;
  4839. return 1;
  4840. }
  4841. static int ASN1CALL ASN1Dec_BitmapAbortPDU_nonStandardParameters(ASN1decoding_t dec, PBitmapAbortPDU_nonStandardParameters *val)
  4842. {
  4843. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapAbortPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4844. }
  4845. static int ASN1CALL ASN1Dec_BitmapAbortPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PBitmapAbortPDU_nonStandardParameters val)
  4846. {
  4847. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4848. return 0;
  4849. return 1;
  4850. }
  4851. static void ASN1CALL ASN1Free_BitmapAbortPDU_nonStandardParameters(PBitmapAbortPDU_nonStandardParameters *val)
  4852. {
  4853. if (val) {
  4854. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapAbortPDU_nonStandardParameters_ElmFn);
  4855. }
  4856. }
  4857. static void ASN1CALL ASN1Free_BitmapAbortPDU_nonStandardParameters_ElmFn(PBitmapAbortPDU_nonStandardParameters val)
  4858. {
  4859. if (val) {
  4860. ASN1Free_NonStandardParameter(&val->value);
  4861. }
  4862. }
  4863. static int ASN1CALL ASN1Enc_ArchiveOpenPDU_nonStandardParameters(ASN1encoding_t enc, PArchiveOpenPDU_nonStandardParameters *val)
  4864. {
  4865. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ArchiveOpenPDU_nonStandardParameters_ElmFn);
  4866. }
  4867. static int ASN1CALL ASN1Enc_ArchiveOpenPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PArchiveOpenPDU_nonStandardParameters val)
  4868. {
  4869. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4870. return 0;
  4871. return 1;
  4872. }
  4873. static int ASN1CALL ASN1Dec_ArchiveOpenPDU_nonStandardParameters(ASN1decoding_t dec, PArchiveOpenPDU_nonStandardParameters *val)
  4874. {
  4875. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ArchiveOpenPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4876. }
  4877. static int ASN1CALL ASN1Dec_ArchiveOpenPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PArchiveOpenPDU_nonStandardParameters val)
  4878. {
  4879. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4880. return 0;
  4881. return 1;
  4882. }
  4883. static void ASN1CALL ASN1Free_ArchiveOpenPDU_nonStandardParameters(PArchiveOpenPDU_nonStandardParameters *val)
  4884. {
  4885. if (val) {
  4886. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ArchiveOpenPDU_nonStandardParameters_ElmFn);
  4887. }
  4888. }
  4889. static void ASN1CALL ASN1Free_ArchiveOpenPDU_nonStandardParameters_ElmFn(PArchiveOpenPDU_nonStandardParameters val)
  4890. {
  4891. if (val) {
  4892. ASN1Free_NonStandardParameter(&val->value);
  4893. }
  4894. }
  4895. static int ASN1CALL ASN1Enc_ArchiveErrorPDU_nonStandardParameters(ASN1encoding_t enc, PArchiveErrorPDU_nonStandardParameters *val)
  4896. {
  4897. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ArchiveErrorPDU_nonStandardParameters_ElmFn);
  4898. }
  4899. static int ASN1CALL ASN1Enc_ArchiveErrorPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PArchiveErrorPDU_nonStandardParameters val)
  4900. {
  4901. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4902. return 0;
  4903. return 1;
  4904. }
  4905. static int ASN1CALL ASN1Dec_ArchiveErrorPDU_nonStandardParameters(ASN1decoding_t dec, PArchiveErrorPDU_nonStandardParameters *val)
  4906. {
  4907. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ArchiveErrorPDU_nonStandardParameters_ElmFn, sizeof(**val));
  4908. }
  4909. static int ASN1CALL ASN1Dec_ArchiveErrorPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PArchiveErrorPDU_nonStandardParameters val)
  4910. {
  4911. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4912. return 0;
  4913. return 1;
  4914. }
  4915. static void ASN1CALL ASN1Free_ArchiveErrorPDU_nonStandardParameters(PArchiveErrorPDU_nonStandardParameters *val)
  4916. {
  4917. if (val) {
  4918. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ArchiveErrorPDU_nonStandardParameters_ElmFn);
  4919. }
  4920. }
  4921. static void ASN1CALL ASN1Free_ArchiveErrorPDU_nonStandardParameters_ElmFn(PArchiveErrorPDU_nonStandardParameters val)
  4922. {
  4923. if (val) {
  4924. ASN1Free_NonStandardParameter(&val->value);
  4925. }
  4926. }
  4927. static int ASN1CALL ASN1Enc_ArchiveClosePDU_nonStandardParameters(ASN1encoding_t enc, PArchiveClosePDU_nonStandardParameters *val)
  4928. {
  4929. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ArchiveClosePDU_nonStandardParameters_ElmFn);
  4930. }
  4931. static int ASN1CALL ASN1Enc_ArchiveClosePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PArchiveClosePDU_nonStandardParameters val)
  4932. {
  4933. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4934. return 0;
  4935. return 1;
  4936. }
  4937. static int ASN1CALL ASN1Dec_ArchiveClosePDU_nonStandardParameters(ASN1decoding_t dec, PArchiveClosePDU_nonStandardParameters *val)
  4938. {
  4939. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ArchiveClosePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4940. }
  4941. static int ASN1CALL ASN1Dec_ArchiveClosePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PArchiveClosePDU_nonStandardParameters val)
  4942. {
  4943. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4944. return 0;
  4945. return 1;
  4946. }
  4947. static void ASN1CALL ASN1Free_ArchiveClosePDU_nonStandardParameters(PArchiveClosePDU_nonStandardParameters *val)
  4948. {
  4949. if (val) {
  4950. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ArchiveClosePDU_nonStandardParameters_ElmFn);
  4951. }
  4952. }
  4953. static void ASN1CALL ASN1Free_ArchiveClosePDU_nonStandardParameters_ElmFn(PArchiveClosePDU_nonStandardParameters val)
  4954. {
  4955. if (val) {
  4956. ASN1Free_NonStandardParameter(&val->value);
  4957. }
  4958. }
  4959. static int ASN1CALL ASN1Enc_ArchiveAcknowledgePDU_nonStandardParameters(ASN1encoding_t enc, PArchiveAcknowledgePDU_nonStandardParameters *val)
  4960. {
  4961. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ArchiveAcknowledgePDU_nonStandardParameters_ElmFn);
  4962. }
  4963. static int ASN1CALL ASN1Enc_ArchiveAcknowledgePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PArchiveAcknowledgePDU_nonStandardParameters val)
  4964. {
  4965. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  4966. return 0;
  4967. return 1;
  4968. }
  4969. static int ASN1CALL ASN1Dec_ArchiveAcknowledgePDU_nonStandardParameters(ASN1decoding_t dec, PArchiveAcknowledgePDU_nonStandardParameters *val)
  4970. {
  4971. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ArchiveAcknowledgePDU_nonStandardParameters_ElmFn, sizeof(**val));
  4972. }
  4973. static int ASN1CALL ASN1Dec_ArchiveAcknowledgePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PArchiveAcknowledgePDU_nonStandardParameters val)
  4974. {
  4975. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  4976. return 0;
  4977. return 1;
  4978. }
  4979. static void ASN1CALL ASN1Free_ArchiveAcknowledgePDU_nonStandardParameters(PArchiveAcknowledgePDU_nonStandardParameters *val)
  4980. {
  4981. if (val) {
  4982. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ArchiveAcknowledgePDU_nonStandardParameters_ElmFn);
  4983. }
  4984. }
  4985. static void ASN1CALL ASN1Free_ArchiveAcknowledgePDU_nonStandardParameters_ElmFn(PArchiveAcknowledgePDU_nonStandardParameters val)
  4986. {
  4987. if (val) {
  4988. ASN1Free_NonStandardParameter(&val->value);
  4989. }
  4990. }
  4991. static int ASN1CALL ASN1Enc_WorkspaceViewAttribute_viewRegion(ASN1encoding_t enc, WorkspaceViewAttribute_viewRegion *val)
  4992. {
  4993. if (!ASN1PEREncSimpleChoice(enc, (val)->choice, 1))
  4994. return 0;
  4995. switch ((val)->choice) {
  4996. case 1:
  4997. break;
  4998. case 2:
  4999. if (!ASN1Enc_WorkspaceRegion(enc, &(val)->u.partialWorkspace))
  5000. return 0;
  5001. break;
  5002. default:
  5003. /* impossible */
  5004. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5005. return 0;
  5006. }
  5007. return 1;
  5008. }
  5009. static int ASN1CALL ASN1Dec_WorkspaceViewAttribute_viewRegion(ASN1decoding_t dec, WorkspaceViewAttribute_viewRegion *val)
  5010. {
  5011. if (!ASN1PERDecSimpleChoice(dec, &(val)->choice, 1))
  5012. return 0;
  5013. switch ((val)->choice) {
  5014. case 1:
  5015. break;
  5016. case 2:
  5017. if (!ASN1Dec_WorkspaceRegion(dec, &(val)->u.partialWorkspace))
  5018. return 0;
  5019. break;
  5020. default:
  5021. /* impossible */
  5022. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5023. return 0;
  5024. }
  5025. return 1;
  5026. }
  5027. static int ASN1CALL ASN1Enc_VideoWindowEditPDU_nonStandardParameters(ASN1encoding_t enc, PVideoWindowEditPDU_nonStandardParameters *val)
  5028. {
  5029. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VideoWindowEditPDU_nonStandardParameters_ElmFn);
  5030. }
  5031. static int ASN1CALL ASN1Enc_VideoWindowEditPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PVideoWindowEditPDU_nonStandardParameters val)
  5032. {
  5033. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  5034. return 0;
  5035. return 1;
  5036. }
  5037. static int ASN1CALL ASN1Dec_VideoWindowEditPDU_nonStandardParameters(ASN1decoding_t dec, PVideoWindowEditPDU_nonStandardParameters *val)
  5038. {
  5039. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VideoWindowEditPDU_nonStandardParameters_ElmFn, sizeof(**val));
  5040. }
  5041. static int ASN1CALL ASN1Dec_VideoWindowEditPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PVideoWindowEditPDU_nonStandardParameters val)
  5042. {
  5043. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  5044. return 0;
  5045. return 1;
  5046. }
  5047. static void ASN1CALL ASN1Free_VideoWindowEditPDU_nonStandardParameters(PVideoWindowEditPDU_nonStandardParameters *val)
  5048. {
  5049. if (val) {
  5050. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VideoWindowEditPDU_nonStandardParameters_ElmFn);
  5051. }
  5052. }
  5053. static void ASN1CALL ASN1Free_VideoWindowEditPDU_nonStandardParameters_ElmFn(PVideoWindowEditPDU_nonStandardParameters val)
  5054. {
  5055. if (val) {
  5056. ASN1Free_NonStandardParameter(&val->value);
  5057. }
  5058. }
  5059. static int ASN1CALL ASN1Enc_VideoWindowDeletePDU_nonStandardParameters(ASN1encoding_t enc, PVideoWindowDeletePDU_nonStandardParameters *val)
  5060. {
  5061. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VideoWindowDeletePDU_nonStandardParameters_ElmFn);
  5062. }
  5063. static int ASN1CALL ASN1Enc_VideoWindowDeletePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PVideoWindowDeletePDU_nonStandardParameters val)
  5064. {
  5065. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  5066. return 0;
  5067. return 1;
  5068. }
  5069. static int ASN1CALL ASN1Dec_VideoWindowDeletePDU_nonStandardParameters(ASN1decoding_t dec, PVideoWindowDeletePDU_nonStandardParameters *val)
  5070. {
  5071. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VideoWindowDeletePDU_nonStandardParameters_ElmFn, sizeof(**val));
  5072. }
  5073. static int ASN1CALL ASN1Dec_VideoWindowDeletePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PVideoWindowDeletePDU_nonStandardParameters val)
  5074. {
  5075. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  5076. return 0;
  5077. return 1;
  5078. }
  5079. static void ASN1CALL ASN1Free_VideoWindowDeletePDU_nonStandardParameters(PVideoWindowDeletePDU_nonStandardParameters *val)
  5080. {
  5081. if (val) {
  5082. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VideoWindowDeletePDU_nonStandardParameters_ElmFn);
  5083. }
  5084. }
  5085. static void ASN1CALL ASN1Free_VideoWindowDeletePDU_nonStandardParameters_ElmFn(PVideoWindowDeletePDU_nonStandardParameters val)
  5086. {
  5087. if (val) {
  5088. ASN1Free_NonStandardParameter(&val->value);
  5089. }
  5090. }
  5091. static int ASN1CALL ASN1Enc_VideoWindowCreatePDU_nonStandardParameters(ASN1encoding_t enc, PVideoWindowCreatePDU_nonStandardParameters *val)
  5092. {
  5093. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VideoWindowCreatePDU_nonStandardParameters_ElmFn);
  5094. }
  5095. static int ASN1CALL ASN1Enc_VideoWindowCreatePDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PVideoWindowCreatePDU_nonStandardParameters val)
  5096. {
  5097. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  5098. return 0;
  5099. return 1;
  5100. }
  5101. static int ASN1CALL ASN1Dec_VideoWindowCreatePDU_nonStandardParameters(ASN1decoding_t dec, PVideoWindowCreatePDU_nonStandardParameters *val)
  5102. {
  5103. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VideoWindowCreatePDU_nonStandardParameters_ElmFn, sizeof(**val));
  5104. }
  5105. static int ASN1CALL ASN1Dec_VideoWindowCreatePDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PVideoWindowCreatePDU_nonStandardParameters val)
  5106. {
  5107. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  5108. return 0;
  5109. return 1;
  5110. }
  5111. static void ASN1CALL ASN1Free_VideoWindowCreatePDU_nonStandardParameters(PVideoWindowCreatePDU_nonStandardParameters *val)
  5112. {
  5113. if (val) {
  5114. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VideoWindowCreatePDU_nonStandardParameters_ElmFn);
  5115. }
  5116. }
  5117. static void ASN1CALL ASN1Free_VideoWindowCreatePDU_nonStandardParameters_ElmFn(PVideoWindowCreatePDU_nonStandardParameters val)
  5118. {
  5119. if (val) {
  5120. ASN1Free_NonStandardParameter(&val->value);
  5121. }
  5122. }
  5123. static int ASN1CALL ASN1Enc_VideoSourceIdentifier_dSMCCConnBinder(ASN1encoding_t enc, PVideoSourceIdentifier_dSMCCConnBinder *val)
  5124. {
  5125. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VideoSourceIdentifier_dSMCCConnBinder_ElmFn);
  5126. }
  5127. static int ASN1CALL ASN1Enc_VideoSourceIdentifier_dSMCCConnBinder_ElmFn(ASN1encoding_t enc, PVideoSourceIdentifier_dSMCCConnBinder val)
  5128. {
  5129. if (!ASN1Enc_DSMCCTap(enc, &val->value))
  5130. return 0;
  5131. return 1;
  5132. }
  5133. static int ASN1CALL ASN1Dec_VideoSourceIdentifier_dSMCCConnBinder(ASN1decoding_t dec, PVideoSourceIdentifier_dSMCCConnBinder *val)
  5134. {
  5135. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VideoSourceIdentifier_dSMCCConnBinder_ElmFn, sizeof(**val));
  5136. }
  5137. static int ASN1CALL ASN1Dec_VideoSourceIdentifier_dSMCCConnBinder_ElmFn(ASN1decoding_t dec, PVideoSourceIdentifier_dSMCCConnBinder val)
  5138. {
  5139. if (!ASN1Dec_DSMCCTap(dec, &val->value))
  5140. return 0;
  5141. return 1;
  5142. }
  5143. static void ASN1CALL ASN1Free_VideoSourceIdentifier_dSMCCConnBinder(PVideoSourceIdentifier_dSMCCConnBinder *val)
  5144. {
  5145. if (val) {
  5146. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VideoSourceIdentifier_dSMCCConnBinder_ElmFn);
  5147. }
  5148. }
  5149. static void ASN1CALL ASN1Free_VideoSourceIdentifier_dSMCCConnBinder_ElmFn(PVideoSourceIdentifier_dSMCCConnBinder val)
  5150. {
  5151. if (val) {
  5152. ASN1Free_DSMCCTap(&val->value);
  5153. }
  5154. }
  5155. static int ASN1CALL ASN1Enc_TransparencyMask_nonStandardParameters(ASN1encoding_t enc, PTransparencyMask_nonStandardParameters *val)
  5156. {
  5157. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_TransparencyMask_nonStandardParameters_ElmFn);
  5158. }
  5159. static int ASN1CALL ASN1Enc_TransparencyMask_nonStandardParameters_ElmFn(ASN1encoding_t enc, PTransparencyMask_nonStandardParameters val)
  5160. {
  5161. if (!ASN1Enc_NonStandardParameter(enc, &val->value))
  5162. return 0;
  5163. return 1;
  5164. }
  5165. static int ASN1CALL ASN1Dec_TransparencyMask_nonStandardParameters(ASN1decoding_t dec, PTransparencyMask_nonStandardParameters *val)
  5166. {
  5167. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_TransparencyMask_nonStandardParameters_ElmFn, sizeof(**val));
  5168. }
  5169. static int ASN1CALL ASN1Dec_TransparencyMask_nonStandardParameters_ElmFn(ASN1decoding_t dec, PTransparencyMask_nonStandardParameters val)
  5170. {
  5171. if (!ASN1Dec_NonStandardParameter(dec, &val->value))
  5172. return 0;
  5173. return 1;
  5174. }
  5175. static void ASN1CALL ASN1Free_TransparencyMask_nonStandardParameters(PTransparencyMask_nonStandardParameters *val)
  5176. {
  5177. if (val) {
  5178. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_TransparencyMask_nonStandardParameters_ElmFn);
  5179. }
  5180. }
  5181. static void ASN1CALL ASN1Free_TransparencyMask_nonStandardParameters_ElmFn(PTransparencyMask_nonStandardParameters val)
  5182. {
  5183. if (val) {
  5184. ASN1Free_NonStandardParameter(&val->value);
  5185. }
  5186. }
  5187. static int ASN1CALL ASN1Enc_TransparencyMask_bitMask(ASN1encoding_t enc, TransparencyMask_bitMask *val)
  5188. {
  5189. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  5190. return 0;
  5191. switch ((val)->choice) {
  5192. case 1:
  5193. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->u.uncompressed))
  5194. return 0;
  5195. break;
  5196. case 2:
  5197. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->u.jbigCompressed))
  5198. return 0;
  5199. break;
  5200. case 3:
  5201. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardFormat))
  5202. return 0;
  5203. break;
  5204. default:
  5205. /* impossible */
  5206. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5207. return 0;
  5208. }
  5209. return 1;
  5210. }
  5211. static int ASN1CALL ASN1Dec_TransparencyMask_bitMask(ASN1decoding_t dec, TransparencyMask_bitMask *val)
  5212. {
  5213. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  5214. return 0;
  5215. switch ((val)->choice) {
  5216. case 1:
  5217. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->u.uncompressed))
  5218. return 0;
  5219. break;
  5220. case 2:
  5221. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->u.jbigCompressed))
  5222. return 0;
  5223. break;
  5224. case 3:
  5225. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardFormat))
  5226. return 0;
  5227. break;
  5228. case 0:
  5229. /* extension case */
  5230. if (!ASN1PERDecSkipFragmented(dec, 8))
  5231. return 0;
  5232. break;
  5233. default:
  5234. /* impossible */
  5235. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5236. return 0;
  5237. }
  5238. return 1;
  5239. }
  5240. static void ASN1CALL ASN1Free_TransparencyMask_bitMask(TransparencyMask_bitMask *val)
  5241. {
  5242. if (val) {
  5243. switch ((val)->choice) {
  5244. case 1:
  5245. ASN1octetstring_free(&(val)->u.uncompressed);
  5246. break;
  5247. case 2:
  5248. ASN1octetstring_free(&(val)->u.jbigCompressed);
  5249. break;
  5250. case 3:
  5251. ASN1Free_NonStandardParameter(&(val)->u.nonStandardFormat);
  5252. break;
  5253. }
  5254. }
  5255. }
  5256. static int ASN1CALL ASN1Enc_PointListEdits_Seq(ASN1encoding_t enc, PointListEdits_Seq *val)
  5257. {
  5258. if (!ASN1PEREncExtensionBitClear(enc))
  5259. return 0;
  5260. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5261. return 0;
  5262. if (!ASN1PEREncUnsignedShort(enc, (val)->initialIndex))
  5263. return 0;
  5264. if (!ASN1Enc_PointDiff16(enc, &(val)->initialPointEdit))
  5265. return 0;
  5266. if ((val)->o[0] & 0x80) {
  5267. if (!ASN1Enc_PointList(enc, &(val)->subsequentPointEdits))
  5268. return 0;
  5269. }
  5270. return 1;
  5271. }
  5272. static int ASN1CALL ASN1Dec_PointListEdits_Seq(ASN1decoding_t dec, PointListEdits_Seq *val)
  5273. {
  5274. ASN1uint32_t y;
  5275. if (!ASN1PERDecExtensionBit(dec, &y))
  5276. return 0;
  5277. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5278. return 0;
  5279. if (!ASN1PERDecUnsignedShort(dec, &(val)->initialIndex))
  5280. return 0;
  5281. if (!ASN1Dec_PointDiff16(dec, &(val)->initialPointEdit))
  5282. return 0;
  5283. if ((val)->o[0] & 0x80) {
  5284. if (!ASN1Dec_PointList(dec, &(val)->subsequentPointEdits))
  5285. return 0;
  5286. }
  5287. if (y) {
  5288. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  5289. return 0;
  5290. }
  5291. return 1;
  5292. }
  5293. static void ASN1CALL ASN1Free_PointListEdits_Seq(PointListEdits_Seq *val)
  5294. {
  5295. if (val) {
  5296. if ((val)->o[0] & 0x80) {
  5297. ASN1Free_PointList(&(val)->subsequentPointEdits);
  5298. }
  5299. }
  5300. }
  5301. static int ASN1CALL ASN1Enc_PointList_pointsDiff16(ASN1encoding_t enc, PPointList_pointsDiff16 *val)
  5302. {
  5303. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_PointList_pointsDiff16_ElmFn, 0, 255, 8);
  5304. }
  5305. static int ASN1CALL ASN1Enc_PointList_pointsDiff16_ElmFn(ASN1encoding_t enc, PPointList_pointsDiff16 val)
  5306. {
  5307. if (!ASN1Enc_PointDiff16(enc, &val->value))
  5308. return 0;
  5309. return 1;
  5310. }
  5311. static int ASN1CALL ASN1Dec_PointList_pointsDiff16(ASN1decoding_t dec, PPointList_pointsDiff16 *val)
  5312. {
  5313. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_PointList_pointsDiff16_ElmFn, sizeof(**val), 0, 255, 8);
  5314. }
  5315. static int ASN1CALL ASN1Dec_PointList_pointsDiff16_ElmFn(ASN1decoding_t dec, PPointList_pointsDiff16 val)
  5316. {
  5317. if (!ASN1Dec_PointDiff16(dec, &val->value))
  5318. return 0;
  5319. return 1;
  5320. }
  5321. static void ASN1CALL ASN1Free_PointList_pointsDiff16(PPointList_pointsDiff16 *val)
  5322. {
  5323. if (val) {
  5324. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_PointList_pointsDiff16_ElmFn);
  5325. }
  5326. }
  5327. static void ASN1CALL ASN1Free_PointList_pointsDiff16_ElmFn(PPointList_pointsDiff16 val)
  5328. {
  5329. if (val) {
  5330. }
  5331. }
  5332. static int ASN1CALL ASN1Enc_PointList_pointsDiff8(ASN1encoding_t enc, PPointList_pointsDiff8 *val)
  5333. {
  5334. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_PointList_pointsDiff8_ElmFn, 0, 255, 8);
  5335. }
  5336. static int ASN1CALL ASN1Enc_PointList_pointsDiff8_ElmFn(ASN1encoding_t enc, PPointList_pointsDiff8 val)
  5337. {
  5338. if (!ASN1Enc_PointDiff8(enc, &val->value))
  5339. return 0;
  5340. return 1;
  5341. }
  5342. static int ASN1CALL ASN1Dec_PointList_pointsDiff8(ASN1decoding_t dec, PPointList_pointsDiff8 *val)
  5343. {
  5344. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_PointList_pointsDiff8_ElmFn, sizeof(**val), 0, 255, 8);
  5345. }
  5346. static int ASN1CALL ASN1Dec_PointList_pointsDiff8_ElmFn(ASN1decoding_t dec, PPointList_pointsDiff8 val)
  5347. {
  5348. if (!ASN1Dec_PointDiff8(dec, &val->value))
  5349. return 0;
  5350. return 1;
  5351. }
  5352. static void ASN1CALL ASN1Free_PointList_pointsDiff8(PPointList_pointsDiff8 *val)
  5353. {
  5354. if (val) {
  5355. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_PointList_pointsDiff8_ElmFn);
  5356. }
  5357. }
  5358. static void ASN1CALL ASN1Free_PointList_pointsDiff8_ElmFn(PPointList_pointsDiff8 val)
  5359. {
  5360. if (val) {
  5361. }
  5362. }
  5363. static int ASN1CALL ASN1Enc_PointList_pointsDiff4(ASN1encoding_t enc, PPointList_pointsDiff4 *val)
  5364. {
  5365. return ASN1PEREncSeqOf_VarSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_PointList_pointsDiff4_ElmFn, 0, 255, 8);
  5366. }
  5367. static int ASN1CALL ASN1Enc_PointList_pointsDiff4_ElmFn(ASN1encoding_t enc, PPointList_pointsDiff4 val)
  5368. {
  5369. if (!ASN1Enc_PointDiff4(enc, &val->value))
  5370. return 0;
  5371. return 1;
  5372. }
  5373. static int ASN1CALL ASN1Dec_PointList_pointsDiff4(ASN1decoding_t dec, PPointList_pointsDiff4 *val)
  5374. {
  5375. return ASN1PERDecSeqOf_VarSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_PointList_pointsDiff4_ElmFn, sizeof(**val), 0, 255, 8);
  5376. }
  5377. static int ASN1CALL ASN1Dec_PointList_pointsDiff4_ElmFn(ASN1decoding_t dec, PPointList_pointsDiff4 val)
  5378. {
  5379. if (!ASN1Dec_PointDiff4(dec, &val->value))
  5380. return 0;
  5381. return 1;
  5382. }
  5383. static void ASN1CALL ASN1Free_PointList_pointsDiff4(PPointList_pointsDiff4 *val)
  5384. {
  5385. if (val) {
  5386. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_PointList_pointsDiff4_ElmFn);
  5387. }
  5388. }
  5389. static void ASN1CALL ASN1Free_PointList_pointsDiff4_ElmFn(PPointList_pointsDiff4 val)
  5390. {
  5391. if (val) {
  5392. }
  5393. }
  5394. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters *val)
  5395. {
  5396. if (!ASN1PEREncExtensionBitClear(enc))
  5397. return 0;
  5398. if (!ASN1PEREncBits(enc, 3, (val)->o))
  5399. return 0;
  5400. if ((val)->o[0] & 0x80) {
  5401. if (!ASN1PEREncDouble(enc, (val)->gamma))
  5402. return 0;
  5403. }
  5404. if ((val)->o[0] & 0x40) {
  5405. if (!ASN1PEREncUnsignedInteger(enc, (val)->colorTemperature))
  5406. return 0;
  5407. }
  5408. if ((val)->o[0] & 0x20) {
  5409. if (!ASN1Enc_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries(enc, &(val)->primaries))
  5410. return 0;
  5411. }
  5412. return 1;
  5413. }
  5414. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr_generalYCbCrParameters *val)
  5415. {
  5416. ASN1uint32_t y;
  5417. if (!ASN1PERDecExtensionBit(dec, &y))
  5418. return 0;
  5419. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5420. return 0;
  5421. if ((val)->o[0] & 0x80) {
  5422. if (!ASN1PERDecDouble(dec, &(val)->gamma))
  5423. return 0;
  5424. }
  5425. if ((val)->o[0] & 0x40) {
  5426. if (!ASN1PERDecUnsignedInteger(dec, &(val)->colorTemperature))
  5427. return 0;
  5428. }
  5429. if ((val)->o[0] & 0x20) {
  5430. if (!ASN1Dec_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters_primaries(dec, &(val)->primaries))
  5431. return 0;
  5432. }
  5433. if (y) {
  5434. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  5435. return 0;
  5436. }
  5437. return 1;
  5438. }
  5439. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace *val)
  5440. {
  5441. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  5442. return 0;
  5443. switch ((val)->choice) {
  5444. case 1:
  5445. break;
  5446. case 2:
  5447. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardRGBSpace))
  5448. return 0;
  5449. break;
  5450. default:
  5451. /* impossible */
  5452. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5453. return 0;
  5454. }
  5455. return 1;
  5456. }
  5457. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace *val)
  5458. {
  5459. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  5460. return 0;
  5461. switch ((val)->choice) {
  5462. case 1:
  5463. break;
  5464. case 2:
  5465. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardRGBSpace))
  5466. return 0;
  5467. break;
  5468. case 0:
  5469. /* extension case */
  5470. if (!ASN1PERDecSkipFragmented(dec, 8))
  5471. return 0;
  5472. break;
  5473. default:
  5474. /* impossible */
  5475. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5476. return 0;
  5477. }
  5478. return 1;
  5479. }
  5480. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace *val)
  5481. {
  5482. if (val) {
  5483. switch ((val)->choice) {
  5484. case 2:
  5485. ASN1Free_NonStandardParameter(&(val)->u.nonStandardRGBSpace);
  5486. break;
  5487. }
  5488. }
  5489. }
  5490. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB_generalRGBParameters(ASN1encoding_t enc, ColorAccuracyEnhancementRGB_generalRGBParameters *val)
  5491. {
  5492. if (!ASN1PEREncExtensionBitClear(enc))
  5493. return 0;
  5494. if (!ASN1PEREncBits(enc, 3, (val)->o))
  5495. return 0;
  5496. if ((val)->o[0] & 0x80) {
  5497. if (!ASN1PEREncDouble(enc, (val)->gamma))
  5498. return 0;
  5499. }
  5500. if ((val)->o[0] & 0x40) {
  5501. if (!ASN1PEREncUnsignedInteger(enc, (val)->colorTemperature))
  5502. return 0;
  5503. }
  5504. if ((val)->o[0] & 0x20) {
  5505. if (!ASN1Enc_ColorAccuracyEnhancementRGB_generalRGBParameters_primaries(enc, &(val)->primaries))
  5506. return 0;
  5507. }
  5508. return 1;
  5509. }
  5510. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB_generalRGBParameters(ASN1decoding_t dec, ColorAccuracyEnhancementRGB_generalRGBParameters *val)
  5511. {
  5512. ASN1uint32_t y;
  5513. if (!ASN1PERDecExtensionBit(dec, &y))
  5514. return 0;
  5515. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5516. return 0;
  5517. if ((val)->o[0] & 0x80) {
  5518. if (!ASN1PERDecDouble(dec, &(val)->gamma))
  5519. return 0;
  5520. }
  5521. if ((val)->o[0] & 0x40) {
  5522. if (!ASN1PERDecUnsignedInteger(dec, &(val)->colorTemperature))
  5523. return 0;
  5524. }
  5525. if ((val)->o[0] & 0x20) {
  5526. if (!ASN1Dec_ColorAccuracyEnhancementRGB_generalRGBParameters_primaries(dec, &(val)->primaries))
  5527. return 0;
  5528. }
  5529. if (y) {
  5530. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  5531. return 0;
  5532. }
  5533. return 1;
  5534. }
  5535. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB_predefinedRGBSpace(ASN1encoding_t enc, ColorAccuracyEnhancementRGB_predefinedRGBSpace *val)
  5536. {
  5537. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 0))
  5538. return 0;
  5539. switch ((val)->choice) {
  5540. case 1:
  5541. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardRGBSpace))
  5542. return 0;
  5543. break;
  5544. default:
  5545. /* impossible */
  5546. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5547. return 0;
  5548. }
  5549. return 1;
  5550. }
  5551. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB_predefinedRGBSpace(ASN1decoding_t dec, ColorAccuracyEnhancementRGB_predefinedRGBSpace *val)
  5552. {
  5553. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 0))
  5554. return 0;
  5555. switch ((val)->choice) {
  5556. case 1:
  5557. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardRGBSpace))
  5558. return 0;
  5559. break;
  5560. case 0:
  5561. /* extension case */
  5562. if (!ASN1PERDecSkipFragmented(dec, 8))
  5563. return 0;
  5564. break;
  5565. default:
  5566. /* impossible */
  5567. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5568. return 0;
  5569. }
  5570. return 1;
  5571. }
  5572. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementRGB_predefinedRGBSpace(ColorAccuracyEnhancementRGB_predefinedRGBSpace *val)
  5573. {
  5574. if (val) {
  5575. switch ((val)->choice) {
  5576. case 1:
  5577. ASN1Free_NonStandardParameter(&(val)->u.nonStandardRGBSpace);
  5578. break;
  5579. }
  5580. }
  5581. }
  5582. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(ASN1encoding_t enc, ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace *val)
  5583. {
  5584. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 0))
  5585. return 0;
  5586. switch ((val)->choice) {
  5587. case 1:
  5588. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardGreyscaleSpace))
  5589. return 0;
  5590. break;
  5591. default:
  5592. /* impossible */
  5593. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5594. return 0;
  5595. }
  5596. return 1;
  5597. }
  5598. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(ASN1decoding_t dec, ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace *val)
  5599. {
  5600. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 0))
  5601. return 0;
  5602. switch ((val)->choice) {
  5603. case 1:
  5604. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardGreyscaleSpace))
  5605. return 0;
  5606. break;
  5607. case 0:
  5608. /* extension case */
  5609. if (!ASN1PERDecSkipFragmented(dec, 8))
  5610. return 0;
  5611. break;
  5612. default:
  5613. /* impossible */
  5614. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5615. return 0;
  5616. }
  5617. return 1;
  5618. }
  5619. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace *val)
  5620. {
  5621. if (val) {
  5622. switch ((val)->choice) {
  5623. case 1:
  5624. ASN1Free_NonStandardParameter(&(val)->u.nonStandardGreyscaleSpace);
  5625. break;
  5626. }
  5627. }
  5628. }
  5629. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab_predefinedCIELabSpace *val)
  5630. {
  5631. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 0))
  5632. return 0;
  5633. switch ((val)->choice) {
  5634. case 1:
  5635. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardCIELabSpace))
  5636. return 0;
  5637. break;
  5638. default:
  5639. /* impossible */
  5640. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5641. return 0;
  5642. }
  5643. return 1;
  5644. }
  5645. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab_predefinedCIELabSpace *val)
  5646. {
  5647. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 0))
  5648. return 0;
  5649. switch ((val)->choice) {
  5650. case 1:
  5651. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardCIELabSpace))
  5652. return 0;
  5653. break;
  5654. case 0:
  5655. /* extension case */
  5656. if (!ASN1PERDecSkipFragmented(dec, 8))
  5657. return 0;
  5658. break;
  5659. default:
  5660. /* impossible */
  5661. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5662. return 0;
  5663. }
  5664. return 1;
  5665. }
  5666. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(ColorAccuracyEnhancementCIELab_predefinedCIELabSpace *val)
  5667. {
  5668. if (val) {
  5669. switch ((val)->choice) {
  5670. case 1:
  5671. ASN1Free_NonStandardParameter(&(val)->u.nonStandardCIELabSpace);
  5672. break;
  5673. }
  5674. }
  5675. }
  5676. static int ASN1CALL ASN1Enc_BitmapAbortReason(ASN1encoding_t enc, BitmapAbortReason *val)
  5677. {
  5678. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  5679. return 0;
  5680. switch ((val)->choice) {
  5681. case 1:
  5682. break;
  5683. case 2:
  5684. break;
  5685. case 3:
  5686. break;
  5687. case 4:
  5688. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardReason))
  5689. return 0;
  5690. break;
  5691. default:
  5692. /* impossible */
  5693. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5694. return 0;
  5695. }
  5696. return 1;
  5697. }
  5698. static int ASN1CALL ASN1Dec_BitmapAbortReason(ASN1decoding_t dec, BitmapAbortReason *val)
  5699. {
  5700. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  5701. return 0;
  5702. switch ((val)->choice) {
  5703. case 1:
  5704. break;
  5705. case 2:
  5706. break;
  5707. case 3:
  5708. break;
  5709. case 4:
  5710. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardReason))
  5711. return 0;
  5712. break;
  5713. case 0:
  5714. /* extension case */
  5715. if (!ASN1PERDecSkipFragmented(dec, 8))
  5716. return 0;
  5717. break;
  5718. default:
  5719. /* impossible */
  5720. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5721. return 0;
  5722. }
  5723. return 1;
  5724. }
  5725. static void ASN1CALL ASN1Free_BitmapAbortReason(BitmapAbortReason *val)
  5726. {
  5727. if (val) {
  5728. switch ((val)->choice) {
  5729. case 4:
  5730. ASN1Free_NonStandardParameter(&(val)->u.nonStandardReason);
  5731. break;
  5732. }
  5733. }
  5734. }
  5735. static int ASN1CALL ASN1Enc_BitmapDestinationAddress(ASN1encoding_t enc, BitmapDestinationAddress *val)
  5736. {
  5737. ASN1encoding_t ee;
  5738. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  5739. return 0;
  5740. switch ((val)->choice) {
  5741. case 1:
  5742. break;
  5743. case 2:
  5744. if (!ASN1Enc_SoftCopyDataPlaneAddress(enc, &(val)->u.softCopyImagePlane))
  5745. return 0;
  5746. break;
  5747. case 3:
  5748. if (!ASN1Enc_SoftCopyDataPlaneAddress(enc, &(val)->u.softCopyAnnotationPlane))
  5749. return 0;
  5750. break;
  5751. case 4:
  5752. if (!ASN1Enc_SoftCopyPointerPlaneAddress(enc, &(val)->u.softCopyPointerPlane))
  5753. return 0;
  5754. break;
  5755. case 5:
  5756. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5757. return 0;
  5758. if (!ASN1Enc_NonStandardParameter(ee, &(val)->u.nonStandardDestination))
  5759. return 0;
  5760. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5761. return 0;
  5762. ASN1_CloseEncoder2(ee);
  5763. break;
  5764. default:
  5765. /* impossible */
  5766. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5767. return 0;
  5768. }
  5769. return 1;
  5770. }
  5771. static int ASN1CALL ASN1Dec_BitmapDestinationAddress(ASN1decoding_t dec, BitmapDestinationAddress *val)
  5772. {
  5773. ASN1decoding_t dd;
  5774. ASN1octet_t *db;
  5775. ASN1uint32_t ds;
  5776. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  5777. return 0;
  5778. switch ((val)->choice) {
  5779. case 1:
  5780. break;
  5781. case 2:
  5782. if (!ASN1Dec_SoftCopyDataPlaneAddress(dec, &(val)->u.softCopyImagePlane))
  5783. return 0;
  5784. break;
  5785. case 3:
  5786. if (!ASN1Dec_SoftCopyDataPlaneAddress(dec, &(val)->u.softCopyAnnotationPlane))
  5787. return 0;
  5788. break;
  5789. case 4:
  5790. if (!ASN1Dec_SoftCopyPointerPlaneAddress(dec, &(val)->u.softCopyPointerPlane))
  5791. return 0;
  5792. break;
  5793. case 5:
  5794. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5795. return 0;
  5796. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5797. return 0;
  5798. if (!ASN1Dec_NonStandardParameter(dd, &(val)->u.nonStandardDestination))
  5799. return 0;
  5800. ASN1_CloseDecoder(dd);
  5801. ASN1Free(db);
  5802. break;
  5803. case 0:
  5804. /* extension case */
  5805. if (!ASN1PERDecSkipFragmented(dec, 8))
  5806. return 0;
  5807. break;
  5808. default:
  5809. /* impossible */
  5810. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5811. return 0;
  5812. }
  5813. return 1;
  5814. }
  5815. static void ASN1CALL ASN1Free_BitmapDestinationAddress(BitmapDestinationAddress *val)
  5816. {
  5817. if (val) {
  5818. switch ((val)->choice) {
  5819. case 5:
  5820. ASN1Free_NonStandardParameter(&(val)->u.nonStandardDestination);
  5821. break;
  5822. }
  5823. }
  5824. }
  5825. static int ASN1CALL ASN1Enc_ButtonEvent(ASN1encoding_t enc, ButtonEvent *val)
  5826. {
  5827. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  5828. return 0;
  5829. switch ((val)->choice) {
  5830. case 1:
  5831. break;
  5832. case 2:
  5833. break;
  5834. case 3:
  5835. break;
  5836. case 4:
  5837. break;
  5838. case 5:
  5839. break;
  5840. case 6:
  5841. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardButtonEvent))
  5842. return 0;
  5843. break;
  5844. default:
  5845. /* impossible */
  5846. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5847. return 0;
  5848. }
  5849. return 1;
  5850. }
  5851. static int ASN1CALL ASN1Dec_ButtonEvent(ASN1decoding_t dec, ButtonEvent *val)
  5852. {
  5853. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  5854. return 0;
  5855. switch ((val)->choice) {
  5856. case 1:
  5857. break;
  5858. case 2:
  5859. break;
  5860. case 3:
  5861. break;
  5862. case 4:
  5863. break;
  5864. case 5:
  5865. break;
  5866. case 6:
  5867. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardButtonEvent))
  5868. return 0;
  5869. break;
  5870. case 0:
  5871. /* extension case */
  5872. if (!ASN1PERDecSkipFragmented(dec, 8))
  5873. return 0;
  5874. break;
  5875. default:
  5876. /* impossible */
  5877. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5878. return 0;
  5879. }
  5880. return 1;
  5881. }
  5882. static void ASN1CALL ASN1Free_ButtonEvent(ButtonEvent *val)
  5883. {
  5884. if (val) {
  5885. switch ((val)->choice) {
  5886. case 6:
  5887. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardButtonEvent);
  5888. break;
  5889. }
  5890. }
  5891. }
  5892. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementCIELab(ASN1encoding_t enc, ColorAccuracyEnhancementCIELab *val)
  5893. {
  5894. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  5895. return 0;
  5896. switch ((val)->choice) {
  5897. case 1:
  5898. if (!ASN1Enc_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(enc, &(val)->u.predefinedCIELabSpace))
  5899. return 0;
  5900. break;
  5901. case 2:
  5902. if (!ASN1Enc_ColorAccuracyEnhancementCIELab_generalCIELabParameters(enc, &(val)->u.generalCIELabParameters))
  5903. return 0;
  5904. break;
  5905. default:
  5906. /* impossible */
  5907. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5908. return 0;
  5909. }
  5910. return 1;
  5911. }
  5912. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementCIELab(ASN1decoding_t dec, ColorAccuracyEnhancementCIELab *val)
  5913. {
  5914. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  5915. return 0;
  5916. switch ((val)->choice) {
  5917. case 1:
  5918. if (!ASN1Dec_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(dec, &(val)->u.predefinedCIELabSpace))
  5919. return 0;
  5920. break;
  5921. case 2:
  5922. if (!ASN1Dec_ColorAccuracyEnhancementCIELab_generalCIELabParameters(dec, &(val)->u.generalCIELabParameters))
  5923. return 0;
  5924. break;
  5925. case 0:
  5926. /* extension case */
  5927. if (!ASN1PERDecSkipFragmented(dec, 8))
  5928. return 0;
  5929. break;
  5930. default:
  5931. /* impossible */
  5932. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5933. return 0;
  5934. }
  5935. return 1;
  5936. }
  5937. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementCIELab(ColorAccuracyEnhancementCIELab *val)
  5938. {
  5939. if (val) {
  5940. switch ((val)->choice) {
  5941. case 1:
  5942. ASN1Free_ColorAccuracyEnhancementCIELab_predefinedCIELabSpace(&(val)->u.predefinedCIELabSpace);
  5943. break;
  5944. }
  5945. }
  5946. }
  5947. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementGreyscale(ASN1encoding_t enc, ColorAccuracyEnhancementGreyscale *val)
  5948. {
  5949. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  5950. return 0;
  5951. switch ((val)->choice) {
  5952. case 1:
  5953. if (!ASN1Enc_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(enc, &(val)->u.predefinedGreyscaleSpace))
  5954. return 0;
  5955. break;
  5956. case 2:
  5957. if (!ASN1Enc_ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters(enc, &(val)->u.generalGreyscaleParameters))
  5958. return 0;
  5959. break;
  5960. default:
  5961. /* impossible */
  5962. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  5963. return 0;
  5964. }
  5965. return 1;
  5966. }
  5967. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementGreyscale(ASN1decoding_t dec, ColorAccuracyEnhancementGreyscale *val)
  5968. {
  5969. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  5970. return 0;
  5971. switch ((val)->choice) {
  5972. case 1:
  5973. if (!ASN1Dec_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(dec, &(val)->u.predefinedGreyscaleSpace))
  5974. return 0;
  5975. break;
  5976. case 2:
  5977. if (!ASN1Dec_ColorAccuracyEnhancementGreyscale_generalGreyscaleParameters(dec, &(val)->u.generalGreyscaleParameters))
  5978. return 0;
  5979. break;
  5980. case 0:
  5981. /* extension case */
  5982. if (!ASN1PERDecSkipFragmented(dec, 8))
  5983. return 0;
  5984. break;
  5985. default:
  5986. /* impossible */
  5987. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  5988. return 0;
  5989. }
  5990. return 1;
  5991. }
  5992. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementGreyscale(ColorAccuracyEnhancementGreyscale *val)
  5993. {
  5994. if (val) {
  5995. switch ((val)->choice) {
  5996. case 1:
  5997. ASN1Free_ColorAccuracyEnhancementGreyscale_predefinedGreyscaleSpace(&(val)->u.predefinedGreyscaleSpace);
  5998. break;
  5999. }
  6000. }
  6001. }
  6002. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementRGB(ASN1encoding_t enc, ColorAccuracyEnhancementRGB *val)
  6003. {
  6004. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  6005. return 0;
  6006. switch ((val)->choice) {
  6007. case 1:
  6008. if (!ASN1Enc_ColorAccuracyEnhancementRGB_predefinedRGBSpace(enc, &(val)->u.predefinedRGBSpace))
  6009. return 0;
  6010. break;
  6011. case 2:
  6012. if (!ASN1Enc_ColorAccuracyEnhancementRGB_generalRGBParameters(enc, &(val)->u.generalRGBParameters))
  6013. return 0;
  6014. break;
  6015. default:
  6016. /* impossible */
  6017. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6018. return 0;
  6019. }
  6020. return 1;
  6021. }
  6022. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementRGB(ASN1decoding_t dec, ColorAccuracyEnhancementRGB *val)
  6023. {
  6024. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  6025. return 0;
  6026. switch ((val)->choice) {
  6027. case 1:
  6028. if (!ASN1Dec_ColorAccuracyEnhancementRGB_predefinedRGBSpace(dec, &(val)->u.predefinedRGBSpace))
  6029. return 0;
  6030. break;
  6031. case 2:
  6032. if (!ASN1Dec_ColorAccuracyEnhancementRGB_generalRGBParameters(dec, &(val)->u.generalRGBParameters))
  6033. return 0;
  6034. break;
  6035. case 0:
  6036. /* extension case */
  6037. if (!ASN1PERDecSkipFragmented(dec, 8))
  6038. return 0;
  6039. break;
  6040. default:
  6041. /* impossible */
  6042. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6043. return 0;
  6044. }
  6045. return 1;
  6046. }
  6047. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementRGB(ColorAccuracyEnhancementRGB *val)
  6048. {
  6049. if (val) {
  6050. switch ((val)->choice) {
  6051. case 1:
  6052. ASN1Free_ColorAccuracyEnhancementRGB_predefinedRGBSpace(&(val)->u.predefinedRGBSpace);
  6053. break;
  6054. }
  6055. }
  6056. }
  6057. static int ASN1CALL ASN1Enc_ColorAccuracyEnhancementYCbCr(ASN1encoding_t enc, ColorAccuracyEnhancementYCbCr *val)
  6058. {
  6059. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  6060. return 0;
  6061. switch ((val)->choice) {
  6062. case 1:
  6063. if (!ASN1Enc_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(enc, &(val)->u.predefinedYCbCrSpace))
  6064. return 0;
  6065. break;
  6066. case 2:
  6067. if (!ASN1Enc_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters(enc, &(val)->u.generalYCbCrParameters))
  6068. return 0;
  6069. break;
  6070. default:
  6071. /* impossible */
  6072. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6073. return 0;
  6074. }
  6075. return 1;
  6076. }
  6077. static int ASN1CALL ASN1Dec_ColorAccuracyEnhancementYCbCr(ASN1decoding_t dec, ColorAccuracyEnhancementYCbCr *val)
  6078. {
  6079. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  6080. return 0;
  6081. switch ((val)->choice) {
  6082. case 1:
  6083. if (!ASN1Dec_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(dec, &(val)->u.predefinedYCbCrSpace))
  6084. return 0;
  6085. break;
  6086. case 2:
  6087. if (!ASN1Dec_ColorAccuracyEnhancementYCbCr_generalYCbCrParameters(dec, &(val)->u.generalYCbCrParameters))
  6088. return 0;
  6089. break;
  6090. case 0:
  6091. /* extension case */
  6092. if (!ASN1PERDecSkipFragmented(dec, 8))
  6093. return 0;
  6094. break;
  6095. default:
  6096. /* impossible */
  6097. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6098. return 0;
  6099. }
  6100. return 1;
  6101. }
  6102. static void ASN1CALL ASN1Free_ColorAccuracyEnhancementYCbCr(ColorAccuracyEnhancementYCbCr *val)
  6103. {
  6104. if (val) {
  6105. switch ((val)->choice) {
  6106. case 1:
  6107. ASN1Free_ColorAccuracyEnhancementYCbCr_predefinedYCbCrSpace(&(val)->u.predefinedYCbCrSpace);
  6108. break;
  6109. }
  6110. }
  6111. }
  6112. static int ASN1CALL ASN1Enc_ColorResolutionModeSpecifier(ASN1encoding_t enc, ColorResolutionModeSpecifier *val)
  6113. {
  6114. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  6115. return 0;
  6116. switch ((val)->choice) {
  6117. case 1:
  6118. break;
  6119. case 2:
  6120. break;
  6121. case 3:
  6122. break;
  6123. case 4:
  6124. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardResolutionMode))
  6125. return 0;
  6126. break;
  6127. default:
  6128. /* impossible */
  6129. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6130. return 0;
  6131. }
  6132. return 1;
  6133. }
  6134. static int ASN1CALL ASN1Dec_ColorResolutionModeSpecifier(ASN1decoding_t dec, ColorResolutionModeSpecifier *val)
  6135. {
  6136. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  6137. return 0;
  6138. switch ((val)->choice) {
  6139. case 1:
  6140. break;
  6141. case 2:
  6142. break;
  6143. case 3:
  6144. break;
  6145. case 4:
  6146. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardResolutionMode))
  6147. return 0;
  6148. break;
  6149. case 0:
  6150. /* extension case */
  6151. if (!ASN1PERDecSkipFragmented(dec, 8))
  6152. return 0;
  6153. break;
  6154. default:
  6155. /* impossible */
  6156. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6157. return 0;
  6158. }
  6159. return 1;
  6160. }
  6161. static void ASN1CALL ASN1Free_ColorResolutionModeSpecifier(ColorResolutionModeSpecifier *val)
  6162. {
  6163. if (val) {
  6164. switch ((val)->choice) {
  6165. case 4:
  6166. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardResolutionMode);
  6167. break;
  6168. }
  6169. }
  6170. }
  6171. static int ASN1CALL ASN1Enc_ConductorPrivilege(ASN1encoding_t enc, ConductorPrivilege *val)
  6172. {
  6173. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 4))
  6174. return 0;
  6175. switch ((val)->choice) {
  6176. case 1:
  6177. break;
  6178. case 2:
  6179. break;
  6180. case 3:
  6181. break;
  6182. case 4:
  6183. break;
  6184. case 5:
  6185. break;
  6186. case 6:
  6187. break;
  6188. case 7:
  6189. break;
  6190. case 8:
  6191. break;
  6192. case 9:
  6193. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardPrivilege))
  6194. return 0;
  6195. break;
  6196. default:
  6197. /* impossible */
  6198. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6199. return 0;
  6200. }
  6201. return 1;
  6202. }
  6203. static int ASN1CALL ASN1Dec_ConductorPrivilege(ASN1decoding_t dec, ConductorPrivilege *val)
  6204. {
  6205. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 4))
  6206. return 0;
  6207. switch ((val)->choice) {
  6208. case 1:
  6209. break;
  6210. case 2:
  6211. break;
  6212. case 3:
  6213. break;
  6214. case 4:
  6215. break;
  6216. case 5:
  6217. break;
  6218. case 6:
  6219. break;
  6220. case 7:
  6221. break;
  6222. case 8:
  6223. break;
  6224. case 9:
  6225. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardPrivilege))
  6226. return 0;
  6227. break;
  6228. case 0:
  6229. /* extension case */
  6230. if (!ASN1PERDecSkipFragmented(dec, 8))
  6231. return 0;
  6232. break;
  6233. default:
  6234. /* impossible */
  6235. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6236. return 0;
  6237. }
  6238. return 1;
  6239. }
  6240. static void ASN1CALL ASN1Free_ConductorPrivilege(ConductorPrivilege *val)
  6241. {
  6242. if (val) {
  6243. switch ((val)->choice) {
  6244. case 9:
  6245. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardPrivilege);
  6246. break;
  6247. }
  6248. }
  6249. }
  6250. static int ASN1CALL ASN1Enc_DrawingDestinationAddress(ASN1encoding_t enc, DrawingDestinationAddress *val)
  6251. {
  6252. ASN1encoding_t ee;
  6253. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 0, 1))
  6254. return 0;
  6255. switch ((val)->choice) {
  6256. case 1:
  6257. if (!ASN1Enc_SoftCopyDataPlaneAddress(enc, &(val)->u.softCopyAnnotationPlane))
  6258. return 0;
  6259. break;
  6260. case 2:
  6261. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6262. return 0;
  6263. if (!ASN1Enc_NonStandardParameter(ee, &(val)->u.nonStandardDestination))
  6264. return 0;
  6265. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6266. return 0;
  6267. ASN1_CloseEncoder2(ee);
  6268. break;
  6269. default:
  6270. /* impossible */
  6271. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6272. return 0;
  6273. }
  6274. return 1;
  6275. }
  6276. static int ASN1CALL ASN1Dec_DrawingDestinationAddress(ASN1decoding_t dec, DrawingDestinationAddress *val)
  6277. {
  6278. ASN1decoding_t dd;
  6279. ASN1octet_t *db;
  6280. ASN1uint32_t ds;
  6281. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 0, 1))
  6282. return 0;
  6283. switch ((val)->choice) {
  6284. case 1:
  6285. if (!ASN1Dec_SoftCopyDataPlaneAddress(dec, &(val)->u.softCopyAnnotationPlane))
  6286. return 0;
  6287. break;
  6288. case 2:
  6289. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6290. return 0;
  6291. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6292. return 0;
  6293. if (!ASN1Dec_NonStandardParameter(dd, &(val)->u.nonStandardDestination))
  6294. return 0;
  6295. ASN1_CloseDecoder(dd);
  6296. ASN1Free(db);
  6297. break;
  6298. case 0:
  6299. /* extension case */
  6300. if (!ASN1PERDecSkipFragmented(dec, 8))
  6301. return 0;
  6302. break;
  6303. default:
  6304. /* impossible */
  6305. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6306. return 0;
  6307. }
  6308. return 1;
  6309. }
  6310. static void ASN1CALL ASN1Free_DrawingDestinationAddress(DrawingDestinationAddress *val)
  6311. {
  6312. if (val) {
  6313. switch ((val)->choice) {
  6314. case 2:
  6315. ASN1Free_NonStandardParameter(&(val)->u.nonStandardDestination);
  6316. break;
  6317. }
  6318. }
  6319. }
  6320. static int ASN1CALL ASN1Enc_DrawingType(ASN1encoding_t enc, DrawingType *val)
  6321. {
  6322. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  6323. return 0;
  6324. switch ((val)->choice) {
  6325. case 1:
  6326. break;
  6327. case 2:
  6328. break;
  6329. case 3:
  6330. break;
  6331. case 4:
  6332. break;
  6333. case 5:
  6334. break;
  6335. case 6:
  6336. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardDrawingType))
  6337. return 0;
  6338. break;
  6339. default:
  6340. /* impossible */
  6341. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6342. return 0;
  6343. }
  6344. return 1;
  6345. }
  6346. static int ASN1CALL ASN1Dec_DrawingType(ASN1decoding_t dec, DrawingType *val)
  6347. {
  6348. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  6349. return 0;
  6350. switch ((val)->choice) {
  6351. case 1:
  6352. break;
  6353. case 2:
  6354. break;
  6355. case 3:
  6356. break;
  6357. case 4:
  6358. break;
  6359. case 5:
  6360. break;
  6361. case 6:
  6362. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardDrawingType))
  6363. return 0;
  6364. break;
  6365. case 0:
  6366. /* extension case */
  6367. if (!ASN1PERDecSkipFragmented(dec, 8))
  6368. return 0;
  6369. break;
  6370. default:
  6371. /* impossible */
  6372. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6373. return 0;
  6374. }
  6375. return 1;
  6376. }
  6377. static void ASN1CALL ASN1Free_DrawingType(DrawingType *val)
  6378. {
  6379. if (val) {
  6380. switch ((val)->choice) {
  6381. case 6:
  6382. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardDrawingType);
  6383. break;
  6384. }
  6385. }
  6386. }
  6387. static int ASN1CALL ASN1Enc_EditablePlaneCopyDescriptor(ASN1encoding_t enc, EditablePlaneCopyDescriptor *val)
  6388. {
  6389. if (!ASN1PEREncExtensionBitClear(enc))
  6390. return 0;
  6391. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6392. return 0;
  6393. if (!ASN1Enc_EditablePlaneCopyDescriptor_objectList(enc, &(val)->objectList))
  6394. return 0;
  6395. if ((val)->o[0] & 0x80) {
  6396. if (!ASN1Enc_PointDiff16(enc, &(val)->destinationOffset))
  6397. return 0;
  6398. }
  6399. if (!ASN1PEREncBoolean(enc, (val)->planeClearFlag))
  6400. return 0;
  6401. return 1;
  6402. }
  6403. static int ASN1CALL ASN1Dec_EditablePlaneCopyDescriptor(ASN1decoding_t dec, EditablePlaneCopyDescriptor *val)
  6404. {
  6405. ASN1uint32_t y;
  6406. if (!ASN1PERDecExtensionBit(dec, &y))
  6407. return 0;
  6408. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6409. return 0;
  6410. if (!ASN1Dec_EditablePlaneCopyDescriptor_objectList(dec, &(val)->objectList))
  6411. return 0;
  6412. if ((val)->o[0] & 0x80) {
  6413. if (!ASN1Dec_PointDiff16(dec, &(val)->destinationOffset))
  6414. return 0;
  6415. }
  6416. if (!ASN1PERDecBoolean(dec, &(val)->planeClearFlag))
  6417. return 0;
  6418. if (y) {
  6419. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  6420. return 0;
  6421. }
  6422. return 1;
  6423. }
  6424. static void ASN1CALL ASN1Free_EditablePlaneCopyDescriptor(EditablePlaneCopyDescriptor *val)
  6425. {
  6426. if (val) {
  6427. ASN1Free_EditablePlaneCopyDescriptor_objectList(&(val)->objectList);
  6428. }
  6429. }
  6430. static int ASN1CALL ASN1Enc_KeyModifier(ASN1encoding_t enc, KeyModifier *val)
  6431. {
  6432. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 4))
  6433. return 0;
  6434. switch ((val)->choice) {
  6435. case 1:
  6436. break;
  6437. case 2:
  6438. break;
  6439. case 3:
  6440. break;
  6441. case 4:
  6442. break;
  6443. case 5:
  6444. break;
  6445. case 6:
  6446. break;
  6447. case 7:
  6448. break;
  6449. case 8:
  6450. break;
  6451. case 9:
  6452. break;
  6453. case 10:
  6454. break;
  6455. case 11:
  6456. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardModifier))
  6457. return 0;
  6458. break;
  6459. default:
  6460. /* impossible */
  6461. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6462. return 0;
  6463. }
  6464. return 1;
  6465. }
  6466. static int ASN1CALL ASN1Dec_KeyModifier(ASN1decoding_t dec, KeyModifier *val)
  6467. {
  6468. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 4))
  6469. return 0;
  6470. switch ((val)->choice) {
  6471. case 1:
  6472. break;
  6473. case 2:
  6474. break;
  6475. case 3:
  6476. break;
  6477. case 4:
  6478. break;
  6479. case 5:
  6480. break;
  6481. case 6:
  6482. break;
  6483. case 7:
  6484. break;
  6485. case 8:
  6486. break;
  6487. case 9:
  6488. break;
  6489. case 10:
  6490. break;
  6491. case 11:
  6492. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardModifier))
  6493. return 0;
  6494. break;
  6495. case 0:
  6496. /* extension case */
  6497. if (!ASN1PERDecSkipFragmented(dec, 8))
  6498. return 0;
  6499. break;
  6500. default:
  6501. /* impossible */
  6502. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6503. return 0;
  6504. }
  6505. return 1;
  6506. }
  6507. static void ASN1CALL ASN1Free_KeyModifier(KeyModifier *val)
  6508. {
  6509. if (val) {
  6510. switch ((val)->choice) {
  6511. case 11:
  6512. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardModifier);
  6513. break;
  6514. }
  6515. }
  6516. }
  6517. static int ASN1CALL ASN1Enc_LineStyle(ASN1encoding_t enc, LineStyle *val)
  6518. {
  6519. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  6520. return 0;
  6521. switch ((val)->choice) {
  6522. case 1:
  6523. break;
  6524. case 2:
  6525. break;
  6526. case 3:
  6527. break;
  6528. case 4:
  6529. break;
  6530. case 5:
  6531. break;
  6532. case 6:
  6533. break;
  6534. case 7:
  6535. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardStyle))
  6536. return 0;
  6537. break;
  6538. default:
  6539. /* impossible */
  6540. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6541. return 0;
  6542. }
  6543. return 1;
  6544. }
  6545. static int ASN1CALL ASN1Dec_LineStyle(ASN1decoding_t dec, LineStyle *val)
  6546. {
  6547. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  6548. return 0;
  6549. switch ((val)->choice) {
  6550. case 1:
  6551. break;
  6552. case 2:
  6553. break;
  6554. case 3:
  6555. break;
  6556. case 4:
  6557. break;
  6558. case 5:
  6559. break;
  6560. case 6:
  6561. break;
  6562. case 7:
  6563. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardStyle))
  6564. return 0;
  6565. break;
  6566. case 0:
  6567. /* extension case */
  6568. if (!ASN1PERDecSkipFragmented(dec, 8))
  6569. return 0;
  6570. break;
  6571. default:
  6572. /* impossible */
  6573. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6574. return 0;
  6575. }
  6576. return 1;
  6577. }
  6578. static void ASN1CALL ASN1Free_LineStyle(LineStyle *val)
  6579. {
  6580. if (val) {
  6581. switch ((val)->choice) {
  6582. case 7:
  6583. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardStyle);
  6584. break;
  6585. }
  6586. }
  6587. }
  6588. static int ASN1CALL ASN1Enc_PermanentPlaneCopyDescriptor(ASN1encoding_t enc, PermanentPlaneCopyDescriptor *val)
  6589. {
  6590. if (!ASN1PEREncExtensionBitClear(enc))
  6591. return 0;
  6592. if (!ASN1Enc_WorkspaceRegion(enc, &(val)->sourceRegion))
  6593. return 0;
  6594. if (!ASN1Enc_WorkspaceRegion(enc, &(val)->destinationRegion))
  6595. return 0;
  6596. return 1;
  6597. }
  6598. static int ASN1CALL ASN1Dec_PermanentPlaneCopyDescriptor(ASN1decoding_t dec, PermanentPlaneCopyDescriptor *val)
  6599. {
  6600. ASN1uint32_t y;
  6601. if (!ASN1PERDecExtensionBit(dec, &y))
  6602. return 0;
  6603. if (!ASN1Dec_WorkspaceRegion(dec, &(val)->sourceRegion))
  6604. return 0;
  6605. if (!ASN1Dec_WorkspaceRegion(dec, &(val)->destinationRegion))
  6606. return 0;
  6607. if (y) {
  6608. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  6609. return 0;
  6610. }
  6611. return 1;
  6612. }
  6613. static int ASN1CALL ASN1Enc_PlaneAttribute(ASN1encoding_t enc, PlaneAttribute *val)
  6614. {
  6615. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  6616. return 0;
  6617. switch ((val)->choice) {
  6618. case 1:
  6619. if (!ASN1Enc_PlaneProtection(enc, &(val)->u.protection))
  6620. return 0;
  6621. break;
  6622. case 2:
  6623. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardAttribute))
  6624. return 0;
  6625. break;
  6626. default:
  6627. /* impossible */
  6628. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6629. return 0;
  6630. }
  6631. return 1;
  6632. }
  6633. static int ASN1CALL ASN1Dec_PlaneAttribute(ASN1decoding_t dec, PlaneAttribute *val)
  6634. {
  6635. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  6636. return 0;
  6637. switch ((val)->choice) {
  6638. case 1:
  6639. if (!ASN1Dec_PlaneProtection(dec, &(val)->u.protection))
  6640. return 0;
  6641. break;
  6642. case 2:
  6643. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardAttribute))
  6644. return 0;
  6645. break;
  6646. case 0:
  6647. /* extension case */
  6648. if (!ASN1PERDecSkipFragmented(dec, 8))
  6649. return 0;
  6650. break;
  6651. default:
  6652. /* impossible */
  6653. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6654. return 0;
  6655. }
  6656. return 1;
  6657. }
  6658. static void ASN1CALL ASN1Free_PlaneAttribute(PlaneAttribute *val)
  6659. {
  6660. if (val) {
  6661. switch ((val)->choice) {
  6662. case 2:
  6663. ASN1Free_NonStandardParameter(&(val)->u.nonStandardAttribute);
  6664. break;
  6665. }
  6666. }
  6667. }
  6668. static int ASN1CALL ASN1Enc_PointListEdits(ASN1encoding_t enc, PointListEdits *val)
  6669. {
  6670. ASN1uint32_t i;
  6671. if (!ASN1PEREncBitVal(enc, 8, (val)->count - 1))
  6672. return 0;
  6673. for (i = 0; i < (val)->count; i++) {
  6674. if (!ASN1Enc_PointListEdits_Seq(enc, &((val)->value)[i]))
  6675. return 0;
  6676. }
  6677. return 1;
  6678. }
  6679. static int ASN1CALL ASN1Dec_PointListEdits(ASN1decoding_t dec, PointListEdits *val)
  6680. {
  6681. ASN1uint32_t i;
  6682. if (!ASN1PERDecU32Val(dec, 8, &(val)->count))
  6683. return 0;
  6684. (val)->count += 1;
  6685. for (i = 0; i < (val)->count; i++) {
  6686. if (!ASN1Dec_PointListEdits_Seq(dec, &((val)->value)[i]))
  6687. return 0;
  6688. }
  6689. return 1;
  6690. }
  6691. static void ASN1CALL ASN1Free_PointListEdits(PointListEdits *val)
  6692. {
  6693. ASN1uint32_t i;
  6694. if (val) {
  6695. for (i = 0; i < (val)->count; i++) {
  6696. ASN1Free_PointListEdits_Seq(&(val)->value[i]);
  6697. }
  6698. }
  6699. }
  6700. static int ASN1CALL ASN1Enc_TransparencyMask(ASN1encoding_t enc, TransparencyMask *val)
  6701. {
  6702. if (!ASN1PEREncExtensionBitClear(enc))
  6703. return 0;
  6704. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6705. return 0;
  6706. if (!ASN1Enc_TransparencyMask_bitMask(enc, &(val)->bitMask))
  6707. return 0;
  6708. if ((val)->o[0] & 0x80) {
  6709. if (!ASN1Enc_TransparencyMask_nonStandardParameters(enc, &(val)->nonStandardParameters))
  6710. return 0;
  6711. }
  6712. return 1;
  6713. }
  6714. static int ASN1CALL ASN1Dec_TransparencyMask(ASN1decoding_t dec, TransparencyMask *val)
  6715. {
  6716. ASN1uint32_t y;
  6717. if (!ASN1PERDecExtensionBit(dec, &y))
  6718. return 0;
  6719. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6720. return 0;
  6721. if (!ASN1Dec_TransparencyMask_bitMask(dec, &(val)->bitMask))
  6722. return 0;
  6723. if ((val)->o[0] & 0x80) {
  6724. if (!ASN1Dec_TransparencyMask_nonStandardParameters(dec, &(val)->nonStandardParameters))
  6725. return 0;
  6726. }
  6727. if (y) {
  6728. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  6729. return 0;
  6730. }
  6731. return 1;
  6732. }
  6733. static void ASN1CALL ASN1Free_TransparencyMask(TransparencyMask *val)
  6734. {
  6735. if (val) {
  6736. ASN1Free_TransparencyMask_bitMask(&(val)->bitMask);
  6737. if ((val)->o[0] & 0x80) {
  6738. ASN1Free_TransparencyMask_nonStandardParameters(&(val)->nonStandardParameters);
  6739. }
  6740. }
  6741. }
  6742. static int ASN1CALL ASN1Enc_WorkspaceAttribute(ASN1encoding_t enc, WorkspaceAttribute *val)
  6743. {
  6744. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  6745. return 0;
  6746. switch ((val)->choice) {
  6747. case 1:
  6748. if (!ASN1Enc_WorkspaceColor(enc, &(val)->u.backgroundColor))
  6749. return 0;
  6750. break;
  6751. case 2:
  6752. if (!ASN1PEREncBoolean(enc, (val)->u.preserve))
  6753. return 0;
  6754. break;
  6755. case 3:
  6756. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardAttribute))
  6757. return 0;
  6758. break;
  6759. default:
  6760. /* impossible */
  6761. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6762. return 0;
  6763. }
  6764. return 1;
  6765. }
  6766. static int ASN1CALL ASN1Dec_WorkspaceAttribute(ASN1decoding_t dec, WorkspaceAttribute *val)
  6767. {
  6768. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  6769. return 0;
  6770. switch ((val)->choice) {
  6771. case 1:
  6772. if (!ASN1Dec_WorkspaceColor(dec, &(val)->u.backgroundColor))
  6773. return 0;
  6774. break;
  6775. case 2:
  6776. if (!ASN1PERDecBoolean(dec, &(val)->u.preserve))
  6777. return 0;
  6778. break;
  6779. case 3:
  6780. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardAttribute))
  6781. return 0;
  6782. break;
  6783. case 0:
  6784. /* extension case */
  6785. if (!ASN1PERDecSkipFragmented(dec, 8))
  6786. return 0;
  6787. break;
  6788. default:
  6789. /* impossible */
  6790. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6791. return 0;
  6792. }
  6793. return 1;
  6794. }
  6795. static void ASN1CALL ASN1Free_WorkspaceAttribute(WorkspaceAttribute *val)
  6796. {
  6797. if (val) {
  6798. switch ((val)->choice) {
  6799. case 3:
  6800. ASN1Free_NonStandardParameter(&(val)->u.nonStandardAttribute);
  6801. break;
  6802. }
  6803. }
  6804. }
  6805. static int ASN1CALL ASN1Enc_WorkspaceViewAttribute(ASN1encoding_t enc, WorkspaceViewAttribute *val)
  6806. {
  6807. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  6808. return 0;
  6809. switch ((val)->choice) {
  6810. case 1:
  6811. if (!ASN1Enc_WorkspaceViewAttribute_viewRegion(enc, &(val)->u.viewRegion))
  6812. return 0;
  6813. break;
  6814. case 2:
  6815. if (!ASN1Enc_WorkspaceViewState(enc, &(val)->u.viewState))
  6816. return 0;
  6817. break;
  6818. case 3:
  6819. if (!ASN1PEREncBoolean(enc, (val)->u.updatesEnabled))
  6820. return 0;
  6821. break;
  6822. case 4:
  6823. if (!ASN1Enc_SourceDisplayIndicator(enc, &(val)->u.sourceDisplayIndicator))
  6824. return 0;
  6825. break;
  6826. case 5:
  6827. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardAttribute))
  6828. return 0;
  6829. break;
  6830. default:
  6831. /* impossible */
  6832. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  6833. return 0;
  6834. }
  6835. return 1;
  6836. }
  6837. static int ASN1CALL ASN1Dec_WorkspaceViewAttribute(ASN1decoding_t dec, WorkspaceViewAttribute *val)
  6838. {
  6839. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  6840. return 0;
  6841. switch ((val)->choice) {
  6842. case 1:
  6843. if (!ASN1Dec_WorkspaceViewAttribute_viewRegion(dec, &(val)->u.viewRegion))
  6844. return 0;
  6845. break;
  6846. case 2:
  6847. if (!ASN1Dec_WorkspaceViewState(dec, &(val)->u.viewState))
  6848. return 0;
  6849. break;
  6850. case 3:
  6851. if (!ASN1PERDecBoolean(dec, &(val)->u.updatesEnabled))
  6852. return 0;
  6853. break;
  6854. case 4:
  6855. if (!ASN1Dec_SourceDisplayIndicator(dec, &(val)->u.sourceDisplayIndicator))
  6856. return 0;
  6857. break;
  6858. case 5:
  6859. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardAttribute))
  6860. return 0;
  6861. break;
  6862. case 0:
  6863. /* extension case */
  6864. if (!ASN1PERDecSkipFragmented(dec, 8))
  6865. return 0;
  6866. break;
  6867. default:
  6868. /* impossible */
  6869. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  6870. return 0;
  6871. }
  6872. return 1;
  6873. }
  6874. static void ASN1CALL ASN1Free_WorkspaceViewAttribute(WorkspaceViewAttribute *val)
  6875. {
  6876. if (val) {
  6877. switch ((val)->choice) {
  6878. case 2:
  6879. ASN1Free_WorkspaceViewState(&(val)->u.viewState);
  6880. break;
  6881. case 5:
  6882. ASN1Free_NonStandardParameter(&(val)->u.nonStandardAttribute);
  6883. break;
  6884. }
  6885. }
  6886. }
  6887. static int ASN1CALL ASN1Enc_BitmapAbortPDU(ASN1encoding_t enc, BitmapAbortPDU *val)
  6888. {
  6889. ASN1uint32_t l;
  6890. if (!ASN1PEREncExtensionBitClear(enc))
  6891. return 0;
  6892. if (!ASN1PEREncBits(enc, 4, (val)->o))
  6893. return 0;
  6894. l = ASN1uint32_uoctets((val)->bitmapHandle);
  6895. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6896. return 0;
  6897. ASN1PEREncAlignment(enc);
  6898. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bitmapHandle))
  6899. return 0;
  6900. if ((val)->o[0] & 0x80) {
  6901. if (!ASN1PEREncUnsignedShort(enc, (val)->userID - 1001))
  6902. return 0;
  6903. }
  6904. if ((val)->o[0] & 0x40) {
  6905. if (!ASN1Enc_BitmapAbortReason(enc, &(val)->reason))
  6906. return 0;
  6907. }
  6908. if ((val)->o[0] & 0x20) {
  6909. ASN1PEREncAlignment(enc);
  6910. if (!ASN1PEREncBitVal(enc, 8, ((val)->message).length - 1))
  6911. return 0;
  6912. if (!ASN1PEREncChar16String(enc, ((val)->message).length, ((val)->message).value, 16))
  6913. return 0;
  6914. }
  6915. if ((val)->o[0] & 0x10) {
  6916. if (!ASN1Enc_BitmapAbortPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  6917. return 0;
  6918. }
  6919. return 1;
  6920. }
  6921. static int ASN1CALL ASN1Dec_BitmapAbortPDU(ASN1decoding_t dec, BitmapAbortPDU *val)
  6922. {
  6923. ASN1uint32_t y;
  6924. ASN1uint32_t l;
  6925. if (!ASN1PERDecExtensionBit(dec, &y))
  6926. return 0;
  6927. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  6928. return 0;
  6929. if (!ASN1PERDecU32Val(dec, 2, &l))
  6930. return 0;
  6931. l += 1;
  6932. ASN1PERDecAlignment(dec);
  6933. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bitmapHandle))
  6934. return 0;
  6935. if ((val)->o[0] & 0x80) {
  6936. if (!ASN1PERDecUnsignedShort(dec, &(val)->userID))
  6937. return 0;
  6938. (val)->userID += 1001;
  6939. }
  6940. if ((val)->o[0] & 0x40) {
  6941. if (!ASN1Dec_BitmapAbortReason(dec, &(val)->reason))
  6942. return 0;
  6943. }
  6944. if ((val)->o[0] & 0x20) {
  6945. ASN1PERDecAlignment(dec);
  6946. if (!ASN1PERDecU32Val(dec, 8, &((val)->message).length))
  6947. return 0;
  6948. ((val)->message).length += 1;
  6949. if (!ASN1PERDecChar16String(dec, ((val)->message).length, &((val)->message).value, 16))
  6950. return 0;
  6951. }
  6952. if ((val)->o[0] & 0x10) {
  6953. if (!ASN1Dec_BitmapAbortPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  6954. return 0;
  6955. }
  6956. if (y) {
  6957. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  6958. return 0;
  6959. }
  6960. return 1;
  6961. }
  6962. static void ASN1CALL ASN1Free_BitmapAbortPDU(BitmapAbortPDU *val)
  6963. {
  6964. if (val) {
  6965. if ((val)->o[0] & 0x40) {
  6966. ASN1Free_BitmapAbortReason(&(val)->reason);
  6967. }
  6968. if ((val)->o[0] & 0x20) {
  6969. ASN1char16string_free(&(val)->message);
  6970. }
  6971. if ((val)->o[0] & 0x10) {
  6972. ASN1Free_BitmapAbortPDU_nonStandardParameters(&(val)->nonStandardParameters);
  6973. }
  6974. }
  6975. }
  6976. static int ASN1CALL ASN1Enc_DrawingCreatePDU(ASN1encoding_t enc, DrawingCreatePDU *val)
  6977. {
  6978. ASN1uint32_t l;
  6979. if (!ASN1PEREncExtensionBitClear(enc))
  6980. return 0;
  6981. if (!ASN1PEREncBits(enc, 5, (val)->o))
  6982. return 0;
  6983. if ((val)->o[0] & 0x80) {
  6984. l = ASN1uint32_uoctets((val)->drawingHandle);
  6985. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6986. return 0;
  6987. ASN1PEREncAlignment(enc);
  6988. if (!ASN1PEREncBitVal(enc, l * 8, (val)->drawingHandle))
  6989. return 0;
  6990. }
  6991. if (!ASN1Enc_DrawingDestinationAddress(enc, &(val)->destinationAddress))
  6992. return 0;
  6993. if (!ASN1Enc_DrawingType(enc, &(val)->drawingType))
  6994. return 0;
  6995. if ((val)->o[0] & 0x40) {
  6996. if (!ASN1Enc_DrawingCreatePDU_attributes(enc, &(val)->attributes))
  6997. return 0;
  6998. }
  6999. if (!ASN1Enc_WorkspacePoint(enc, &(val)->anchorPoint))
  7000. return 0;
  7001. if ((val)->o[0] & 0x20) {
  7002. if (!ASN1Enc_RotationSpecifier(enc, &(val)->rotation))
  7003. return 0;
  7004. }
  7005. if ((val)->o[0] & 0x10) {
  7006. if (!ASN1PEREncBitVal(enc, 8, (val)->sampleRate - 1))
  7007. return 0;
  7008. }
  7009. if (!ASN1Enc_PointList(enc, &(val)->pointList))
  7010. return 0;
  7011. if ((val)->o[0] & 0x8) {
  7012. if (!ASN1Enc_DrawingCreatePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  7013. return 0;
  7014. }
  7015. return 1;
  7016. }
  7017. static int ASN1CALL ASN1Dec_DrawingCreatePDU(ASN1decoding_t dec, DrawingCreatePDU *val)
  7018. {
  7019. ASN1uint32_t y;
  7020. ASN1uint32_t l;
  7021. if (!ASN1PERDecExtensionBit(dec, &y))
  7022. return 0;
  7023. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  7024. return 0;
  7025. if ((val)->o[0] & 0x80) {
  7026. if (!ASN1PERDecU32Val(dec, 2, &l))
  7027. return 0;
  7028. l += 1;
  7029. ASN1PERDecAlignment(dec);
  7030. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->drawingHandle))
  7031. return 0;
  7032. }
  7033. if (!ASN1Dec_DrawingDestinationAddress(dec, &(val)->destinationAddress))
  7034. return 0;
  7035. if (!ASN1Dec_DrawingType(dec, &(val)->drawingType))
  7036. return 0;
  7037. if ((val)->o[0] & 0x40) {
  7038. if (!ASN1Dec_DrawingCreatePDU_attributes(dec, &(val)->attributes))
  7039. return 0;
  7040. }
  7041. if (!ASN1Dec_WorkspacePoint(dec, &(val)->anchorPoint))
  7042. return 0;
  7043. if ((val)->o[0] & 0x20) {
  7044. if (!ASN1Dec_RotationSpecifier(dec, &(val)->rotation))
  7045. return 0;
  7046. }
  7047. if ((val)->o[0] & 0x10) {
  7048. if (!ASN1PERDecU16Val(dec, 8, &(val)->sampleRate))
  7049. return 0;
  7050. (val)->sampleRate += 1;
  7051. }
  7052. if (!ASN1Dec_PointList(dec, &(val)->pointList))
  7053. return 0;
  7054. if ((val)->o[0] & 0x8) {
  7055. if (!ASN1Dec_DrawingCreatePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  7056. return 0;
  7057. }
  7058. if (y) {
  7059. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7060. return 0;
  7061. }
  7062. return 1;
  7063. }
  7064. static void ASN1CALL ASN1Free_DrawingCreatePDU(DrawingCreatePDU *val)
  7065. {
  7066. if (val) {
  7067. ASN1Free_DrawingDestinationAddress(&(val)->destinationAddress);
  7068. ASN1Free_DrawingType(&(val)->drawingType);
  7069. if ((val)->o[0] & 0x40) {
  7070. ASN1Free_DrawingCreatePDU_attributes(&(val)->attributes);
  7071. }
  7072. ASN1Free_PointList(&(val)->pointList);
  7073. if ((val)->o[0] & 0x8) {
  7074. ASN1Free_DrawingCreatePDU_nonStandardParameters(&(val)->nonStandardParameters);
  7075. }
  7076. }
  7077. }
  7078. static int ASN1CALL ASN1Enc_DrawingEditPDU(ASN1encoding_t enc, DrawingEditPDU *val)
  7079. {
  7080. ASN1uint32_t l;
  7081. if (!ASN1PEREncExtensionBitClear(enc))
  7082. return 0;
  7083. if (!ASN1PEREncBits(enc, 5, (val)->o))
  7084. return 0;
  7085. l = ASN1uint32_uoctets((val)->drawingHandle);
  7086. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  7087. return 0;
  7088. ASN1PEREncAlignment(enc);
  7089. if (!ASN1PEREncBitVal(enc, l * 8, (val)->drawingHandle))
  7090. return 0;
  7091. if ((val)->o[0] & 0x80) {
  7092. if (!ASN1Enc_DrawingEditPDU_attributeEdits(enc, &(val)->attributeEdits))
  7093. return 0;
  7094. }
  7095. if ((val)->o[0] & 0x40) {
  7096. if (!ASN1Enc_WorkspacePoint(enc, &(val)->anchorPointEdit))
  7097. return 0;
  7098. }
  7099. if ((val)->o[0] & 0x20) {
  7100. if (!ASN1Enc_RotationSpecifier(enc, &(val)->rotationEdit))
  7101. return 0;
  7102. }
  7103. if ((val)->o[0] & 0x10) {
  7104. if (!ASN1Enc_PointListEdits(enc, &(val)->pointListEdits))
  7105. return 0;
  7106. }
  7107. if ((val)->o[0] & 0x8) {
  7108. if (!ASN1Enc_DrawingEditPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  7109. return 0;
  7110. }
  7111. return 1;
  7112. }
  7113. static int ASN1CALL ASN1Dec_DrawingEditPDU(ASN1decoding_t dec, DrawingEditPDU *val)
  7114. {
  7115. ASN1uint32_t y;
  7116. ASN1uint32_t l;
  7117. if (!ASN1PERDecExtensionBit(dec, &y))
  7118. return 0;
  7119. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  7120. return 0;
  7121. if (!ASN1PERDecU32Val(dec, 2, &l))
  7122. return 0;
  7123. l += 1;
  7124. ASN1PERDecAlignment(dec);
  7125. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->drawingHandle))
  7126. return 0;
  7127. if ((val)->o[0] & 0x80) {
  7128. if (!ASN1Dec_DrawingEditPDU_attributeEdits(dec, &(val)->attributeEdits))
  7129. return 0;
  7130. }
  7131. if ((val)->o[0] & 0x40) {
  7132. if (!ASN1Dec_WorkspacePoint(dec, &(val)->anchorPointEdit))
  7133. return 0;
  7134. }
  7135. if ((val)->o[0] & 0x20) {
  7136. if (!ASN1Dec_RotationSpecifier(dec, &(val)->rotationEdit))
  7137. return 0;
  7138. }
  7139. if ((val)->o[0] & 0x10) {
  7140. if (!ASN1Dec_PointListEdits(dec, &(val)->pointListEdits))
  7141. return 0;
  7142. }
  7143. if ((val)->o[0] & 0x8) {
  7144. if (!ASN1Dec_DrawingEditPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  7145. return 0;
  7146. }
  7147. if (y) {
  7148. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7149. return 0;
  7150. }
  7151. return 1;
  7152. }
  7153. static void ASN1CALL ASN1Free_DrawingEditPDU(DrawingEditPDU *val)
  7154. {
  7155. if (val) {
  7156. if ((val)->o[0] & 0x80) {
  7157. ASN1Free_DrawingEditPDU_attributeEdits(&(val)->attributeEdits);
  7158. }
  7159. if ((val)->o[0] & 0x10) {
  7160. ASN1Free_PointListEdits(&(val)->pointListEdits);
  7161. }
  7162. if ((val)->o[0] & 0x8) {
  7163. ASN1Free_DrawingEditPDU_nonStandardParameters(&(val)->nonStandardParameters);
  7164. }
  7165. }
  7166. }
  7167. static int ASN1CALL ASN1Enc_RemotePointingDeviceEventPDU(ASN1encoding_t enc, RemotePointingDeviceEventPDU *val)
  7168. {
  7169. if (!ASN1PEREncExtensionBitClear(enc))
  7170. return 0;
  7171. if (!ASN1PEREncBits(enc, 3, (val)->o))
  7172. return 0;
  7173. if (!ASN1Enc_RemoteEventDestinationAddress(enc, &(val)->destinationAddress))
  7174. return 0;
  7175. if (!ASN1Enc_ButtonEvent(enc, &(val)->leftButtonState))
  7176. return 0;
  7177. if (!ASN1Enc_ButtonEvent(enc, &(val)->middleButtonState))
  7178. return 0;
  7179. if (!ASN1Enc_ButtonEvent(enc, &(val)->rightButtonState))
  7180. return 0;
  7181. if (!ASN1Enc_WorkspacePoint(enc, &(val)->initialPoint))
  7182. return 0;
  7183. if ((val)->o[0] & 0x80) {
  7184. if (!ASN1PEREncBitVal(enc, 8, (val)->sampleRate - 1))
  7185. return 0;
  7186. }
  7187. if ((val)->o[0] & 0x40) {
  7188. if (!ASN1Enc_PointList(enc, &(val)->pointList))
  7189. return 0;
  7190. }
  7191. if ((val)->o[0] & 0x20) {
  7192. if (!ASN1Enc_RemotePointingDeviceEventPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  7193. return 0;
  7194. }
  7195. return 1;
  7196. }
  7197. static int ASN1CALL ASN1Dec_RemotePointingDeviceEventPDU(ASN1decoding_t dec, RemotePointingDeviceEventPDU *val)
  7198. {
  7199. ASN1uint32_t y;
  7200. if (!ASN1PERDecExtensionBit(dec, &y))
  7201. return 0;
  7202. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  7203. return 0;
  7204. if (!ASN1Dec_RemoteEventDestinationAddress(dec, &(val)->destinationAddress))
  7205. return 0;
  7206. if (!ASN1Dec_ButtonEvent(dec, &(val)->leftButtonState))
  7207. return 0;
  7208. if (!ASN1Dec_ButtonEvent(dec, &(val)->middleButtonState))
  7209. return 0;
  7210. if (!ASN1Dec_ButtonEvent(dec, &(val)->rightButtonState))
  7211. return 0;
  7212. if (!ASN1Dec_WorkspacePoint(dec, &(val)->initialPoint))
  7213. return 0;
  7214. if ((val)->o[0] & 0x80) {
  7215. if (!ASN1PERDecU16Val(dec, 8, &(val)->sampleRate))
  7216. return 0;
  7217. (val)->sampleRate += 1;
  7218. }
  7219. if ((val)->o[0] & 0x40) {
  7220. if (!ASN1Dec_PointList(dec, &(val)->pointList))
  7221. return 0;
  7222. }
  7223. if ((val)->o[0] & 0x20) {
  7224. if (!ASN1Dec_RemotePointingDeviceEventPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  7225. return 0;
  7226. }
  7227. if (y) {
  7228. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7229. return 0;
  7230. }
  7231. return 1;
  7232. }
  7233. static void ASN1CALL ASN1Free_RemotePointingDeviceEventPDU(RemotePointingDeviceEventPDU *val)
  7234. {
  7235. if (val) {
  7236. ASN1Free_RemoteEventDestinationAddress(&(val)->destinationAddress);
  7237. ASN1Free_ButtonEvent(&(val)->leftButtonState);
  7238. ASN1Free_ButtonEvent(&(val)->middleButtonState);
  7239. ASN1Free_ButtonEvent(&(val)->rightButtonState);
  7240. if ((val)->o[0] & 0x40) {
  7241. ASN1Free_PointList(&(val)->pointList);
  7242. }
  7243. if ((val)->o[0] & 0x20) {
  7244. ASN1Free_RemotePointingDeviceEventPDU_nonStandardParameters(&(val)->nonStandardParameters);
  7245. }
  7246. }
  7247. }
  7248. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_editView(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits_Set_action_editView *val)
  7249. {
  7250. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_editView_ElmFn);
  7251. }
  7252. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_editView_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits_Set_action_editView val)
  7253. {
  7254. if (!ASN1Enc_WorkspaceViewAttribute(enc, &val->value))
  7255. return 0;
  7256. return 1;
  7257. }
  7258. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_editView(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits_Set_action_editView *val)
  7259. {
  7260. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_editView_ElmFn, sizeof(**val));
  7261. }
  7262. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_editView_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits_Set_action_editView val)
  7263. {
  7264. if (!ASN1Dec_WorkspaceViewAttribute(dec, &val->value))
  7265. return 0;
  7266. return 1;
  7267. }
  7268. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_editView(PWorkspaceEditPDU_viewEdits_Set_action_editView *val)
  7269. {
  7270. if (val) {
  7271. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_editView_ElmFn);
  7272. }
  7273. }
  7274. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_editView_ElmFn(PWorkspaceEditPDU_viewEdits_Set_action_editView val)
  7275. {
  7276. if (val) {
  7277. ASN1Free_WorkspaceViewAttribute(&val->value);
  7278. }
  7279. }
  7280. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_createNewView(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits_Set_action_createNewView *val)
  7281. {
  7282. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_createNewView_ElmFn);
  7283. }
  7284. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_viewEdits_Set_action_createNewView_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_viewEdits_Set_action_createNewView val)
  7285. {
  7286. if (!ASN1Enc_WorkspaceViewAttribute(enc, &val->value))
  7287. return 0;
  7288. return 1;
  7289. }
  7290. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_createNewView(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits_Set_action_createNewView *val)
  7291. {
  7292. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_createNewView_ElmFn, sizeof(**val));
  7293. }
  7294. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_viewEdits_Set_action_createNewView_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_viewEdits_Set_action_createNewView val)
  7295. {
  7296. if (!ASN1Dec_WorkspaceViewAttribute(dec, &val->value))
  7297. return 0;
  7298. return 1;
  7299. }
  7300. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_createNewView(PWorkspaceEditPDU_viewEdits_Set_action_createNewView *val)
  7301. {
  7302. if (val) {
  7303. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_createNewView_ElmFn);
  7304. }
  7305. }
  7306. static void ASN1CALL ASN1Free_WorkspaceEditPDU_viewEdits_Set_action_createNewView_ElmFn(PWorkspaceEditPDU_viewEdits_Set_action_createNewView val)
  7307. {
  7308. if (val) {
  7309. ASN1Free_WorkspaceViewAttribute(&val->value);
  7310. }
  7311. }
  7312. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits_Set_planeAttributes(ASN1encoding_t enc, PWorkspaceEditPDU_planeEdits_Set_planeAttributes *val)
  7313. {
  7314. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_planeEdits_Set_planeAttributes_ElmFn);
  7315. }
  7316. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_planeEdits_Set_planeAttributes_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_planeEdits_Set_planeAttributes val)
  7317. {
  7318. if (!ASN1Enc_PlaneAttribute(enc, &val->value))
  7319. return 0;
  7320. return 1;
  7321. }
  7322. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits_Set_planeAttributes(ASN1decoding_t dec, PWorkspaceEditPDU_planeEdits_Set_planeAttributes *val)
  7323. {
  7324. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_planeEdits_Set_planeAttributes_ElmFn, sizeof(**val));
  7325. }
  7326. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_planeEdits_Set_planeAttributes_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_planeEdits_Set_planeAttributes val)
  7327. {
  7328. if (!ASN1Dec_PlaneAttribute(dec, &val->value))
  7329. return 0;
  7330. return 1;
  7331. }
  7332. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits_Set_planeAttributes(PWorkspaceEditPDU_planeEdits_Set_planeAttributes *val)
  7333. {
  7334. if (val) {
  7335. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_planeEdits_Set_planeAttributes_ElmFn);
  7336. }
  7337. }
  7338. static void ASN1CALL ASN1Free_WorkspaceEditPDU_planeEdits_Set_planeAttributes_ElmFn(PWorkspaceEditPDU_planeEdits_Set_planeAttributes val)
  7339. {
  7340. if (val) {
  7341. ASN1Free_PlaneAttribute(&val->value);
  7342. }
  7343. }
  7344. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(ASN1encoding_t enc, PWorkspaceCreatePDU_viewParameters_Set_viewAttributes *val)
  7345. {
  7346. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_viewParameters_Set_viewAttributes_ElmFn);
  7347. }
  7348. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_viewParameters_Set_viewAttributes_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_viewParameters_Set_viewAttributes val)
  7349. {
  7350. if (!ASN1Enc_WorkspaceViewAttribute(enc, &val->value))
  7351. return 0;
  7352. return 1;
  7353. }
  7354. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(ASN1decoding_t dec, PWorkspaceCreatePDU_viewParameters_Set_viewAttributes *val)
  7355. {
  7356. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_viewParameters_Set_viewAttributes_ElmFn, sizeof(**val));
  7357. }
  7358. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_viewParameters_Set_viewAttributes_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_viewParameters_Set_viewAttributes val)
  7359. {
  7360. if (!ASN1Dec_WorkspaceViewAttribute(dec, &val->value))
  7361. return 0;
  7362. return 1;
  7363. }
  7364. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters_Set_viewAttributes(PWorkspaceCreatePDU_viewParameters_Set_viewAttributes *val)
  7365. {
  7366. if (val) {
  7367. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_viewParameters_Set_viewAttributes_ElmFn);
  7368. }
  7369. }
  7370. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_viewParameters_Set_viewAttributes_ElmFn(PWorkspaceCreatePDU_viewParameters_Set_viewAttributes val)
  7371. {
  7372. if (val) {
  7373. ASN1Free_WorkspaceViewAttribute(&val->value);
  7374. }
  7375. }
  7376. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes *val)
  7377. {
  7378. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes_ElmFn);
  7379. }
  7380. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes val)
  7381. {
  7382. if (!ASN1Enc_PlaneAttribute(enc, &val->value))
  7383. return 0;
  7384. return 1;
  7385. }
  7386. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes *val)
  7387. {
  7388. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes_ElmFn, sizeof(**val));
  7389. }
  7390. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes val)
  7391. {
  7392. if (!ASN1Dec_PlaneAttribute(dec, &val->value))
  7393. return 0;
  7394. return 1;
  7395. }
  7396. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes(PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes *val)
  7397. {
  7398. if (val) {
  7399. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes_ElmFn);
  7400. }
  7401. }
  7402. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_planeParameters_Seq_planeAttributes_ElmFn(PWorkspaceCreatePDU_planeParameters_Seq_planeAttributes val)
  7403. {
  7404. if (val) {
  7405. ASN1Free_PlaneAttribute(&val->value);
  7406. }
  7407. }
  7408. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr(ASN1encoding_t enc, ColorPalette_colorLookUpTable_paletteYCbCr *val)
  7409. {
  7410. if (!ASN1PEREncExtensionBitClear(enc))
  7411. return 0;
  7412. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7413. return 0;
  7414. if (!ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr_palette(enc, &(val)->palette))
  7415. return 0;
  7416. if ((val)->o[0] & 0x80) {
  7417. if (!ASN1Enc_ColorAccuracyEnhancementYCbCr(enc, &(val)->enhancement))
  7418. return 0;
  7419. }
  7420. return 1;
  7421. }
  7422. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr(ASN1decoding_t dec, ColorPalette_colorLookUpTable_paletteYCbCr *val)
  7423. {
  7424. ASN1uint32_t y;
  7425. if (!ASN1PERDecExtensionBit(dec, &y))
  7426. return 0;
  7427. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7428. return 0;
  7429. if (!ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr_palette(dec, &(val)->palette))
  7430. return 0;
  7431. if ((val)->o[0] & 0x80) {
  7432. if (!ASN1Dec_ColorAccuracyEnhancementYCbCr(dec, &(val)->enhancement))
  7433. return 0;
  7434. }
  7435. if (y) {
  7436. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7437. return 0;
  7438. }
  7439. return 1;
  7440. }
  7441. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr(ColorPalette_colorLookUpTable_paletteYCbCr *val)
  7442. {
  7443. if (val) {
  7444. ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr_palette(&(val)->palette);
  7445. if ((val)->o[0] & 0x80) {
  7446. ASN1Free_ColorAccuracyEnhancementYCbCr(&(val)->enhancement);
  7447. }
  7448. }
  7449. }
  7450. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab(ASN1encoding_t enc, ColorPalette_colorLookUpTable_paletteCIELab *val)
  7451. {
  7452. if (!ASN1PEREncExtensionBitClear(enc))
  7453. return 0;
  7454. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7455. return 0;
  7456. if (!ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab_palette(enc, &(val)->palette))
  7457. return 0;
  7458. if ((val)->o[0] & 0x80) {
  7459. if (!ASN1Enc_ColorAccuracyEnhancementCIELab(enc, &(val)->enhancement))
  7460. return 0;
  7461. }
  7462. return 1;
  7463. }
  7464. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab(ASN1decoding_t dec, ColorPalette_colorLookUpTable_paletteCIELab *val)
  7465. {
  7466. ASN1uint32_t y;
  7467. if (!ASN1PERDecExtensionBit(dec, &y))
  7468. return 0;
  7469. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7470. return 0;
  7471. if (!ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab_palette(dec, &(val)->palette))
  7472. return 0;
  7473. if ((val)->o[0] & 0x80) {
  7474. if (!ASN1Dec_ColorAccuracyEnhancementCIELab(dec, &(val)->enhancement))
  7475. return 0;
  7476. }
  7477. if (y) {
  7478. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7479. return 0;
  7480. }
  7481. return 1;
  7482. }
  7483. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab(ColorPalette_colorLookUpTable_paletteCIELab *val)
  7484. {
  7485. if (val) {
  7486. ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab_palette(&(val)->palette);
  7487. if ((val)->o[0] & 0x80) {
  7488. ASN1Free_ColorAccuracyEnhancementCIELab(&(val)->enhancement);
  7489. }
  7490. }
  7491. }
  7492. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB(ASN1encoding_t enc, ColorPalette_colorLookUpTable_paletteRGB *val)
  7493. {
  7494. if (!ASN1PEREncExtensionBitClear(enc))
  7495. return 0;
  7496. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7497. return 0;
  7498. if (!ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB_palette(enc, &(val)->palette))
  7499. return 0;
  7500. if ((val)->o[0] & 0x80) {
  7501. if (!ASN1Enc_ColorAccuracyEnhancementRGB(enc, &(val)->enhancement))
  7502. return 0;
  7503. }
  7504. return 1;
  7505. }
  7506. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB(ASN1decoding_t dec, ColorPalette_colorLookUpTable_paletteRGB *val)
  7507. {
  7508. ASN1uint32_t y;
  7509. if (!ASN1PERDecExtensionBit(dec, &y))
  7510. return 0;
  7511. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7512. return 0;
  7513. if (!ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB_palette(dec, &(val)->palette))
  7514. return 0;
  7515. if ((val)->o[0] & 0x80) {
  7516. if (!ASN1Dec_ColorAccuracyEnhancementRGB(dec, &(val)->enhancement))
  7517. return 0;
  7518. }
  7519. if (y) {
  7520. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7521. return 0;
  7522. }
  7523. return 1;
  7524. }
  7525. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable_paletteRGB(ColorPalette_colorLookUpTable_paletteRGB *val)
  7526. {
  7527. if (val) {
  7528. ASN1Free_ColorPalette_colorLookUpTable_paletteRGB_palette(&(val)->palette);
  7529. if ((val)->o[0] & 0x80) {
  7530. ASN1Free_ColorAccuracyEnhancementRGB(&(val)->enhancement);
  7531. }
  7532. }
  7533. }
  7534. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU_copyDescriptor(ASN1encoding_t enc, WorkspacePlaneCopyPDU_copyDescriptor *val)
  7535. {
  7536. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  7537. return 0;
  7538. switch ((val)->choice) {
  7539. case 1:
  7540. if (!ASN1Enc_PermanentPlaneCopyDescriptor(enc, &(val)->u.permanentPlaneCopyDescriptor))
  7541. return 0;
  7542. break;
  7543. case 2:
  7544. if (!ASN1Enc_EditablePlaneCopyDescriptor(enc, &(val)->u.editablePlaneCopyDescriptor))
  7545. return 0;
  7546. break;
  7547. default:
  7548. /* impossible */
  7549. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  7550. return 0;
  7551. }
  7552. return 1;
  7553. }
  7554. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU_copyDescriptor(ASN1decoding_t dec, WorkspacePlaneCopyPDU_copyDescriptor *val)
  7555. {
  7556. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  7557. return 0;
  7558. switch ((val)->choice) {
  7559. case 1:
  7560. if (!ASN1Dec_PermanentPlaneCopyDescriptor(dec, &(val)->u.permanentPlaneCopyDescriptor))
  7561. return 0;
  7562. break;
  7563. case 2:
  7564. if (!ASN1Dec_EditablePlaneCopyDescriptor(dec, &(val)->u.editablePlaneCopyDescriptor))
  7565. return 0;
  7566. break;
  7567. case 0:
  7568. /* extension case */
  7569. if (!ASN1PERDecSkipFragmented(dec, 8))
  7570. return 0;
  7571. break;
  7572. default:
  7573. /* impossible */
  7574. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  7575. return 0;
  7576. }
  7577. return 1;
  7578. }
  7579. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU_copyDescriptor(WorkspacePlaneCopyPDU_copyDescriptor *val)
  7580. {
  7581. if (val) {
  7582. switch ((val)->choice) {
  7583. case 2:
  7584. ASN1Free_EditablePlaneCopyDescriptor(&(val)->u.editablePlaneCopyDescriptor);
  7585. break;
  7586. }
  7587. }
  7588. }
  7589. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_attributeEdits(ASN1encoding_t enc, PWorkspaceEditPDU_attributeEdits *val)
  7590. {
  7591. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceEditPDU_attributeEdits_ElmFn);
  7592. }
  7593. static int ASN1CALL ASN1Enc_WorkspaceEditPDU_attributeEdits_ElmFn(ASN1encoding_t enc, PWorkspaceEditPDU_attributeEdits val)
  7594. {
  7595. if (!ASN1Enc_WorkspaceAttribute(enc, &val->value))
  7596. return 0;
  7597. return 1;
  7598. }
  7599. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_attributeEdits(ASN1decoding_t dec, PWorkspaceEditPDU_attributeEdits *val)
  7600. {
  7601. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceEditPDU_attributeEdits_ElmFn, sizeof(**val));
  7602. }
  7603. static int ASN1CALL ASN1Dec_WorkspaceEditPDU_attributeEdits_ElmFn(ASN1decoding_t dec, PWorkspaceEditPDU_attributeEdits val)
  7604. {
  7605. if (!ASN1Dec_WorkspaceAttribute(dec, &val->value))
  7606. return 0;
  7607. return 1;
  7608. }
  7609. static void ASN1CALL ASN1Free_WorkspaceEditPDU_attributeEdits(PWorkspaceEditPDU_attributeEdits *val)
  7610. {
  7611. if (val) {
  7612. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceEditPDU_attributeEdits_ElmFn);
  7613. }
  7614. }
  7615. static void ASN1CALL ASN1Free_WorkspaceEditPDU_attributeEdits_ElmFn(PWorkspaceEditPDU_attributeEdits val)
  7616. {
  7617. if (val) {
  7618. ASN1Free_WorkspaceAttribute(&val->value);
  7619. }
  7620. }
  7621. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_workspaceAttributes(ASN1encoding_t enc, PWorkspaceCreatePDU_workspaceAttributes *val)
  7622. {
  7623. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_WorkspaceCreatePDU_workspaceAttributes_ElmFn);
  7624. }
  7625. static int ASN1CALL ASN1Enc_WorkspaceCreatePDU_workspaceAttributes_ElmFn(ASN1encoding_t enc, PWorkspaceCreatePDU_workspaceAttributes val)
  7626. {
  7627. if (!ASN1Enc_WorkspaceAttribute(enc, &val->value))
  7628. return 0;
  7629. return 1;
  7630. }
  7631. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_workspaceAttributes(ASN1decoding_t dec, PWorkspaceCreatePDU_workspaceAttributes *val)
  7632. {
  7633. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_WorkspaceCreatePDU_workspaceAttributes_ElmFn, sizeof(**val));
  7634. }
  7635. static int ASN1CALL ASN1Dec_WorkspaceCreatePDU_workspaceAttributes_ElmFn(ASN1decoding_t dec, PWorkspaceCreatePDU_workspaceAttributes val)
  7636. {
  7637. if (!ASN1Dec_WorkspaceAttribute(dec, &val->value))
  7638. return 0;
  7639. return 1;
  7640. }
  7641. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_workspaceAttributes(PWorkspaceCreatePDU_workspaceAttributes *val)
  7642. {
  7643. if (val) {
  7644. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_WorkspaceCreatePDU_workspaceAttributes_ElmFn);
  7645. }
  7646. }
  7647. static void ASN1CALL ASN1Free_WorkspaceCreatePDU_workspaceAttributes_ElmFn(PWorkspaceCreatePDU_workspaceAttributes val)
  7648. {
  7649. if (val) {
  7650. ASN1Free_WorkspaceAttribute(&val->value);
  7651. }
  7652. }
  7653. static int ASN1CALL ASN1Enc_RemoteKeyboardEventPDU_keyModifierStates(ASN1encoding_t enc, PRemoteKeyboardEventPDU_keyModifierStates *val)
  7654. {
  7655. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RemoteKeyboardEventPDU_keyModifierStates_ElmFn);
  7656. }
  7657. static int ASN1CALL ASN1Enc_RemoteKeyboardEventPDU_keyModifierStates_ElmFn(ASN1encoding_t enc, PRemoteKeyboardEventPDU_keyModifierStates val)
  7658. {
  7659. if (!ASN1Enc_KeyModifier(enc, &val->value))
  7660. return 0;
  7661. return 1;
  7662. }
  7663. static int ASN1CALL ASN1Dec_RemoteKeyboardEventPDU_keyModifierStates(ASN1decoding_t dec, PRemoteKeyboardEventPDU_keyModifierStates *val)
  7664. {
  7665. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RemoteKeyboardEventPDU_keyModifierStates_ElmFn, sizeof(**val));
  7666. }
  7667. static int ASN1CALL ASN1Dec_RemoteKeyboardEventPDU_keyModifierStates_ElmFn(ASN1decoding_t dec, PRemoteKeyboardEventPDU_keyModifierStates val)
  7668. {
  7669. if (!ASN1Dec_KeyModifier(dec, &val->value))
  7670. return 0;
  7671. return 1;
  7672. }
  7673. static void ASN1CALL ASN1Free_RemoteKeyboardEventPDU_keyModifierStates(PRemoteKeyboardEventPDU_keyModifierStates *val)
  7674. {
  7675. if (val) {
  7676. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RemoteKeyboardEventPDU_keyModifierStates_ElmFn);
  7677. }
  7678. }
  7679. static void ASN1CALL ASN1Free_RemoteKeyboardEventPDU_keyModifierStates_ElmFn(PRemoteKeyboardEventPDU_keyModifierStates val)
  7680. {
  7681. if (val) {
  7682. ASN1Free_KeyModifier(&val->value);
  7683. }
  7684. }
  7685. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU_privilegeList(ASN1encoding_t enc, PConductorPrivilegeRequestPDU_privilegeList *val)
  7686. {
  7687. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ConductorPrivilegeRequestPDU_privilegeList_ElmFn);
  7688. }
  7689. static int ASN1CALL ASN1Enc_ConductorPrivilegeRequestPDU_privilegeList_ElmFn(ASN1encoding_t enc, PConductorPrivilegeRequestPDU_privilegeList val)
  7690. {
  7691. if (!ASN1Enc_ConductorPrivilege(enc, &val->value))
  7692. return 0;
  7693. return 1;
  7694. }
  7695. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU_privilegeList(ASN1decoding_t dec, PConductorPrivilegeRequestPDU_privilegeList *val)
  7696. {
  7697. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ConductorPrivilegeRequestPDU_privilegeList_ElmFn, sizeof(**val));
  7698. }
  7699. static int ASN1CALL ASN1Dec_ConductorPrivilegeRequestPDU_privilegeList_ElmFn(ASN1decoding_t dec, PConductorPrivilegeRequestPDU_privilegeList val)
  7700. {
  7701. if (!ASN1Dec_ConductorPrivilege(dec, &val->value))
  7702. return 0;
  7703. return 1;
  7704. }
  7705. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU_privilegeList(PConductorPrivilegeRequestPDU_privilegeList *val)
  7706. {
  7707. if (val) {
  7708. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ConductorPrivilegeRequestPDU_privilegeList_ElmFn);
  7709. }
  7710. }
  7711. static void ASN1CALL ASN1Free_ConductorPrivilegeRequestPDU_privilegeList_ElmFn(PConductorPrivilegeRequestPDU_privilegeList val)
  7712. {
  7713. if (val) {
  7714. ASN1Free_ConductorPrivilege(&val->value);
  7715. }
  7716. }
  7717. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU_privilegeList(ASN1encoding_t enc, PConductorPrivilegeGrantPDU_privilegeList *val)
  7718. {
  7719. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ConductorPrivilegeGrantPDU_privilegeList_ElmFn);
  7720. }
  7721. static int ASN1CALL ASN1Enc_ConductorPrivilegeGrantPDU_privilegeList_ElmFn(ASN1encoding_t enc, PConductorPrivilegeGrantPDU_privilegeList val)
  7722. {
  7723. if (!ASN1Enc_ConductorPrivilege(enc, &val->value))
  7724. return 0;
  7725. return 1;
  7726. }
  7727. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU_privilegeList(ASN1decoding_t dec, PConductorPrivilegeGrantPDU_privilegeList *val)
  7728. {
  7729. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ConductorPrivilegeGrantPDU_privilegeList_ElmFn, sizeof(**val));
  7730. }
  7731. static int ASN1CALL ASN1Dec_ConductorPrivilegeGrantPDU_privilegeList_ElmFn(ASN1decoding_t dec, PConductorPrivilegeGrantPDU_privilegeList val)
  7732. {
  7733. if (!ASN1Dec_ConductorPrivilege(dec, &val->value))
  7734. return 0;
  7735. return 1;
  7736. }
  7737. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU_privilegeList(PConductorPrivilegeGrantPDU_privilegeList *val)
  7738. {
  7739. if (val) {
  7740. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ConductorPrivilegeGrantPDU_privilegeList_ElmFn);
  7741. }
  7742. }
  7743. static void ASN1CALL ASN1Free_ConductorPrivilegeGrantPDU_privilegeList_ElmFn(PConductorPrivilegeGrantPDU_privilegeList val)
  7744. {
  7745. if (val) {
  7746. ASN1Free_ConductorPrivilege(&val->value);
  7747. }
  7748. }
  7749. static int ASN1CALL ASN1Enc_VideoWindowEditPDU_attributeEdits(ASN1encoding_t enc, PVideoWindowEditPDU_attributeEdits *val)
  7750. {
  7751. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VideoWindowEditPDU_attributeEdits_ElmFn);
  7752. }
  7753. static int ASN1CALL ASN1Enc_VideoWindowEditPDU_attributeEdits_ElmFn(ASN1encoding_t enc, PVideoWindowEditPDU_attributeEdits val)
  7754. {
  7755. if (!ASN1Enc_VideoWindowAttribute(enc, &val->value))
  7756. return 0;
  7757. return 1;
  7758. }
  7759. static int ASN1CALL ASN1Dec_VideoWindowEditPDU_attributeEdits(ASN1decoding_t dec, PVideoWindowEditPDU_attributeEdits *val)
  7760. {
  7761. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VideoWindowEditPDU_attributeEdits_ElmFn, sizeof(**val));
  7762. }
  7763. static int ASN1CALL ASN1Dec_VideoWindowEditPDU_attributeEdits_ElmFn(ASN1decoding_t dec, PVideoWindowEditPDU_attributeEdits val)
  7764. {
  7765. if (!ASN1Dec_VideoWindowAttribute(dec, &val->value))
  7766. return 0;
  7767. return 1;
  7768. }
  7769. static void ASN1CALL ASN1Free_VideoWindowEditPDU_attributeEdits(PVideoWindowEditPDU_attributeEdits *val)
  7770. {
  7771. if (val) {
  7772. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VideoWindowEditPDU_attributeEdits_ElmFn);
  7773. }
  7774. }
  7775. static void ASN1CALL ASN1Free_VideoWindowEditPDU_attributeEdits_ElmFn(PVideoWindowEditPDU_attributeEdits val)
  7776. {
  7777. if (val) {
  7778. ASN1Free_VideoWindowAttribute(&val->value);
  7779. }
  7780. }
  7781. static int ASN1CALL ASN1Enc_VideoWindowCreatePDU_attributes(ASN1encoding_t enc, PVideoWindowCreatePDU_attributes *val)
  7782. {
  7783. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VideoWindowCreatePDU_attributes_ElmFn);
  7784. }
  7785. static int ASN1CALL ASN1Enc_VideoWindowCreatePDU_attributes_ElmFn(ASN1encoding_t enc, PVideoWindowCreatePDU_attributes val)
  7786. {
  7787. if (!ASN1Enc_VideoWindowAttribute(enc, &val->value))
  7788. return 0;
  7789. return 1;
  7790. }
  7791. static int ASN1CALL ASN1Dec_VideoWindowCreatePDU_attributes(ASN1decoding_t dec, PVideoWindowCreatePDU_attributes *val)
  7792. {
  7793. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VideoWindowCreatePDU_attributes_ElmFn, sizeof(**val));
  7794. }
  7795. static int ASN1CALL ASN1Dec_VideoWindowCreatePDU_attributes_ElmFn(ASN1decoding_t dec, PVideoWindowCreatePDU_attributes val)
  7796. {
  7797. if (!ASN1Dec_VideoWindowAttribute(dec, &val->value))
  7798. return 0;
  7799. return 1;
  7800. }
  7801. static void ASN1CALL ASN1Free_VideoWindowCreatePDU_attributes(PVideoWindowCreatePDU_attributes *val)
  7802. {
  7803. if (val) {
  7804. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VideoWindowCreatePDU_attributes_ElmFn);
  7805. }
  7806. }
  7807. static void ASN1CALL ASN1Free_VideoWindowCreatePDU_attributes_ElmFn(PVideoWindowCreatePDU_attributes val)
  7808. {
  7809. if (val) {
  7810. ASN1Free_VideoWindowAttribute(&val->value);
  7811. }
  7812. }
  7813. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_cieLab(ASN1encoding_t enc, ColorSpaceSpecifier_cieLab *val)
  7814. {
  7815. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7816. return 0;
  7817. if ((val)->o[0] & 0x80) {
  7818. if (!ASN1Enc_ColorAccuracyEnhancementCIELab(enc, &(val)->accuracyEnhancement))
  7819. return 0;
  7820. }
  7821. return 1;
  7822. }
  7823. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_cieLab(ASN1decoding_t dec, ColorSpaceSpecifier_cieLab *val)
  7824. {
  7825. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7826. return 0;
  7827. if ((val)->o[0] & 0x80) {
  7828. if (!ASN1Dec_ColorAccuracyEnhancementCIELab(dec, &(val)->accuracyEnhancement))
  7829. return 0;
  7830. }
  7831. return 1;
  7832. }
  7833. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_cieLab(ColorSpaceSpecifier_cieLab *val)
  7834. {
  7835. if (val) {
  7836. if ((val)->o[0] & 0x80) {
  7837. ASN1Free_ColorAccuracyEnhancementCIELab(&(val)->accuracyEnhancement);
  7838. }
  7839. }
  7840. }
  7841. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_rgb(ASN1encoding_t enc, ColorSpaceSpecifier_rgb *val)
  7842. {
  7843. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7844. return 0;
  7845. if ((val)->o[0] & 0x80) {
  7846. if (!ASN1Enc_ColorAccuracyEnhancementRGB(enc, &(val)->accuracyEnhancement))
  7847. return 0;
  7848. }
  7849. return 1;
  7850. }
  7851. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_rgb(ASN1decoding_t dec, ColorSpaceSpecifier_rgb *val)
  7852. {
  7853. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7854. return 0;
  7855. if ((val)->o[0] & 0x80) {
  7856. if (!ASN1Dec_ColorAccuracyEnhancementRGB(dec, &(val)->accuracyEnhancement))
  7857. return 0;
  7858. }
  7859. return 1;
  7860. }
  7861. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_rgb(ColorSpaceSpecifier_rgb *val)
  7862. {
  7863. if (val) {
  7864. if ((val)->o[0] & 0x80) {
  7865. ASN1Free_ColorAccuracyEnhancementRGB(&(val)->accuracyEnhancement);
  7866. }
  7867. }
  7868. }
  7869. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_yCbCr(ASN1encoding_t enc, ColorSpaceSpecifier_yCbCr *val)
  7870. {
  7871. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7872. return 0;
  7873. if ((val)->o[0] & 0x80) {
  7874. if (!ASN1Enc_ColorAccuracyEnhancementYCbCr(enc, &(val)->accuracyEnhancement))
  7875. return 0;
  7876. }
  7877. return 1;
  7878. }
  7879. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_yCbCr(ASN1decoding_t dec, ColorSpaceSpecifier_yCbCr *val)
  7880. {
  7881. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7882. return 0;
  7883. if ((val)->o[0] & 0x80) {
  7884. if (!ASN1Dec_ColorAccuracyEnhancementYCbCr(dec, &(val)->accuracyEnhancement))
  7885. return 0;
  7886. }
  7887. return 1;
  7888. }
  7889. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_yCbCr(ColorSpaceSpecifier_yCbCr *val)
  7890. {
  7891. if (val) {
  7892. if ((val)->o[0] & 0x80) {
  7893. ASN1Free_ColorAccuracyEnhancementYCbCr(&(val)->accuracyEnhancement);
  7894. }
  7895. }
  7896. }
  7897. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier_greyscale(ASN1encoding_t enc, ColorSpaceSpecifier_greyscale *val)
  7898. {
  7899. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7900. return 0;
  7901. if ((val)->o[0] & 0x80) {
  7902. if (!ASN1Enc_ColorAccuracyEnhancementGreyscale(enc, &(val)->accuracyEnhancement))
  7903. return 0;
  7904. }
  7905. return 1;
  7906. }
  7907. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier_greyscale(ASN1decoding_t dec, ColorSpaceSpecifier_greyscale *val)
  7908. {
  7909. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7910. return 0;
  7911. if ((val)->o[0] & 0x80) {
  7912. if (!ASN1Dec_ColorAccuracyEnhancementGreyscale(dec, &(val)->accuracyEnhancement))
  7913. return 0;
  7914. }
  7915. return 1;
  7916. }
  7917. static void ASN1CALL ASN1Free_ColorSpaceSpecifier_greyscale(ColorSpaceSpecifier_greyscale *val)
  7918. {
  7919. if (val) {
  7920. if ((val)->o[0] & 0x80) {
  7921. ASN1Free_ColorAccuracyEnhancementGreyscale(&(val)->accuracyEnhancement);
  7922. }
  7923. }
  7924. }
  7925. static int ASN1CALL ASN1Enc_ColorPalette_colorLookUpTable(ASN1encoding_t enc, ColorPalette_colorLookUpTable *val)
  7926. {
  7927. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  7928. return 0;
  7929. switch ((val)->choice) {
  7930. case 1:
  7931. if (!ASN1Enc_ColorPalette_colorLookUpTable_paletteRGB(enc, &(val)->u.paletteRGB))
  7932. return 0;
  7933. break;
  7934. case 2:
  7935. if (!ASN1Enc_ColorPalette_colorLookUpTable_paletteCIELab(enc, &(val)->u.paletteCIELab))
  7936. return 0;
  7937. break;
  7938. case 3:
  7939. if (!ASN1Enc_ColorPalette_colorLookUpTable_paletteYCbCr(enc, &(val)->u.paletteYCbCr))
  7940. return 0;
  7941. break;
  7942. case 4:
  7943. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardPalette))
  7944. return 0;
  7945. break;
  7946. default:
  7947. /* impossible */
  7948. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  7949. return 0;
  7950. }
  7951. return 1;
  7952. }
  7953. static int ASN1CALL ASN1Dec_ColorPalette_colorLookUpTable(ASN1decoding_t dec, ColorPalette_colorLookUpTable *val)
  7954. {
  7955. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  7956. return 0;
  7957. switch ((val)->choice) {
  7958. case 1:
  7959. if (!ASN1Dec_ColorPalette_colorLookUpTable_paletteRGB(dec, &(val)->u.paletteRGB))
  7960. return 0;
  7961. break;
  7962. case 2:
  7963. if (!ASN1Dec_ColorPalette_colorLookUpTable_paletteCIELab(dec, &(val)->u.paletteCIELab))
  7964. return 0;
  7965. break;
  7966. case 3:
  7967. if (!ASN1Dec_ColorPalette_colorLookUpTable_paletteYCbCr(dec, &(val)->u.paletteYCbCr))
  7968. return 0;
  7969. break;
  7970. case 4:
  7971. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardPalette))
  7972. return 0;
  7973. break;
  7974. case 0:
  7975. /* extension case */
  7976. if (!ASN1PERDecSkipFragmented(dec, 8))
  7977. return 0;
  7978. break;
  7979. default:
  7980. /* impossible */
  7981. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  7982. return 0;
  7983. }
  7984. return 1;
  7985. }
  7986. static void ASN1CALL ASN1Free_ColorPalette_colorLookUpTable(ColorPalette_colorLookUpTable *val)
  7987. {
  7988. if (val) {
  7989. switch ((val)->choice) {
  7990. case 1:
  7991. ASN1Free_ColorPalette_colorLookUpTable_paletteRGB(&(val)->u.paletteRGB);
  7992. break;
  7993. case 2:
  7994. ASN1Free_ColorPalette_colorLookUpTable_paletteCIELab(&(val)->u.paletteCIELab);
  7995. break;
  7996. case 3:
  7997. ASN1Free_ColorPalette_colorLookUpTable_paletteYCbCr(&(val)->u.paletteYCbCr);
  7998. break;
  7999. case 4:
  8000. ASN1Free_NonStandardParameter(&(val)->u.nonStandardPalette);
  8001. break;
  8002. }
  8003. }
  8004. }
  8005. static int ASN1CALL ASN1Enc_BitmapAttribute(ASN1encoding_t enc, BitmapAttribute *val)
  8006. {
  8007. ASN1encoding_t ee;
  8008. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 3))
  8009. return 0;
  8010. switch ((val)->choice) {
  8011. case 1:
  8012. if (!ASN1Enc_ViewState(enc, &(val)->u.viewState))
  8013. return 0;
  8014. break;
  8015. case 2:
  8016. if (!ASN1PEREncExtensionBitClear(enc))
  8017. return 0;
  8018. if (!ASN1PEREncBitVal(enc, 1, (val)->u.zOrder))
  8019. return 0;
  8020. break;
  8021. case 3:
  8022. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardAttribute))
  8023. return 0;
  8024. break;
  8025. case 4:
  8026. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8027. return 0;
  8028. if (!ASN1Enc_TransparencyMask(ee, &(val)->u.transparencyMask))
  8029. return 0;
  8030. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8031. return 0;
  8032. ASN1_CloseEncoder2(ee);
  8033. break;
  8034. default:
  8035. /* impossible */
  8036. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8037. return 0;
  8038. }
  8039. return 1;
  8040. }
  8041. static int ASN1CALL ASN1Dec_BitmapAttribute(ASN1decoding_t dec, BitmapAttribute *val)
  8042. {
  8043. ASN1uint32_t x;
  8044. ASN1decoding_t dd;
  8045. ASN1octet_t *db;
  8046. ASN1uint32_t ds;
  8047. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 3))
  8048. return 0;
  8049. switch ((val)->choice) {
  8050. case 1:
  8051. if (!ASN1Dec_ViewState(dec, &(val)->u.viewState))
  8052. return 0;
  8053. break;
  8054. case 2:
  8055. if (!ASN1PERDecExtensionBit(dec, &x))
  8056. return 0;
  8057. if (!x) {
  8058. if (!ASN1PERDecU32Val(dec, 1, (ASN1uint32_t *)&(val)->u.zOrder))
  8059. return 0;
  8060. } else {
  8061. if (!ASN1PERDecSkipNormallySmall(dec))
  8062. return 0;
  8063. }
  8064. break;
  8065. case 3:
  8066. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardAttribute))
  8067. return 0;
  8068. break;
  8069. case 4:
  8070. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8071. return 0;
  8072. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8073. return 0;
  8074. if (!ASN1Dec_TransparencyMask(dd, &(val)->u.transparencyMask))
  8075. return 0;
  8076. ASN1_CloseDecoder(dd);
  8077. ASN1Free(db);
  8078. break;
  8079. case 0:
  8080. /* extension case */
  8081. if (!ASN1PERDecSkipFragmented(dec, 8))
  8082. return 0;
  8083. break;
  8084. default:
  8085. /* impossible */
  8086. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8087. return 0;
  8088. }
  8089. return 1;
  8090. }
  8091. static void ASN1CALL ASN1Free_BitmapAttribute(BitmapAttribute *val)
  8092. {
  8093. if (val) {
  8094. switch ((val)->choice) {
  8095. case 1:
  8096. ASN1Free_ViewState(&(val)->u.viewState);
  8097. break;
  8098. case 3:
  8099. ASN1Free_NonStandardParameter(&(val)->u.nonStandardAttribute);
  8100. break;
  8101. case 4:
  8102. ASN1Free_TransparencyMask(&(val)->u.transparencyMask);
  8103. break;
  8104. }
  8105. }
  8106. }
  8107. static int ASN1CALL ASN1Enc_ColorPalette(ASN1encoding_t enc, ColorPalette *val)
  8108. {
  8109. if (!ASN1PEREncExtensionBitClear(enc))
  8110. return 0;
  8111. if (!ASN1PEREncBits(enc, 1, (val)->o))
  8112. return 0;
  8113. if (!ASN1Enc_ColorPalette_colorLookUpTable(enc, &(val)->colorLookUpTable))
  8114. return 0;
  8115. if ((val)->o[0] & 0x80) {
  8116. ASN1PEREncAlignment(enc);
  8117. if (!ASN1PEREncBitVal(enc, 8, (val)->transparentEntry))
  8118. return 0;
  8119. }
  8120. return 1;
  8121. }
  8122. static int ASN1CALL ASN1Dec_ColorPalette(ASN1decoding_t dec, ColorPalette *val)
  8123. {
  8124. ASN1uint32_t y;
  8125. if (!ASN1PERDecExtensionBit(dec, &y))
  8126. return 0;
  8127. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8128. return 0;
  8129. if (!ASN1Dec_ColorPalette_colorLookUpTable(dec, &(val)->colorLookUpTable))
  8130. return 0;
  8131. if ((val)->o[0] & 0x80) {
  8132. ASN1PERDecAlignment(dec);
  8133. if (!ASN1PERDecU16Val(dec, 8, &(val)->transparentEntry))
  8134. return 0;
  8135. }
  8136. if (y) {
  8137. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8138. return 0;
  8139. }
  8140. return 1;
  8141. }
  8142. static void ASN1CALL ASN1Free_ColorPalette(ColorPalette *val)
  8143. {
  8144. if (val) {
  8145. ASN1Free_ColorPalette_colorLookUpTable(&(val)->colorLookUpTable);
  8146. }
  8147. }
  8148. static int ASN1CALL ASN1Enc_ColorSpaceSpecifier(ASN1encoding_t enc, ColorSpaceSpecifier *val)
  8149. {
  8150. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  8151. return 0;
  8152. switch ((val)->choice) {
  8153. case 1:
  8154. if (!ASN1Enc_ColorSpaceSpecifier_greyscale(enc, &(val)->u.greyscale))
  8155. return 0;
  8156. break;
  8157. case 2:
  8158. if (!ASN1Enc_ColorSpaceSpecifier_yCbCr(enc, &(val)->u.yCbCr))
  8159. return 0;
  8160. break;
  8161. case 3:
  8162. if (!ASN1Enc_ColorSpaceSpecifier_rgb(enc, &(val)->u.rgb))
  8163. return 0;
  8164. break;
  8165. case 4:
  8166. if (!ASN1Enc_ColorSpaceSpecifier_cieLab(enc, &(val)->u.cieLab))
  8167. return 0;
  8168. break;
  8169. case 5:
  8170. if (!ASN1Enc_NonStandardIdentifier(enc, &(val)->u.nonStandardColorSpace))
  8171. return 0;
  8172. break;
  8173. default:
  8174. /* impossible */
  8175. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8176. return 0;
  8177. }
  8178. return 1;
  8179. }
  8180. static int ASN1CALL ASN1Dec_ColorSpaceSpecifier(ASN1decoding_t dec, ColorSpaceSpecifier *val)
  8181. {
  8182. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  8183. return 0;
  8184. switch ((val)->choice) {
  8185. case 1:
  8186. if (!ASN1Dec_ColorSpaceSpecifier_greyscale(dec, &(val)->u.greyscale))
  8187. return 0;
  8188. break;
  8189. case 2:
  8190. if (!ASN1Dec_ColorSpaceSpecifier_yCbCr(dec, &(val)->u.yCbCr))
  8191. return 0;
  8192. break;
  8193. case 3:
  8194. if (!ASN1Dec_ColorSpaceSpecifier_rgb(dec, &(val)->u.rgb))
  8195. return 0;
  8196. break;
  8197. case 4:
  8198. if (!ASN1Dec_ColorSpaceSpecifier_cieLab(dec, &(val)->u.cieLab))
  8199. return 0;
  8200. break;
  8201. case 5:
  8202. if (!ASN1Dec_NonStandardIdentifier(dec, &(val)->u.nonStandardColorSpace))
  8203. return 0;
  8204. break;
  8205. case 0:
  8206. /* extension case */
  8207. if (!ASN1PERDecSkipFragmented(dec, 8))
  8208. return 0;
  8209. break;
  8210. default:
  8211. /* impossible */
  8212. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8213. return 0;
  8214. }
  8215. return 1;
  8216. }
  8217. static void ASN1CALL ASN1Free_ColorSpaceSpecifier(ColorSpaceSpecifier *val)
  8218. {
  8219. if (val) {
  8220. switch ((val)->choice) {
  8221. case 1:
  8222. ASN1Free_ColorSpaceSpecifier_greyscale(&(val)->u.greyscale);
  8223. break;
  8224. case 2:
  8225. ASN1Free_ColorSpaceSpecifier_yCbCr(&(val)->u.yCbCr);
  8226. break;
  8227. case 3:
  8228. ASN1Free_ColorSpaceSpecifier_rgb(&(val)->u.rgb);
  8229. break;
  8230. case 4:
  8231. ASN1Free_ColorSpaceSpecifier_cieLab(&(val)->u.cieLab);
  8232. break;
  8233. case 5:
  8234. ASN1Free_NonStandardIdentifier(&(val)->u.nonStandardColorSpace);
  8235. break;
  8236. }
  8237. }
  8238. }
  8239. static int ASN1CALL ASN1Enc_DrawingAttribute(ASN1encoding_t enc, DrawingAttribute *val)
  8240. {
  8241. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 4))
  8242. return 0;
  8243. switch ((val)->choice) {
  8244. case 1:
  8245. if (!ASN1Enc_WorkspaceColor(enc, &(val)->u.penColor))
  8246. return 0;
  8247. break;
  8248. case 2:
  8249. if (!ASN1Enc_WorkspaceColor(enc, &(val)->u.fillColor))
  8250. return 0;
  8251. break;
  8252. case 3:
  8253. if (!ASN1PEREncBitVal(enc, 8, (val)->u.penThickness - 1))
  8254. return 0;
  8255. break;
  8256. case 4:
  8257. if (!ASN1Enc_PenNib(enc, &(val)->u.penNib))
  8258. return 0;
  8259. break;
  8260. case 5:
  8261. if (!ASN1Enc_LineStyle(enc, &(val)->u.lineStyle))
  8262. return 0;
  8263. break;
  8264. case 6:
  8265. if (!ASN1PEREncBoolean(enc, (val)->u.highlight))
  8266. return 0;
  8267. break;
  8268. case 7:
  8269. if (!ASN1Enc_ViewState(enc, &(val)->u.viewState))
  8270. return 0;
  8271. break;
  8272. case 8:
  8273. if (!ASN1PEREncExtensionBitClear(enc))
  8274. return 0;
  8275. if (!ASN1PEREncBitVal(enc, 1, (val)->u.zOrder))
  8276. return 0;
  8277. break;
  8278. case 9:
  8279. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.nonStandardAttribute))
  8280. return 0;
  8281. break;
  8282. default:
  8283. /* impossible */
  8284. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8285. return 0;
  8286. }
  8287. return 1;
  8288. }
  8289. static int ASN1CALL ASN1Dec_DrawingAttribute(ASN1decoding_t dec, DrawingAttribute *val)
  8290. {
  8291. ASN1uint32_t x;
  8292. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 4))
  8293. return 0;
  8294. switch ((val)->choice) {
  8295. case 1:
  8296. if (!ASN1Dec_WorkspaceColor(dec, &(val)->u.penColor))
  8297. return 0;
  8298. break;
  8299. case 2:
  8300. if (!ASN1Dec_WorkspaceColor(dec, &(val)->u.fillColor))
  8301. return 0;
  8302. break;
  8303. case 3:
  8304. if (!ASN1PERDecU16Val(dec, 8, &(val)->u.penThickness))
  8305. return 0;
  8306. (val)->u.penThickness += 1;
  8307. break;
  8308. case 4:
  8309. if (!ASN1Dec_PenNib(dec, &(val)->u.penNib))
  8310. return 0;
  8311. break;
  8312. case 5:
  8313. if (!ASN1Dec_LineStyle(dec, &(val)->u.lineStyle))
  8314. return 0;
  8315. break;
  8316. case 6:
  8317. if (!ASN1PERDecBoolean(dec, &(val)->u.highlight))
  8318. return 0;
  8319. break;
  8320. case 7:
  8321. if (!ASN1Dec_ViewState(dec, &(val)->u.viewState))
  8322. return 0;
  8323. break;
  8324. case 8:
  8325. if (!ASN1PERDecExtensionBit(dec, &x))
  8326. return 0;
  8327. if (!x) {
  8328. if (!ASN1PERDecU32Val(dec, 1, (ASN1uint32_t *) &(val)->u.zOrder))
  8329. return 0;
  8330. } else {
  8331. if (!ASN1PERDecSkipNormallySmall(dec))
  8332. return 0;
  8333. }
  8334. break;
  8335. case 9:
  8336. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.nonStandardAttribute))
  8337. return 0;
  8338. break;
  8339. case 0:
  8340. /* extension case */
  8341. if (!ASN1PERDecSkipFragmented(dec, 8))
  8342. return 0;
  8343. break;
  8344. default:
  8345. /* impossible */
  8346. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8347. return 0;
  8348. }
  8349. return 1;
  8350. }
  8351. static void ASN1CALL ASN1Free_DrawingAttribute(DrawingAttribute *val)
  8352. {
  8353. if (val) {
  8354. switch ((val)->choice) {
  8355. case 4:
  8356. ASN1Free_PenNib(&(val)->u.penNib);
  8357. break;
  8358. case 5:
  8359. ASN1Free_LineStyle(&(val)->u.lineStyle);
  8360. break;
  8361. case 7:
  8362. ASN1Free_ViewState(&(val)->u.viewState);
  8363. break;
  8364. case 9:
  8365. ASN1Free_NonStandardParameter(&(val)->u.nonStandardAttribute);
  8366. break;
  8367. }
  8368. }
  8369. }
  8370. static int ASN1CALL ASN1Enc_WorkspacePlaneCopyPDU(ASN1encoding_t enc, WorkspacePlaneCopyPDU *val)
  8371. {
  8372. if (!ASN1PEREncExtensionBitClear(enc))
  8373. return 0;
  8374. if (!ASN1PEREncBits(enc, 1, (val)->o))
  8375. return 0;
  8376. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->sourceWorkspaceIdentifier))
  8377. return 0;
  8378. ASN1PEREncAlignment(enc);
  8379. if (!ASN1PEREncBitVal(enc, 8, (val)->sourcePlane))
  8380. return 0;
  8381. if (!ASN1Enc_WorkspaceIdentifier(enc, &(val)->destinationWorkspaceIdentifier))
  8382. return 0;
  8383. ASN1PEREncAlignment(enc);
  8384. if (!ASN1PEREncBitVal(enc, 8, (val)->destinationPlane))
  8385. return 0;
  8386. if (!ASN1Enc_WorkspacePlaneCopyPDU_copyDescriptor(enc, &(val)->copyDescriptor))
  8387. return 0;
  8388. if ((val)->o[0] & 0x80) {
  8389. if (!ASN1Enc_WorkspacePlaneCopyPDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  8390. return 0;
  8391. }
  8392. return 1;
  8393. }
  8394. static int ASN1CALL ASN1Dec_WorkspacePlaneCopyPDU(ASN1decoding_t dec, WorkspacePlaneCopyPDU *val)
  8395. {
  8396. ASN1uint32_t y;
  8397. if (!ASN1PERDecExtensionBit(dec, &y))
  8398. return 0;
  8399. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8400. return 0;
  8401. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->sourceWorkspaceIdentifier))
  8402. return 0;
  8403. ASN1PERDecAlignment(dec);
  8404. if (!ASN1PERDecU16Val(dec, 8, &(val)->sourcePlane))
  8405. return 0;
  8406. if (!ASN1Dec_WorkspaceIdentifier(dec, &(val)->destinationWorkspaceIdentifier))
  8407. return 0;
  8408. ASN1PERDecAlignment(dec);
  8409. if (!ASN1PERDecU16Val(dec, 8, &(val)->destinationPlane))
  8410. return 0;
  8411. if (!ASN1Dec_WorkspacePlaneCopyPDU_copyDescriptor(dec, &(val)->copyDescriptor))
  8412. return 0;
  8413. if ((val)->o[0] & 0x80) {
  8414. if (!ASN1Dec_WorkspacePlaneCopyPDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  8415. return 0;
  8416. }
  8417. if (y) {
  8418. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8419. return 0;
  8420. }
  8421. return 1;
  8422. }
  8423. static void ASN1CALL ASN1Free_WorkspacePlaneCopyPDU(WorkspacePlaneCopyPDU *val)
  8424. {
  8425. if (val) {
  8426. ASN1Free_WorkspaceIdentifier(&(val)->sourceWorkspaceIdentifier);
  8427. ASN1Free_WorkspaceIdentifier(&(val)->destinationWorkspaceIdentifier);
  8428. ASN1Free_WorkspacePlaneCopyPDU_copyDescriptor(&(val)->copyDescriptor);
  8429. if ((val)->o[0] & 0x80) {
  8430. ASN1Free_WorkspacePlaneCopyPDU_nonStandardParameters(&(val)->nonStandardParameters);
  8431. }
  8432. }
  8433. }
  8434. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed_colorMappingMode_paletteMap(ASN1encoding_t enc, BitmapHeaderUncompressed_colorMappingMode_paletteMap *val)
  8435. {
  8436. if (!ASN1Enc_ColorPalette(enc, &(val)->colorPalette))
  8437. return 0;
  8438. if (!ASN1PEREncBitVal(enc, 3, (val)->bitsPerPixel - 1))
  8439. return 0;
  8440. return 1;
  8441. }
  8442. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed_colorMappingMode_paletteMap(ASN1decoding_t dec, BitmapHeaderUncompressed_colorMappingMode_paletteMap *val)
  8443. {
  8444. if (!ASN1Dec_ColorPalette(dec, &(val)->colorPalette))
  8445. return 0;
  8446. if (!ASN1PERDecU16Val(dec, 3, &(val)->bitsPerPixel))
  8447. return 0;
  8448. (val)->bitsPerPixel += 1;
  8449. return 1;
  8450. }
  8451. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed_colorMappingMode_paletteMap(BitmapHeaderUncompressed_colorMappingMode_paletteMap *val)
  8452. {
  8453. if (val) {
  8454. ASN1Free_ColorPalette(&(val)->colorPalette);
  8455. }
  8456. }
  8457. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed_colorMappingMode_directMap(ASN1encoding_t enc, BitmapHeaderUncompressed_colorMappingMode_directMap *val)
  8458. {
  8459. if (!ASN1Enc_ColorSpaceSpecifier(enc, &(val)->colorSpace))
  8460. return 0;
  8461. if (!ASN1Enc_ColorResolutionModeSpecifier(enc, &(val)->resolutionMode))
  8462. return 0;
  8463. return 1;
  8464. }
  8465. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed_colorMappingMode_directMap(ASN1decoding_t dec, BitmapHeaderUncompressed_colorMappingMode_directMap *val)
  8466. {
  8467. if (!ASN1Dec_ColorSpaceSpecifier(dec, &(val)->colorSpace))
  8468. return 0;
  8469. if (!ASN1Dec_ColorResolutionModeSpecifier(dec, &(val)->resolutionMode))
  8470. return 0;
  8471. return 1;
  8472. }
  8473. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed_colorMappingMode_directMap(BitmapHeaderUncompressed_colorMappingMode_directMap *val)
  8474. {
  8475. if (val) {
  8476. ASN1Free_ColorSpaceSpecifier(&(val)->colorSpace);
  8477. ASN1Free_ColorResolutionModeSpecifier(&(val)->resolutionMode);
  8478. }
  8479. }
  8480. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap(ASN1encoding_t enc, BitmapHeaderT82_colorMappingMode_paletteMap *val)
  8481. {
  8482. if (!ASN1PEREncBits(enc, 1, (val)->o))
  8483. return 0;
  8484. if (!ASN1Enc_ColorPalette(enc, &(val)->bitmapPalette))
  8485. return 0;
  8486. if ((val)->o[0] & 0x80) {
  8487. if (!ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(enc, &(val)->progressiveMode))
  8488. return 0;
  8489. }
  8490. return 1;
  8491. }
  8492. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap(ASN1decoding_t dec, BitmapHeaderT82_colorMappingMode_paletteMap *val)
  8493. {
  8494. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8495. return 0;
  8496. if (!ASN1Dec_ColorPalette(dec, &(val)->bitmapPalette))
  8497. return 0;
  8498. if ((val)->o[0] & 0x80) {
  8499. if (!ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(dec, &(val)->progressiveMode))
  8500. return 0;
  8501. }
  8502. return 1;
  8503. }
  8504. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap(BitmapHeaderT82_colorMappingMode_paletteMap *val)
  8505. {
  8506. if (val) {
  8507. ASN1Free_ColorPalette(&(val)->bitmapPalette);
  8508. if ((val)->o[0] & 0x80) {
  8509. ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap_progressiveMode(&(val)->progressiveMode);
  8510. }
  8511. }
  8512. }
  8513. static int ASN1CALL ASN1Enc_DrawingEditPDU_attributeEdits(ASN1encoding_t enc, PDrawingEditPDU_attributeEdits *val)
  8514. {
  8515. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DrawingEditPDU_attributeEdits_ElmFn);
  8516. }
  8517. static int ASN1CALL ASN1Enc_DrawingEditPDU_attributeEdits_ElmFn(ASN1encoding_t enc, PDrawingEditPDU_attributeEdits val)
  8518. {
  8519. if (!ASN1Enc_DrawingAttribute(enc, &val->value))
  8520. return 0;
  8521. return 1;
  8522. }
  8523. static int ASN1CALL ASN1Dec_DrawingEditPDU_attributeEdits(ASN1decoding_t dec, PDrawingEditPDU_attributeEdits *val)
  8524. {
  8525. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DrawingEditPDU_attributeEdits_ElmFn, sizeof(**val));
  8526. }
  8527. static int ASN1CALL ASN1Dec_DrawingEditPDU_attributeEdits_ElmFn(ASN1decoding_t dec, PDrawingEditPDU_attributeEdits val)
  8528. {
  8529. if (!ASN1Dec_DrawingAttribute(dec, &val->value))
  8530. return 0;
  8531. return 1;
  8532. }
  8533. static void ASN1CALL ASN1Free_DrawingEditPDU_attributeEdits(PDrawingEditPDU_attributeEdits *val)
  8534. {
  8535. if (val) {
  8536. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DrawingEditPDU_attributeEdits_ElmFn);
  8537. }
  8538. }
  8539. static void ASN1CALL ASN1Free_DrawingEditPDU_attributeEdits_ElmFn(PDrawingEditPDU_attributeEdits val)
  8540. {
  8541. if (val) {
  8542. ASN1Free_DrawingAttribute(&val->value);
  8543. }
  8544. }
  8545. static int ASN1CALL ASN1Enc_DrawingCreatePDU_attributes(ASN1encoding_t enc, PDrawingCreatePDU_attributes *val)
  8546. {
  8547. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DrawingCreatePDU_attributes_ElmFn);
  8548. }
  8549. static int ASN1CALL ASN1Enc_DrawingCreatePDU_attributes_ElmFn(ASN1encoding_t enc, PDrawingCreatePDU_attributes val)
  8550. {
  8551. if (!ASN1Enc_DrawingAttribute(enc, &val->value))
  8552. return 0;
  8553. return 1;
  8554. }
  8555. static int ASN1CALL ASN1Dec_DrawingCreatePDU_attributes(ASN1decoding_t dec, PDrawingCreatePDU_attributes *val)
  8556. {
  8557. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DrawingCreatePDU_attributes_ElmFn, sizeof(**val));
  8558. }
  8559. static int ASN1CALL ASN1Dec_DrawingCreatePDU_attributes_ElmFn(ASN1decoding_t dec, PDrawingCreatePDU_attributes val)
  8560. {
  8561. if (!ASN1Dec_DrawingAttribute(dec, &val->value))
  8562. return 0;
  8563. return 1;
  8564. }
  8565. static void ASN1CALL ASN1Free_DrawingCreatePDU_attributes(PDrawingCreatePDU_attributes *val)
  8566. {
  8567. if (val) {
  8568. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DrawingCreatePDU_attributes_ElmFn);
  8569. }
  8570. }
  8571. static void ASN1CALL ASN1Free_DrawingCreatePDU_attributes_ElmFn(PDrawingCreatePDU_attributes val)
  8572. {
  8573. if (val) {
  8574. ASN1Free_DrawingAttribute(&val->value);
  8575. }
  8576. }
  8577. static int ASN1CALL ASN1Enc_BitmapEditPDU_attributeEdits(ASN1encoding_t enc, PBitmapEditPDU_attributeEdits *val)
  8578. {
  8579. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapEditPDU_attributeEdits_ElmFn);
  8580. }
  8581. static int ASN1CALL ASN1Enc_BitmapEditPDU_attributeEdits_ElmFn(ASN1encoding_t enc, PBitmapEditPDU_attributeEdits val)
  8582. {
  8583. if (!ASN1Enc_BitmapAttribute(enc, &val->value))
  8584. return 0;
  8585. return 1;
  8586. }
  8587. static int ASN1CALL ASN1Dec_BitmapEditPDU_attributeEdits(ASN1decoding_t dec, PBitmapEditPDU_attributeEdits *val)
  8588. {
  8589. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapEditPDU_attributeEdits_ElmFn, sizeof(**val));
  8590. }
  8591. static int ASN1CALL ASN1Dec_BitmapEditPDU_attributeEdits_ElmFn(ASN1decoding_t dec, PBitmapEditPDU_attributeEdits val)
  8592. {
  8593. if (!ASN1Dec_BitmapAttribute(dec, &val->value))
  8594. return 0;
  8595. return 1;
  8596. }
  8597. static void ASN1CALL ASN1Free_BitmapEditPDU_attributeEdits(PBitmapEditPDU_attributeEdits *val)
  8598. {
  8599. if (val) {
  8600. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapEditPDU_attributeEdits_ElmFn);
  8601. }
  8602. }
  8603. static void ASN1CALL ASN1Free_BitmapEditPDU_attributeEdits_ElmFn(PBitmapEditPDU_attributeEdits val)
  8604. {
  8605. if (val) {
  8606. ASN1Free_BitmapAttribute(&val->value);
  8607. }
  8608. }
  8609. static int ASN1CALL ASN1Enc_BitmapCreatePDU_attributes(ASN1encoding_t enc, PBitmapCreatePDU_attributes *val)
  8610. {
  8611. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BitmapCreatePDU_attributes_ElmFn);
  8612. }
  8613. static int ASN1CALL ASN1Enc_BitmapCreatePDU_attributes_ElmFn(ASN1encoding_t enc, PBitmapCreatePDU_attributes val)
  8614. {
  8615. if (!ASN1Enc_BitmapAttribute(enc, &val->value))
  8616. return 0;
  8617. return 1;
  8618. }
  8619. static int ASN1CALL ASN1Dec_BitmapCreatePDU_attributes(ASN1decoding_t dec, PBitmapCreatePDU_attributes *val)
  8620. {
  8621. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BitmapCreatePDU_attributes_ElmFn, sizeof(**val));
  8622. }
  8623. static int ASN1CALL ASN1Dec_BitmapCreatePDU_attributes_ElmFn(ASN1decoding_t dec, PBitmapCreatePDU_attributes val)
  8624. {
  8625. if (!ASN1Dec_BitmapAttribute(dec, &val->value))
  8626. return 0;
  8627. return 1;
  8628. }
  8629. static void ASN1CALL ASN1Free_BitmapCreatePDU_attributes(PBitmapCreatePDU_attributes *val)
  8630. {
  8631. if (val) {
  8632. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BitmapCreatePDU_attributes_ElmFn);
  8633. }
  8634. }
  8635. static void ASN1CALL ASN1Free_BitmapCreatePDU_attributes_ElmFn(PBitmapCreatePDU_attributes val)
  8636. {
  8637. if (val) {
  8638. ASN1Free_BitmapAttribute(&val->value);
  8639. }
  8640. }
  8641. static int ASN1CALL ASN1Enc_BitmapHeaderT82_colorMappingMode(ASN1encoding_t enc, BitmapHeaderT82_colorMappingMode *val)
  8642. {
  8643. if (!ASN1PEREncSimpleChoice(enc, (val)->choice, 1))
  8644. return 0;
  8645. switch ((val)->choice) {
  8646. case 1:
  8647. if (!ASN1Enc_ColorSpaceSpecifier(enc, &(val)->u.directMap))
  8648. return 0;
  8649. break;
  8650. case 2:
  8651. if (!ASN1Enc_BitmapHeaderT82_colorMappingMode_paletteMap(enc, &(val)->u.paletteMap))
  8652. return 0;
  8653. break;
  8654. default:
  8655. /* impossible */
  8656. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8657. return 0;
  8658. }
  8659. return 1;
  8660. }
  8661. static int ASN1CALL ASN1Dec_BitmapHeaderT82_colorMappingMode(ASN1decoding_t dec, BitmapHeaderT82_colorMappingMode *val)
  8662. {
  8663. if (!ASN1PERDecSimpleChoice(dec, &(val)->choice, 1))
  8664. return 0;
  8665. switch ((val)->choice) {
  8666. case 1:
  8667. if (!ASN1Dec_ColorSpaceSpecifier(dec, &(val)->u.directMap))
  8668. return 0;
  8669. break;
  8670. case 2:
  8671. if (!ASN1Dec_BitmapHeaderT82_colorMappingMode_paletteMap(dec, &(val)->u.paletteMap))
  8672. return 0;
  8673. break;
  8674. default:
  8675. /* impossible */
  8676. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8677. return 0;
  8678. }
  8679. return 1;
  8680. }
  8681. static void ASN1CALL ASN1Free_BitmapHeaderT82_colorMappingMode(BitmapHeaderT82_colorMappingMode *val)
  8682. {
  8683. if (val) {
  8684. switch ((val)->choice) {
  8685. case 1:
  8686. ASN1Free_ColorSpaceSpecifier(&(val)->u.directMap);
  8687. break;
  8688. case 2:
  8689. ASN1Free_BitmapHeaderT82_colorMappingMode_paletteMap(&(val)->u.paletteMap);
  8690. break;
  8691. }
  8692. }
  8693. }
  8694. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed_colorMappingMode(ASN1encoding_t enc, BitmapHeaderUncompressed_colorMappingMode *val)
  8695. {
  8696. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  8697. return 0;
  8698. switch ((val)->choice) {
  8699. case 1:
  8700. if (!ASN1Enc_BitmapHeaderUncompressed_colorMappingMode_directMap(enc, &(val)->u.directMap))
  8701. return 0;
  8702. break;
  8703. case 2:
  8704. if (!ASN1Enc_BitmapHeaderUncompressed_colorMappingMode_paletteMap(enc, &(val)->u.paletteMap))
  8705. return 0;
  8706. break;
  8707. default:
  8708. /* impossible */
  8709. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8710. return 0;
  8711. }
  8712. return 1;
  8713. }
  8714. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed_colorMappingMode(ASN1decoding_t dec, BitmapHeaderUncompressed_colorMappingMode *val)
  8715. {
  8716. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  8717. return 0;
  8718. switch ((val)->choice) {
  8719. case 1:
  8720. if (!ASN1Dec_BitmapHeaderUncompressed_colorMappingMode_directMap(dec, &(val)->u.directMap))
  8721. return 0;
  8722. break;
  8723. case 2:
  8724. if (!ASN1Dec_BitmapHeaderUncompressed_colorMappingMode_paletteMap(dec, &(val)->u.paletteMap))
  8725. return 0;
  8726. break;
  8727. case 0:
  8728. /* extension case */
  8729. if (!ASN1PERDecSkipFragmented(dec, 8))
  8730. return 0;
  8731. break;
  8732. default:
  8733. /* impossible */
  8734. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8735. return 0;
  8736. }
  8737. return 1;
  8738. }
  8739. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed_colorMappingMode(BitmapHeaderUncompressed_colorMappingMode *val)
  8740. {
  8741. if (val) {
  8742. switch ((val)->choice) {
  8743. case 1:
  8744. ASN1Free_BitmapHeaderUncompressed_colorMappingMode_directMap(&(val)->u.directMap);
  8745. break;
  8746. case 2:
  8747. ASN1Free_BitmapHeaderUncompressed_colorMappingMode_paletteMap(&(val)->u.paletteMap);
  8748. break;
  8749. }
  8750. }
  8751. }
  8752. static int ASN1CALL ASN1Enc_BitmapHeaderUncompressed(ASN1encoding_t enc, BitmapHeaderUncompressed *val)
  8753. {
  8754. if (!ASN1PEREncExtensionBitClear(enc))
  8755. return 0;
  8756. if (!ASN1Enc_BitmapHeaderUncompressed_colorMappingMode(enc, &(val)->colorMappingMode))
  8757. return 0;
  8758. return 1;
  8759. }
  8760. static int ASN1CALL ASN1Dec_BitmapHeaderUncompressed(ASN1decoding_t dec, BitmapHeaderUncompressed *val)
  8761. {
  8762. ASN1uint32_t y;
  8763. if (!ASN1PERDecExtensionBit(dec, &y))
  8764. return 0;
  8765. if (!ASN1Dec_BitmapHeaderUncompressed_colorMappingMode(dec, &(val)->colorMappingMode))
  8766. return 0;
  8767. if (y) {
  8768. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8769. return 0;
  8770. }
  8771. return 1;
  8772. }
  8773. static void ASN1CALL ASN1Free_BitmapHeaderUncompressed(BitmapHeaderUncompressed *val)
  8774. {
  8775. if (val) {
  8776. ASN1Free_BitmapHeaderUncompressed_colorMappingMode(&(val)->colorMappingMode);
  8777. }
  8778. }
  8779. static int ASN1CALL ASN1Enc_BitmapHeaderT81(ASN1encoding_t enc, BitmapHeaderT81 *val)
  8780. {
  8781. ASN1uint32_t y;
  8782. ASN1encoding_t ee;
  8783. y = ASN1PEREncCheckExtensions(1, (val)->o + 0);
  8784. if (!ASN1PEREncBitVal(enc, 1, y))
  8785. return 0;
  8786. if (!ASN1Enc_ColorSpaceSpecifier(enc, &(val)->colorSpace))
  8787. return 0;
  8788. if (!ASN1Enc_ColorResolutionModeSpecifier(enc, &(val)->resolutionMode))
  8789. return 0;
  8790. if (y) {
  8791. if (!ASN1PEREncNormallySmallBits(enc, 1, (val)->o + 0))
  8792. return 0;
  8793. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8794. return 0;
  8795. if ((val)->o[0] & 0x80) {
  8796. if (!ASN1Enc_ColorPalette(ee, &(val)->colorPalette))
  8797. return 0;
  8798. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8799. return 0;
  8800. }
  8801. ASN1_CloseEncoder2(ee);
  8802. }
  8803. return 1;
  8804. }
  8805. static int ASN1CALL ASN1Dec_BitmapHeaderT81(ASN1decoding_t dec, BitmapHeaderT81 *val)
  8806. {
  8807. ASN1uint32_t y;
  8808. ASN1decoding_t dd;
  8809. ASN1octet_t *db;
  8810. ASN1uint32_t ds;
  8811. ASN1uint32_t i;
  8812. ASN1uint32_t e;
  8813. if (!ASN1PERDecExtensionBit(dec, &y))
  8814. return 0;
  8815. if (!ASN1Dec_ColorSpaceSpecifier(dec, &(val)->colorSpace))
  8816. return 0;
  8817. if (!ASN1Dec_ColorResolutionModeSpecifier(dec, &(val)->resolutionMode))
  8818. return 0;
  8819. if (!y) {
  8820. ZeroMemory((val)->o + 0, 1);
  8821. } else {
  8822. if (!ASN1PERDecNormallySmallExtension(dec, &e, 1, (val)->o + 0))
  8823. return 0;
  8824. if ((val)->o[0] & 0x80) {
  8825. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8826. return 0;
  8827. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8828. return 0;
  8829. if (!ASN1Dec_ColorPalette(dd, &(val)->colorPalette))
  8830. return 0;
  8831. ASN1_CloseDecoder(dd);
  8832. ASN1Free(db);
  8833. }
  8834. for (i = 0; i < e; i++) {
  8835. if (!ASN1PERDecSkipFragmented(dec, 8))
  8836. return 0;
  8837. }
  8838. }
  8839. return 1;
  8840. }
  8841. static void ASN1CALL ASN1Free_BitmapHeaderT81(BitmapHeaderT81 *val)
  8842. {
  8843. if (val) {
  8844. ASN1Free_ColorSpaceSpecifier(&(val)->colorSpace);
  8845. ASN1Free_ColorResolutionModeSpecifier(&(val)->resolutionMode);
  8846. if ((val)->o[0] & 0x80) {
  8847. ASN1Free_ColorPalette(&(val)->colorPalette);
  8848. }
  8849. }
  8850. }
  8851. static int ASN1CALL ASN1Enc_BitmapHeaderT82(ASN1encoding_t enc, BitmapHeaderT82 *val)
  8852. {
  8853. if (!ASN1PEREncExtensionBitClear(enc))
  8854. return 0;
  8855. if (!ASN1Enc_BitmapHeaderT82_colorMappingMode(enc, &(val)->colorMappingMode))
  8856. return 0;
  8857. return 1;
  8858. }
  8859. static int ASN1CALL ASN1Dec_BitmapHeaderT82(ASN1decoding_t dec, BitmapHeaderT82 *val)
  8860. {
  8861. ASN1uint32_t y;
  8862. if (!ASN1PERDecExtensionBit(dec, &y))
  8863. return 0;
  8864. if (!ASN1Dec_BitmapHeaderT82_colorMappingMode(dec, &(val)->colorMappingMode))
  8865. return 0;
  8866. if (y) {
  8867. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8868. return 0;
  8869. }
  8870. return 1;
  8871. }
  8872. static void ASN1CALL ASN1Free_BitmapHeaderT82(BitmapHeaderT82 *val)
  8873. {
  8874. if (val) {
  8875. ASN1Free_BitmapHeaderT82_colorMappingMode(&(val)->colorMappingMode);
  8876. }
  8877. }
  8878. static int ASN1CALL ASN1Enc_BitmapCreatePDU_bitmapFormatHeader(ASN1encoding_t enc, BitmapCreatePDU_bitmapFormatHeader *val)
  8879. {
  8880. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  8881. return 0;
  8882. switch ((val)->choice) {
  8883. case 1:
  8884. if (!ASN1Enc_BitmapHeaderUncompressed(enc, &(val)->u.bitmapHeaderUncompressed))
  8885. return 0;
  8886. break;
  8887. case 2:
  8888. if (!ASN1Enc_BitmapHeaderT4(enc, &(val)->u.bitmapHeaderT4))
  8889. return 0;
  8890. break;
  8891. case 3:
  8892. if (!ASN1Enc_BitmapHeaderT6(enc, &(val)->u.bitmapHeaderT6))
  8893. return 0;
  8894. break;
  8895. case 4:
  8896. if (!ASN1Enc_BitmapHeaderT81(enc, &(val)->u.bitmapHeaderT81))
  8897. return 0;
  8898. break;
  8899. case 5:
  8900. if (!ASN1Enc_BitmapHeaderT82(enc, &(val)->u.bitmapHeaderT82))
  8901. return 0;
  8902. break;
  8903. case 6:
  8904. if (!ASN1Enc_NonStandardParameter(enc, &(val)->u.bitmapHeaderNonStandard))
  8905. return 0;
  8906. break;
  8907. default:
  8908. /* impossible */
  8909. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8910. return 0;
  8911. }
  8912. return 1;
  8913. }
  8914. static int ASN1CALL ASN1Dec_BitmapCreatePDU_bitmapFormatHeader(ASN1decoding_t dec, BitmapCreatePDU_bitmapFormatHeader *val)
  8915. {
  8916. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  8917. return 0;
  8918. switch ((val)->choice) {
  8919. case 1:
  8920. if (!ASN1Dec_BitmapHeaderUncompressed(dec, &(val)->u.bitmapHeaderUncompressed))
  8921. return 0;
  8922. break;
  8923. case 2:
  8924. if (!ASN1Dec_BitmapHeaderT4(dec, &(val)->u.bitmapHeaderT4))
  8925. return 0;
  8926. break;
  8927. case 3:
  8928. if (!ASN1Dec_BitmapHeaderT6(dec, &(val)->u.bitmapHeaderT6))
  8929. return 0;
  8930. break;
  8931. case 4:
  8932. if (!ASN1Dec_BitmapHeaderT81(dec, &(val)->u.bitmapHeaderT81))
  8933. return 0;
  8934. break;
  8935. case 5:
  8936. if (!ASN1Dec_BitmapHeaderT82(dec, &(val)->u.bitmapHeaderT82))
  8937. return 0;
  8938. break;
  8939. case 6:
  8940. if (!ASN1Dec_NonStandardParameter(dec, &(val)->u.bitmapHeaderNonStandard))
  8941. return 0;
  8942. break;
  8943. case 0:
  8944. /* extension case */
  8945. if (!ASN1PERDecSkipFragmented(dec, 8))
  8946. return 0;
  8947. break;
  8948. default:
  8949. /* impossible */
  8950. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8951. return 0;
  8952. }
  8953. return 1;
  8954. }
  8955. static void ASN1CALL ASN1Free_BitmapCreatePDU_bitmapFormatHeader(BitmapCreatePDU_bitmapFormatHeader *val)
  8956. {
  8957. if (val) {
  8958. switch ((val)->choice) {
  8959. case 1:
  8960. ASN1Free_BitmapHeaderUncompressed(&(val)->u.bitmapHeaderUncompressed);
  8961. break;
  8962. case 4:
  8963. ASN1Free_BitmapHeaderT81(&(val)->u.bitmapHeaderT81);
  8964. break;
  8965. case 5:
  8966. ASN1Free_BitmapHeaderT82(&(val)->u.bitmapHeaderT82);
  8967. break;
  8968. case 6:
  8969. ASN1Free_NonStandardParameter(&(val)->u.bitmapHeaderNonStandard);
  8970. break;
  8971. }
  8972. }
  8973. }
  8974. static int ASN1CALL ASN1Enc_BitmapCreatePDU(ASN1encoding_t enc, BitmapCreatePDU *val)
  8975. {
  8976. ASN1uint32_t l;
  8977. if (!ASN1PEREncExtensionBitClear(enc))
  8978. return 0;
  8979. if (!ASN1PEREncBits(enc, 7, (val)->o))
  8980. return 0;
  8981. l = ASN1uint32_uoctets((val)->bitmapHandle);
  8982. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  8983. return 0;
  8984. ASN1PEREncAlignment(enc);
  8985. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bitmapHandle))
  8986. return 0;
  8987. if (!ASN1Enc_BitmapDestinationAddress(enc, &(val)->destinationAddress))
  8988. return 0;
  8989. if ((val)->o[0] & 0x80) {
  8990. if (!ASN1Enc_BitmapCreatePDU_attributes(enc, &(val)->attributes))
  8991. return 0;
  8992. }
  8993. if ((val)->o[0] & 0x40) {
  8994. if (!ASN1Enc_WorkspacePoint(enc, &(val)->anchorPoint))
  8995. return 0;
  8996. }
  8997. if (!ASN1Enc_BitmapSize(enc, &(val)->bitmapSize))
  8998. return 0;
  8999. if ((val)->o[0] & 0x20) {
  9000. if (!ASN1Enc_BitmapRegion(enc, &(val)->bitmapRegionOfInterest))
  9001. return 0;
  9002. }
  9003. if (!ASN1Enc_PixelAspectRatio(enc, &(val)->pixelAspectRatio))
  9004. return 0;
  9005. if ((val)->o[0] & 0x10) {
  9006. if (!ASN1Enc_PointDiff16(enc, &(val)->scaling))
  9007. return 0;
  9008. }
  9009. if ((val)->o[0] & 0x8) {
  9010. if (!ASN1Enc_BitmapCreatePDU_checkpoints(enc, &(val)->checkpoints))
  9011. return 0;
  9012. }
  9013. if (!ASN1Enc_BitmapCreatePDU_bitmapFormatHeader(enc, &(val)->bitmapFormatHeader))
  9014. return 0;
  9015. if ((val)->o[0] & 0x4) {
  9016. if (!ASN1Enc_BitmapData(enc, &(val)->bitmapData))
  9017. return 0;
  9018. }
  9019. if (!ASN1PEREncBoolean(enc, (val)->moreToFollow))
  9020. return 0;
  9021. if ((val)->o[0] & 0x2) {
  9022. if (!ASN1Enc_BitmapCreatePDU_nonStandardParameters(enc, &(val)->nonStandardParameters))
  9023. return 0;
  9024. }
  9025. return 1;
  9026. }
  9027. static int ASN1CALL ASN1Dec_BitmapCreatePDU(ASN1decoding_t dec, BitmapCreatePDU *val)
  9028. {
  9029. ASN1uint32_t y;
  9030. ASN1uint32_t l;
  9031. if (!ASN1PERDecExtensionBit(dec, &y))
  9032. return 0;
  9033. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  9034. return 0;
  9035. if (!ASN1PERDecU32Val(dec, 2, &l))
  9036. return 0;
  9037. l += 1;
  9038. ASN1PERDecAlignment(dec);
  9039. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bitmapHandle))
  9040. return 0;
  9041. if (!ASN1Dec_BitmapDestinationAddress(dec, &(val)->destinationAddress))
  9042. return 0;
  9043. if ((val)->o[0] & 0x80) {
  9044. if (!ASN1Dec_BitmapCreatePDU_attributes(dec, &(val)->attributes))
  9045. return 0;
  9046. }
  9047. if ((val)->o[0] & 0x40) {
  9048. if (!ASN1Dec_WorkspacePoint(dec, &(val)->anchorPoint))
  9049. return 0;
  9050. }
  9051. if (!ASN1Dec_BitmapSize(dec, &(val)->bitmapSize))
  9052. return 0;
  9053. if ((val)->o[0] & 0x20) {
  9054. if (!ASN1Dec_BitmapRegion(dec, &(val)->bitmapRegionOfInterest))
  9055. return 0;
  9056. }
  9057. if (!ASN1Dec_PixelAspectRatio(dec, &(val)->pixelAspectRatio))
  9058. return 0;
  9059. if ((val)->o[0] & 0x10) {
  9060. if (!ASN1Dec_PointDiff16(dec, &(val)->scaling))
  9061. return 0;
  9062. }
  9063. if ((val)->o[0] & 0x8) {
  9064. if (!ASN1Dec_BitmapCreatePDU_checkpoints(dec, &(val)->checkpoints))
  9065. return 0;
  9066. }
  9067. if (!ASN1Dec_BitmapCreatePDU_bitmapFormatHeader(dec, &(val)->bitmapFormatHeader))
  9068. return 0;
  9069. if ((val)->o[0] & 0x4) {
  9070. if (!ASN1Dec_BitmapData(dec, &(val)->bitmapData))
  9071. return 0;
  9072. }
  9073. if (!ASN1PERDecBoolean(dec, &(val)->moreToFollow))
  9074. return 0;
  9075. if ((val)->o[0] & 0x2) {
  9076. if (!ASN1Dec_BitmapCreatePDU_nonStandardParameters(dec, &(val)->nonStandardParameters))
  9077. return 0;
  9078. }
  9079. if (y) {
  9080. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9081. return 0;
  9082. }
  9083. return 1;
  9084. }
  9085. static void ASN1CALL ASN1Free_BitmapCreatePDU(BitmapCreatePDU *val)
  9086. {
  9087. if (val) {
  9088. ASN1Free_BitmapDestinationAddress(&(val)->destinationAddress);
  9089. if ((val)->o[0] & 0x80) {
  9090. ASN1Free_BitmapCreatePDU_attributes(&(val)->attributes);
  9091. }
  9092. ASN1Free_PixelAspectRatio(&(val)->pixelAspectRatio);
  9093. if ((val)->o[0] & 0x8) {
  9094. ASN1Free_BitmapCreatePDU_checkpoints(&(val)->checkpoints);
  9095. }
  9096. ASN1Free_BitmapCreatePDU_bitmapFormatHeader(&(val)->bitmapFormatHeader);
  9097. if ((val)->o[0] & 0x4) {
  9098. ASN1Free_BitmapData(&(val)->bitmapData);
  9099. }
  9100. if ((val)->o[0] & 0x2) {
  9101. ASN1Free_BitmapCreatePDU_nonStandardParameters(&(val)->nonStandardParameters);
  9102. }
  9103. }
  9104. }
  9105. static int ASN1CALL ASN1Enc_SIPDU(ASN1encoding_t enc, SIPDU *val)
  9106. {
  9107. ASN1encoding_t ee;
  9108. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 5, 28))
  9109. return 0;
  9110. switch ((val)->choice) {
  9111. case 1:
  9112. if (!ASN1Enc_ArchiveAcknowledgePDU(enc, &(val)->u.archiveAcknowledgePDU))
  9113. return 0;
  9114. break;
  9115. case 2:
  9116. if (!ASN1Enc_ArchiveClosePDU(enc, &(val)->u.archiveClosePDU))
  9117. return 0;
  9118. break;
  9119. case 3:
  9120. if (!ASN1Enc_ArchiveErrorPDU(enc, &(val)->u.archiveErrorPDU))
  9121. return 0;
  9122. break;
  9123. case 4:
  9124. if (!ASN1Enc_ArchiveOpenPDU(enc, &(val)->u.archiveOpenPDU))
  9125. return 0;
  9126. break;
  9127. case 5:
  9128. if (!ASN1Enc_BitmapAbortPDU(enc, &(val)->u.bitmapAbortPDU))
  9129. return 0;
  9130. break;
  9131. case 6:
  9132. if (!ASN1Enc_BitmapCheckpointPDU(enc, &(val)->u.bitmapCheckpointPDU))
  9133. return 0;
  9134. break;
  9135. case 7:
  9136. if (!ASN1Enc_BitmapCreatePDU(enc, &(val)->u.bitmapCreatePDU))
  9137. return 0;
  9138. break;
  9139. case 8:
  9140. if (!ASN1Enc_BitmapCreateContinuePDU(enc, &(val)->u.bitmapCreateContinuePDU))
  9141. return 0;
  9142. break;
  9143. case 9:
  9144. if (!ASN1Enc_BitmapDeletePDU(enc, &(val)->u.bitmapDeletePDU))
  9145. return 0;
  9146. break;
  9147. case 10:
  9148. if (!ASN1Enc_BitmapEditPDU(enc, &(val)->u.bitmapEditPDU))
  9149. return 0;
  9150. break;
  9151. case 11:
  9152. if (!ASN1Enc_ConductorPrivilegeGrantPDU(enc, &(val)->u.conductorPrivilegeGrantPDU))
  9153. return 0;
  9154. break;
  9155. case 12:
  9156. if (!ASN1Enc_ConductorPrivilegeRequestPDU(enc, &(val)->u.conductorPrivilegeRequestPDU))
  9157. return 0;
  9158. break;
  9159. case 13:
  9160. if (!ASN1Enc_DrawingCreatePDU(enc, &(val)->u.drawingCreatePDU))
  9161. return 0;
  9162. break;
  9163. case 14:
  9164. if (!ASN1Enc_DrawingDeletePDU(enc, &(val)->u.drawingDeletePDU))
  9165. return 0;
  9166. break;
  9167. case 15:
  9168. if (!ASN1Enc_DrawingEditPDU(enc, &(val)->u.drawingEditPDU))
  9169. return 0;
  9170. break;
  9171. case 16:
  9172. if (!ASN1Enc_RemoteEventPermissionGrantPDU(enc, &(val)->u.remoteEventPermissionGrantPDU))
  9173. return 0;
  9174. break;
  9175. case 17:
  9176. if (!ASN1Enc_RemoteEventPermissionRequestPDU(enc, &(val)->u.remoteEventPermissionRequestPDU))
  9177. return 0;
  9178. break;
  9179. case 18:
  9180. if (!ASN1Enc_RemoteKeyboardEventPDU(enc, &(val)->u.remoteKeyboardEventPDU))
  9181. return 0;
  9182. break;
  9183. case 19:
  9184. if (!ASN1Enc_RemotePointingDeviceEventPDU(enc, &(val)->u.remotePointingDeviceEventPDU))
  9185. return 0;
  9186. break;
  9187. case 20:
  9188. if (!ASN1Enc_RemotePrintPDU(enc, &(val)->u.remotePrintPDU))
  9189. return 0;
  9190. break;
  9191. case 21:
  9192. if (!ASN1Enc_SINonStandardPDU(enc, &(val)->u.siNonStandardPDU))
  9193. return 0;
  9194. break;
  9195. case 22:
  9196. if (!ASN1Enc_WorkspaceCreatePDU(enc, &(val)->u.workspaceCreatePDU))
  9197. return 0;
  9198. break;
  9199. case 23:
  9200. if (!ASN1Enc_WorkspaceCreateAcknowledgePDU(enc, &(val)->u.workspaceCreateAcknowledgePDU))
  9201. return 0;
  9202. break;
  9203. case 24:
  9204. if (!ASN1Enc_WorkspaceDeletePDU(enc, &(val)->u.workspaceDeletePDU))
  9205. return 0;
  9206. break;
  9207. case 25:
  9208. if (!ASN1Enc_WorkspaceEditPDU(enc, &(val)->u.workspaceEditPDU))
  9209. return 0;
  9210. break;
  9211. case 26:
  9212. if (!ASN1Enc_WorkspacePlaneCopyPDU(enc, &(val)->u.workspacePlaneCopyPDU))
  9213. return 0;
  9214. break;
  9215. case 27:
  9216. if (!ASN1Enc_WorkspaceReadyPDU(enc, &(val)->u.workspaceReadyPDU))
  9217. return 0;
  9218. break;
  9219. case 28:
  9220. if (!ASN1Enc_WorkspaceRefreshStatusPDU(enc, &(val)->u.workspaceRefreshStatusPDU))
  9221. return 0;
  9222. break;
  9223. case 29:
  9224. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9225. return 0;
  9226. if (!ASN1Enc_FontPDU(ee, &(val)->u.fontPDU))
  9227. return 0;
  9228. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9229. return 0;
  9230. ASN1_CloseEncoder2(ee);
  9231. break;
  9232. case 30:
  9233. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9234. return 0;
  9235. if (!ASN1Enc_TextCreatePDU(ee, &(val)->u.textCreatePDU))
  9236. return 0;
  9237. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9238. return 0;
  9239. ASN1_CloseEncoder2(ee);
  9240. break;
  9241. case 31:
  9242. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9243. return 0;
  9244. if (!ASN1Enc_TextDeletePDU(ee, &(val)->u.textDeletePDU))
  9245. return 0;
  9246. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9247. return 0;
  9248. ASN1_CloseEncoder2(ee);
  9249. break;
  9250. case 32:
  9251. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9252. return 0;
  9253. if (!ASN1Enc_TextEditPDU(ee, &(val)->u.textEditPDU))
  9254. return 0;
  9255. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9256. return 0;
  9257. ASN1_CloseEncoder2(ee);
  9258. break;
  9259. case 33:
  9260. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9261. return 0;
  9262. if (!ASN1Enc_VideoWindowCreatePDU(ee, &(val)->u.videoWindowCreatePDU))
  9263. return 0;
  9264. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9265. return 0;
  9266. ASN1_CloseEncoder2(ee);
  9267. break;
  9268. case 34:
  9269. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9270. return 0;
  9271. if (!ASN1Enc_VideoWindowDeletePDU(ee, &(val)->u.videoWindowDeleatePDU))
  9272. return 0;
  9273. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9274. return 0;
  9275. ASN1_CloseEncoder2(ee);
  9276. break;
  9277. case 35:
  9278. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9279. return 0;
  9280. if (!ASN1Enc_VideoWindowEditPDU(ee, &(val)->u.videoWindowEditPDU))
  9281. return 0;
  9282. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9283. return 0;
  9284. ASN1_CloseEncoder2(ee);
  9285. break;
  9286. default:
  9287. /* impossible */
  9288. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  9289. return 0;
  9290. }
  9291. return 1;
  9292. }
  9293. static int ASN1CALL ASN1Dec_SIPDU(ASN1decoding_t dec, SIPDU *val)
  9294. {
  9295. ASN1decoding_t dd;
  9296. ASN1octet_t *db;
  9297. ASN1uint32_t ds;
  9298. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 5, 28))
  9299. return 0;
  9300. switch ((val)->choice) {
  9301. case 1:
  9302. if (!ASN1Dec_ArchiveAcknowledgePDU(dec, &(val)->u.archiveAcknowledgePDU))
  9303. return 0;
  9304. break;
  9305. case 2:
  9306. if (!ASN1Dec_ArchiveClosePDU(dec, &(val)->u.archiveClosePDU))
  9307. return 0;
  9308. break;
  9309. case 3:
  9310. if (!ASN1Dec_ArchiveErrorPDU(dec, &(val)->u.archiveErrorPDU))
  9311. return 0;
  9312. break;
  9313. case 4:
  9314. if (!ASN1Dec_ArchiveOpenPDU(dec, &(val)->u.archiveOpenPDU))
  9315. return 0;
  9316. break;
  9317. case 5:
  9318. if (!ASN1Dec_BitmapAbortPDU(dec, &(val)->u.bitmapAbortPDU))
  9319. return 0;
  9320. break;
  9321. case 6:
  9322. if (!ASN1Dec_BitmapCheckpointPDU(dec, &(val)->u.bitmapCheckpointPDU))
  9323. return 0;
  9324. break;
  9325. case 7:
  9326. if (!ASN1Dec_BitmapCreatePDU(dec, &(val)->u.bitmapCreatePDU))
  9327. return 0;
  9328. break;
  9329. case 8:
  9330. if (!ASN1Dec_BitmapCreateContinuePDU(dec, &(val)->u.bitmapCreateContinuePDU))
  9331. return 0;
  9332. break;
  9333. case 9:
  9334. if (!ASN1Dec_BitmapDeletePDU(dec, &(val)->u.bitmapDeletePDU))
  9335. return 0;
  9336. break;
  9337. case 10:
  9338. if (!ASN1Dec_BitmapEditPDU(dec, &(val)->u.bitmapEditPDU))
  9339. return 0;
  9340. break;
  9341. case 11:
  9342. if (!ASN1Dec_ConductorPrivilegeGrantPDU(dec, &(val)->u.conductorPrivilegeGrantPDU))
  9343. return 0;
  9344. break;
  9345. case 12:
  9346. if (!ASN1Dec_ConductorPrivilegeRequestPDU(dec, &(val)->u.conductorPrivilegeRequestPDU))
  9347. return 0;
  9348. break;
  9349. case 13:
  9350. if (!ASN1Dec_DrawingCreatePDU(dec, &(val)->u.drawingCreatePDU))
  9351. return 0;
  9352. break;
  9353. case 14:
  9354. if (!ASN1Dec_DrawingDeletePDU(dec, &(val)->u.drawingDeletePDU))
  9355. return 0;
  9356. break;
  9357. case 15:
  9358. if (!ASN1Dec_DrawingEditPDU(dec, &(val)->u.drawingEditPDU))
  9359. return 0;
  9360. break;
  9361. case 16:
  9362. if (!ASN1Dec_RemoteEventPermissionGrantPDU(dec, &(val)->u.remoteEventPermissionGrantPDU))
  9363. return 0;
  9364. break;
  9365. case 17:
  9366. if (!ASN1Dec_RemoteEventPermissionRequestPDU(dec, &(val)->u.remoteEventPermissionRequestPDU))
  9367. return 0;
  9368. break;
  9369. case 18:
  9370. if (!ASN1Dec_RemoteKeyboardEventPDU(dec, &(val)->u.remoteKeyboardEventPDU))
  9371. return 0;
  9372. break;
  9373. case 19:
  9374. if (!ASN1Dec_RemotePointingDeviceEventPDU(dec, &(val)->u.remotePointingDeviceEventPDU))
  9375. return 0;
  9376. break;
  9377. case 20:
  9378. if (!ASN1Dec_RemotePrintPDU(dec, &(val)->u.remotePrintPDU))
  9379. return 0;
  9380. break;
  9381. case 21:
  9382. if (!ASN1Dec_SINonStandardPDU(dec, &(val)->u.siNonStandardPDU))
  9383. return 0;
  9384. break;
  9385. case 22:
  9386. if (!ASN1Dec_WorkspaceCreatePDU(dec, &(val)->u.workspaceCreatePDU))
  9387. return 0;
  9388. break;
  9389. case 23:
  9390. if (!ASN1Dec_WorkspaceCreateAcknowledgePDU(dec, &(val)->u.workspaceCreateAcknowledgePDU))
  9391. return 0;
  9392. break;
  9393. case 24:
  9394. if (!ASN1Dec_WorkspaceDeletePDU(dec, &(val)->u.workspaceDeletePDU))
  9395. return 0;
  9396. break;
  9397. case 25:
  9398. if (!ASN1Dec_WorkspaceEditPDU(dec, &(val)->u.workspaceEditPDU))
  9399. return 0;
  9400. break;
  9401. case 26:
  9402. if (!ASN1Dec_WorkspacePlaneCopyPDU(dec, &(val)->u.workspacePlaneCopyPDU))
  9403. return 0;
  9404. break;
  9405. case 27:
  9406. if (!ASN1Dec_WorkspaceReadyPDU(dec, &(val)->u.workspaceReadyPDU))
  9407. return 0;
  9408. break;
  9409. case 28:
  9410. if (!ASN1Dec_WorkspaceRefreshStatusPDU(dec, &(val)->u.workspaceRefreshStatusPDU))
  9411. return 0;
  9412. break;
  9413. case 29:
  9414. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9415. return 0;
  9416. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9417. return 0;
  9418. if (!ASN1Dec_FontPDU(dd, &(val)->u.fontPDU))
  9419. return 0;
  9420. ASN1_CloseDecoder(dd);
  9421. ASN1Free(db);
  9422. break;
  9423. case 30:
  9424. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9425. return 0;
  9426. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9427. return 0;
  9428. if (!ASN1Dec_TextCreatePDU(dd, &(val)->u.textCreatePDU))
  9429. return 0;
  9430. ASN1_CloseDecoder(dd);
  9431. ASN1Free(db);
  9432. break;
  9433. case 31:
  9434. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9435. return 0;
  9436. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9437. return 0;
  9438. if (!ASN1Dec_TextDeletePDU(dd, &(val)->u.textDeletePDU))
  9439. return 0;
  9440. ASN1_CloseDecoder(dd);
  9441. ASN1Free(db);
  9442. break;
  9443. case 32:
  9444. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9445. return 0;
  9446. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9447. return 0;
  9448. if (!ASN1Dec_TextEditPDU(dd, &(val)->u.textEditPDU))
  9449. return 0;
  9450. ASN1_CloseDecoder(dd);
  9451. ASN1Free(db);
  9452. break;
  9453. case 33:
  9454. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9455. return 0;
  9456. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9457. return 0;
  9458. if (!ASN1Dec_VideoWindowCreatePDU(dd, &(val)->u.videoWindowCreatePDU))
  9459. return 0;
  9460. ASN1_CloseDecoder(dd);
  9461. ASN1Free(db);
  9462. break;
  9463. case 34:
  9464. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9465. return 0;
  9466. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9467. return 0;
  9468. if (!ASN1Dec_VideoWindowDeletePDU(dd, &(val)->u.videoWindowDeleatePDU))
  9469. return 0;
  9470. ASN1_CloseDecoder(dd);
  9471. ASN1Free(db);
  9472. break;
  9473. case 35:
  9474. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9475. return 0;
  9476. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9477. return 0;
  9478. if (!ASN1Dec_VideoWindowEditPDU(dd, &(val)->u.videoWindowEditPDU))
  9479. return 0;
  9480. ASN1_CloseDecoder(dd);
  9481. ASN1Free(db);
  9482. break;
  9483. case 0:
  9484. /* extension case */
  9485. if (!ASN1PERDecSkipFragmented(dec, 8))
  9486. return 0;
  9487. break;
  9488. default:
  9489. /* impossible */
  9490. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  9491. return 0;
  9492. }
  9493. return 1;
  9494. }
  9495. static void ASN1CALL ASN1Free_SIPDU(SIPDU *val)
  9496. {
  9497. if (val) {
  9498. switch ((val)->choice) {
  9499. case 1:
  9500. ASN1Free_ArchiveAcknowledgePDU(&(val)->u.archiveAcknowledgePDU);
  9501. break;
  9502. case 2:
  9503. ASN1Free_ArchiveClosePDU(&(val)->u.archiveClosePDU);
  9504. break;
  9505. case 3:
  9506. ASN1Free_ArchiveErrorPDU(&(val)->u.archiveErrorPDU);
  9507. break;
  9508. case 4:
  9509. ASN1Free_ArchiveOpenPDU(&(val)->u.archiveOpenPDU);
  9510. break;
  9511. case 5:
  9512. ASN1Free_BitmapAbortPDU(&(val)->u.bitmapAbortPDU);
  9513. break;
  9514. case 6:
  9515. ASN1Free_BitmapCheckpointPDU(&(val)->u.bitmapCheckpointPDU);
  9516. break;
  9517. case 7:
  9518. ASN1Free_BitmapCreatePDU(&(val)->u.bitmapCreatePDU);
  9519. break;
  9520. case 8:
  9521. ASN1Free_BitmapCreateContinuePDU(&(val)->u.bitmapCreateContinuePDU);
  9522. break;
  9523. case 9:
  9524. ASN1Free_BitmapDeletePDU(&(val)->u.bitmapDeletePDU);
  9525. break;
  9526. case 10:
  9527. ASN1Free_BitmapEditPDU(&(val)->u.bitmapEditPDU);
  9528. break;
  9529. case 11:
  9530. ASN1Free_ConductorPrivilegeGrantPDU(&(val)->u.conductorPrivilegeGrantPDU);
  9531. break;
  9532. case 12:
  9533. ASN1Free_ConductorPrivilegeRequestPDU(&(val)->u.conductorPrivilegeRequestPDU);
  9534. break;
  9535. case 13:
  9536. ASN1Free_DrawingCreatePDU(&(val)->u.drawingCreatePDU);
  9537. break;
  9538. case 14:
  9539. ASN1Free_DrawingDeletePDU(&(val)->u.drawingDeletePDU);
  9540. break;
  9541. case 15:
  9542. ASN1Free_DrawingEditPDU(&(val)->u.drawingEditPDU);
  9543. break;
  9544. case 16:
  9545. ASN1Free_RemoteEventPermissionGrantPDU(&(val)->u.remoteEventPermissionGrantPDU);
  9546. break;
  9547. case 17:
  9548. ASN1Free_RemoteEventPermissionRequestPDU(&(val)->u.remoteEventPermissionRequestPDU);
  9549. break;
  9550. case 18:
  9551. ASN1Free_RemoteKeyboardEventPDU(&(val)->u.remoteKeyboardEventPDU);
  9552. break;
  9553. case 19:
  9554. ASN1Free_RemotePointingDeviceEventPDU(&(val)->u.remotePointingDeviceEventPDU);
  9555. break;
  9556. case 20:
  9557. ASN1Free_RemotePrintPDU(&(val)->u.remotePrintPDU);
  9558. break;
  9559. case 21:
  9560. ASN1Free_SINonStandardPDU(&(val)->u.siNonStandardPDU);
  9561. break;
  9562. case 22:
  9563. ASN1Free_WorkspaceCreatePDU(&(val)->u.workspaceCreatePDU);
  9564. break;
  9565. case 23:
  9566. ASN1Free_WorkspaceCreateAcknowledgePDU(&(val)->u.workspaceCreateAcknowledgePDU);
  9567. break;
  9568. case 24:
  9569. ASN1Free_WorkspaceDeletePDU(&(val)->u.workspaceDeletePDU);
  9570. break;
  9571. case 25:
  9572. ASN1Free_WorkspaceEditPDU(&(val)->u.workspaceEditPDU);
  9573. break;
  9574. case 26:
  9575. ASN1Free_WorkspacePlaneCopyPDU(&(val)->u.workspacePlaneCopyPDU);
  9576. break;
  9577. case 27:
  9578. ASN1Free_WorkspaceReadyPDU(&(val)->u.workspaceReadyPDU);
  9579. break;
  9580. case 28:
  9581. ASN1Free_WorkspaceRefreshStatusPDU(&(val)->u.workspaceRefreshStatusPDU);
  9582. break;
  9583. case 29:
  9584. ASN1Free_FontPDU(&(val)->u.fontPDU);
  9585. break;
  9586. case 30:
  9587. ASN1Free_TextCreatePDU(&(val)->u.textCreatePDU);
  9588. break;
  9589. case 31:
  9590. ASN1Free_TextDeletePDU(&(val)->u.textDeletePDU);
  9591. break;
  9592. case 32:
  9593. ASN1Free_TextEditPDU(&(val)->u.textEditPDU);
  9594. break;
  9595. case 33:
  9596. ASN1Free_VideoWindowCreatePDU(&(val)->u.videoWindowCreatePDU);
  9597. break;
  9598. case 34:
  9599. ASN1Free_VideoWindowDeletePDU(&(val)->u.videoWindowDeleatePDU);
  9600. break;
  9601. case 35:
  9602. ASN1Free_VideoWindowEditPDU(&(val)->u.videoWindowEditPDU);
  9603. break;
  9604. }
  9605. }
  9606. }