oxihuman-export 0.1.2

Export pipeline for OxiHuman — glTF, COLLADA, STL, and streaming formats
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
pub mod svg_path_export;
pub use svg_path_export::{
    close_path as svg_close_path, command_count as svg_command_count, commands_to_d, cubic_to,
    line_to as svg_line_to, move_to as svg_move_to, new_svg_path, path_to_svg_tag,
    polyline_to_path as svg_polyline_to_path, starts_with_move, wrap_svg, SvgPathCmd,
    SvgPathElement,
};

pub mod svg_polygon_export;
pub use svg_polygon_export::{
    add_polygon as svg_add_polygon, add_polyline as svg_add_polyline, export_polygon_svg,
    new_polygon as new_svg_polygon, new_polygon_doc, new_polyline as new_svg_polyline,
    points_to_attr, polygon_aabb, polygon_to_tag, polygon_vertex_count, polyline_to_tag,
    SvgPolygon, SvgPolygonDoc, SvgPolyline,
};

pub mod eps_export;
pub use eps_export::{
    add_eps_path, edges_to_eps_paths, eps_bounding_box, eps_path_count, export_eps,
    new_eps_document, EpsDocument, EpsOptions, EpsPath,
};

pub mod pdf_stub_export;
pub use pdf_stub_export::{
    add_content_stream, add_text_stream, export_pdf_stub, is_valid_pdf_header, new_pdf_stub,
    pdf_estimated_size, pdf_object_count, PdfObject, PdfStub,
};

pub mod cbor_export;
pub use cbor_export::{
    cbor_header, encode_array_header, encode_bool, encode_bytes, encode_f32, encode_map_header,
    encode_null, encode_text, encode_uint, uint_byte_len, CborMajor,
};

pub mod bson_export;
pub use bson_export::{
    bson_byte_len, element_count, serialize_bson, BsonDocument, BsonElement, BsonType,
};

pub mod smile_export;
pub use smile_export::{
    export_smile, is_smile_magic, SmileDocument, SmileToken, SMILE_MAGIC, SMILE_VERSION,
};

pub mod ion_export;
pub use ion_export::{export_ion, ion_value_count, IonDocument, IonValue};

pub mod thrift_export;
pub use thrift_export::{ThriftEncoder, ThriftType};

pub mod protobuf_export;
pub use protobuf_export::{encode_tag, encode_varint, zigzag32, zigzag64, ProtoEncoder, WireType};

pub mod grpc_stub_types;
pub mod grpc_stub_service;
pub mod grpc_stub_export;
pub use grpc_stub_export::{
    add_metadata, build_grpc_request, build_grpc_response, is_ok as grpc_is_ok, GrpcCompression,
    GrpcFrame, GrpcRequest, GrpcResponse,
};

pub mod jsonrpc_export;
pub use jsonrpc_export::{
    is_success as jsonrpc_is_success, new_jsonrpc_error, new_jsonrpc_request, new_jsonrpc_result,
    serialize_request as serialize_jsonrpc_request,
    serialize_response as serialize_jsonrpc_response, JsonRpcError, JsonRpcRequest,
    JsonRpcResponse,
};

pub mod graphql_export;
pub use graphql_export::{
    add_variable, new_mutation, new_query, serialize_gql, var_count, GqlOpType, GqlOperation,
    GqlVar,
};

pub mod openapi_export;
pub use openapi_export::{
    add_param, add_path as add_openapi_path, export_openapi_json, new_openapi_doc,
    path_count as openapi_path_count, OpenApiDoc, OpenApiInfo, OpenApiParam, OpenApiPath,
};

pub mod swagger_export;
pub use swagger_export::{
    add_operation, add_tag, export_swagger_json, new_swagger_doc, operation_count, SwaggerDoc,
    SwaggerInfo, SwaggerOperation,
};

pub mod raml_export;
pub use raml_export::{
    add_method as add_raml_method, add_resource, export_raml, new_raml_doc, resource_count,
    RamlDoc, RamlMethod, RamlResource,
};

pub mod hal_export;
pub use hal_export::{link_count, property_count, serialize_hal, HalLink, HalResource};

pub mod jsonld_export;
pub use jsonld_export::{
    export_jsonld, node_count, serialize_node, LdContextEntry, LdDocument, LdNode,
};

pub mod turtle_export;
pub use turtle_export::{
    contains_triple, export_turtle, prefix_count, triple_count, RdfTriple, TurtleDoc,
};

pub mod rdf_xml_export;
pub use rdf_xml_export::{
    description_count, export_rdf_xml, has_xml_declaration, RdfDescription, RdfNs, RdfXmlDoc,
};

pub mod spine_export;
pub use spine_export::{
    export_spine_json, find_bone as spine_find_bone, total_bone_length as spine_total_bone_length,
    SpineBone, SpineExport, SpineSlot,
};

pub mod dragonbones_export;
pub use dragonbones_export::{
    avg_frame_rate as db_avg_frame_rate, export_dragonbones_json,
    find_armature as db_find_armature, total_bone_count_db, DbArmature, DragonBonesExport,
};

pub mod cocos_export;
pub use cocos_export::{
    export_cocos_json, find_node as cocos_find_node, scene_depth, CocosNode, CocosScene,
};

pub mod lottie_export;
pub use lottie_export::{
    active_frame_range, export_lottie_json, find_lottie_layer, validate_lottie, LottieExport,
    LottieLayer,
};

pub mod gif_export;
pub use gif_export::{estimate_gif_size, gif_metadata_json, validate_gif, GifExport, GifFrame};

pub mod apng_export;
pub use apng_export::{
    apng_metadata_json, estimate_raw_bytes as apng_estimate_raw_bytes, validate_apng, ApngExport,
    ApngFrame,
};

pub mod webp_export;
pub use webp_export::{
    average_luminance as webp_average_luminance, estimate_webp_bytes, validate_webp,
    webp_metadata_json, WebpExport, WebpOptions,
};

pub mod avif_export;
pub use avif_export::{
    all_opaque, avif_metadata_json, estimate_avif_bytes, validate_avif, AvifExport, AvifOptions,
    AvifPreset,
};

pub mod jpeg_xl_export;
pub use jpeg_xl_export::{
    estimate_jxl_bytes, jxl_metadata_json, peak_pixel_value, validate_jxl, JxlExport, JxlMode,
    JxlOptions,
};

pub mod openexr_export;
pub use openexr_export::{
    estimate_exr_bytes, exr_metadata_json, find_channel as exr_find_channel, ExrChannel,
    ExrChannelType, ExrExport,
};

pub mod tiff_export;
pub use tiff_export::{
    estimate_tiff_bytes, tiff_metadata_json, validate_tiff, TiffCompression, TiffExport,
    TiffOptions,
};

pub mod bmp_export;
pub use bmp_export::{
    average_brightness, build_bmp_header, estimate_bmp_bytes, validate_bmp, BmpBitDepth, BmpExport,
};

pub mod ico_export;
pub use ico_export::{
    estimate_ico_bytes, find_ico_entry, ico_metadata_json, validate_ico, IcoEntry, IcoExport,
};

pub mod psd_export;
pub use psd_export::{
    estimate_psd_bytes, find_psd_layer, psd_metadata_json, validate_psd, PsdBlendMode, PsdExport,
    PsdLayer,
};

pub mod pdf_export;
pub use pdf_export::{
    estimate_pdf_bytes, pdf_header_bytes, pdf_metadata_json, validate_pdf, PdfExport, PdfPage,
    PdfPageSize,
};

pub mod epub_export;
pub use epub_export::{
    epub_metadata_json, opf_manifest_stub, validate_epub, EpubChapter, EpubExport, EpubMeta,
};

pub mod abc_pointcloud_export;
pub use abc_pointcloud_export::{
    abc_pointcloud_config_to_json, add_abc_frame, estimate_abc_size_bytes,
    frame_count as abc_frame_count, frame_point_count, new_abc_pointcloud,
    total_point_count as abc_total_point_count, validate_abc_pointcloud, AbcPointcloudConfig,
    AbcPointcloudExport, AbcPointcloudFrame,
};

pub mod vdb_export;
pub use vdb_export::{
    default_vdb_config, new_vdb_grid, vdb_active_count, vdb_clear, vdb_export_to_bytes,
    vdb_get_voxel, vdb_set_voxel, vdb_stats, vdb_to_json, VdbConfig, VdbExportResult, VdbGrid,
};

pub mod bgeo_export;
pub use bgeo_export::{
    bgeo_add_attr, bgeo_add_point, bgeo_attr_count, bgeo_bounds, bgeo_find_attr, bgeo_header_bytes,
    bgeo_set_prim_count, bgeo_size_estimate, new_bgeo_export, validate_bgeo, BgeoAttr,
    BgeoAttrType, BgeoExport, BGEO_VERSION,
};

pub mod hip_export;
pub use hip_export::{
    hip_add_node, hip_extension, hip_find_node, hip_node_count, hip_set_parm, hip_size_estimate,
    hip_to_string, new_hip_export, validate_hip, HipExport, HipFormat, HipNode,
};

pub mod nuke_export;
pub use nuke_export::{
    new_nuke_export, nuke_add_node, nuke_count_by_class, nuke_find_node, nuke_node_count,
    nuke_set_knob, nuke_set_position, nuke_size_estimate, nuke_to_string, validate_nuke, NukeNode,
    NukeScriptExport,
};

pub mod hiero_export;
pub use hiero_export::{
    clips_on_track, hiero_add_clip, hiero_clip_count, hiero_find_clip, hiero_script_size,
    hiero_to_python, new_hiero_timeline, timeline_duration_frames, validate_hiero_timeline,
    HieroClip, HieroTimeline,
};

pub mod resolve_export;
pub use resolve_export::{
    new_resolve_timeline, resolve_add_clip, resolve_clip_count, resolve_clips_for_reel,
    resolve_duration_frames, resolve_script_size, resolve_to_python, timeline_type_name,
    validate_resolve_timeline, ResolveClip, ResolveTimeline, ResolveTimelineType,
};

pub mod edl_export;
pub use edl_export::{
    edl_add_event, edl_event_count, edl_size_bytes, edl_to_string, events_for_reel,
    frames_to_timecode, new_edl_export, validate_edl, EdlEvent, EdlExport,
};

pub mod aaf_export;
pub use aaf_export::{
    aaf_add_component, aaf_add_track, aaf_component_count, aaf_duration_frames, aaf_find_track,
    aaf_size_estimate, aaf_to_xml_stub, aaf_track_count, new_aaf_export, validate_aaf,
    AafComponent, AafEssenceKind, AafExport, AafTrack,
};

pub mod mxf_export;
pub use mxf_export::{
    mxf_add_track, mxf_duration_frames, mxf_find_track_by_type, mxf_header_bytes, mxf_op_name,
    mxf_size_estimate, mxf_track_count, new_mxf_export, validate_mxf, MxfExport, MxfOpPattern,
    MxfTrack,
};

pub mod r3d_export;
pub use r3d_export::{
    new_r3d_export, r3d_add_frame, r3d_average_iso, r3d_duration_seconds, r3d_frame_count,
    r3d_metadata_string, r3d_resolution, r3d_size_estimate, validate_r3d, R3dCodec, R3dExport,
    R3dFrame,
};

pub mod arriraw_export;
pub use arriraw_export::{
    arriraw_add_frame, arriraw_average_iso, arriraw_duration, arriraw_frame_count,
    arriraw_metadata_string, arriraw_resolution, arriraw_size_estimate, new_arriraw_export,
    validate_arriraw, ArriFrame, ArriModel, ArriRawExport,
};

pub mod cineraw_export;
pub use cineraw_export::{
    cineraw_add_frame, cineraw_avg_shutter_angle, cineraw_duration, cineraw_frame_count,
    cineraw_metadata_string, cineraw_resolution, cineraw_size_estimate, new_cineraw_export,
    validate_cineraw, CineDngBitDepth, CineDngFrame, CineRawExport,
};

pub mod cdl_export;
pub use cdl_export::{
    apply_cdl, cdl_add_identity, cdl_add_node, cdl_find_node, cdl_node_count, cdl_size_bytes,
    cdl_to_xml, new_cdl_export, validate_cdl, CdlExport, CdlNode,
};

pub mod cube_lut_export;
pub use cube_lut_export::{
    cube_apply_gain, cube_entry_count, cube_sample, cube_size_bytes, cube_to_string,
    expected_entry_count, new_cube_lut, validate_cube_lut, CubeLut,
};

pub mod csp_lut_export;
pub use csp_lut_export::{
    csp_add_shaper, csp_average_brightness, csp_entry_count, csp_sample, csp_shaper_count,
    csp_size_bytes, csp_to_string, new_csp_lut, validate_csp_lut, CspLut, CspShaper,
};

pub mod srt_export;
pub use srt_export::{
    ms_to_srt_time, render_srt, total_duration_ms as srt_total_duration_ms, validate_srt,
    SrtDocument, SrtEntry,
};

pub mod vtt_export;
pub use vtt_export::{
    max_cue_length, ms_to_vtt_time, render_vtt, total_duration_ms as vtt_total_duration_ms,
    validate_vtt, VttCue, VttDocument,
};

pub mod ass_export;
pub use ass_export::{
    cs_to_ass_time, default_style as default_ass_style, render_ass, render_dialogues,
    render_script_info, total_duration_cs, validate_ass, AssDialogue, AssDocument, AssStyle,
};

pub mod ttml_export;
pub use ttml_export::{
    ms_to_ttml_time, render_ttml, total_duration_ms as ttml_total_duration_ms, validate_ttml,
    xml_escape as ttml_xml_escape, TtmlDocument, TtmlParagraph, TtmlSpan,
};

pub mod smil_export;
pub use smil_export::{
    add_fullscreen_region, ms_to_smil_clock, render_smil, validate_smil, SmilDocument, SmilMedia,
    SmilRegion,
};

pub mod bibtex_export;
pub use bibtex_export::{
    render_bibtex, render_entry as render_bibtex_entry, validate_entry as validate_bibtex_entry,
    BibtexBibliography, BibtexEntry, BibtexEntryType,
};

pub mod ris_export;
pub use ris_export::{
    count_by_type as ris_count_by_type, render_record as render_ris_record, render_ris,
    validate_record as validate_ris_record, RisDatabase, RisField, RisRecord, RisType,
};

pub mod endnote_export;
pub use endnote_export::{
    count_by_type as endnote_count_by_type, render_endnote_xml, render_ref_xml,
    validate_ref as validate_endnote_ref, EndnoteLibrary, EndnoteRef, EndnoteRefType,
};

pub mod zotero_export;
pub use zotero_export::{
    count_by_type as zotero_count_by_type, item_to_json as zotero_item_to_json,
    library_to_json as zotero_library_to_json, validate_item as validate_zotero_item, CslCreator,
    CslItem, ZoteroLibrary,
};

pub mod json_ld_export;
pub use json_ld_export::{
    add_schema_context, node_to_json as json_ld_node_to_json, render_json_ld,
    validate_document as validate_json_ld, JsonLdDocument, JsonLdNode,
};

pub mod rdf_export;
pub use rdf_export::{
    count_by_predicate as rdf_count_by_predicate, render_triple_turtle, render_turtle,
    subjects_with_object, validate_graph as validate_rdf_graph, RdfGraph,
    RdfTriple as RdfExportTriple,
};

pub mod owl_export;
pub use owl_export::{
    all_superclass_iris, render_owl_turtle, root_class_count, validate_ontology, OwlClass,
    OwlObjectProperty, OwlOntology,
};

pub mod sparql_export;
pub use sparql_export::{
    add_rdf_prefix as sparql_add_rdf_prefix, add_schema_prefix as sparql_add_schema_prefix,
    render_sparql, validate_query as validate_sparql_query, SparqlPrefix, SparqlQuery,
    SparqlQueryType,
};

pub mod graphql_schema_export;
pub use graphql_schema_export::{
    render_schema_sdl, render_type_sdl, validate_schema as validate_graphql_schema, GqlField,
    GqlFieldType, GqlObjectType, GqlSchema,
};

pub mod openapi_schema_export;
pub use openapi_schema_export::{
    render_openapi_json, total_operation_count, validate_spec as validate_openapi_spec, ApiInfo,
    ApiOperation, ApiPath, HttpMethod, OpenApiSpec,
};

pub mod asyncapi_export;
pub use asyncapi_export::{
    add_server as asyncapi_add_server, publish_channel_count, render_asyncapi_json,
    subscribe_channel_count, validate_spec as validate_asyncapi_spec, AsyncApiSpec, AsyncChannel,
    AsyncMessage, AsyncProtocol,
};

pub mod iges_curve_export;
pub use iges_curve_export::{
    add_iges_curve, iges_curve_count, iges_entity_line, iges_global_section, new_iges_curve_export,
    validate_iges_curves, IgesCurveEntity, IgesCurveExport, IgesCurveType,
};

pub mod step_solid_export;
pub use step_solid_export::{
    add_step_entity, new_step_solid_export, step_entity_count, step_entity_line, step_file_header,
    validate_step_export, StepEntity, StepEntityKind, StepSolidExport,
};

pub mod brep_export;
pub use brep_export::{
    add_brep_edge, add_brep_face, add_brep_vertex, euler_characteristic, new_brep_export,
    validate_brep, BRepEdge, BRepExport, BRepFace, BRepVertex,
};

pub mod sat_export;
pub use sat_export::{
    add_sat_entity, find_sat_entity, new_sat_export, sat_entity_count, sat_entity_line, sat_header,
    validate_sat, SatEntity, SatExport,
};

pub mod parasolid_export;
pub use parasolid_export::{
    add_ps_entity, new_parasolid_export, ps_count_by_tag, ps_entity_count, ps_xt_header,
    validate_parasolid, ParasolidExport, PsEntity, PsEntityTag,
};

pub mod jt_export;
pub use jt_export::{
    add_jt_lod, jt_file_header, jt_high_lod, jt_lod_count, jt_total_tri_count,
    jt_total_vertex_count, new_jt_export, validate_jt_export, JtExport, JtLod, JtLodLevel,
};

pub mod threedxml_export;
pub use threedxml_export::{
    add_threedxml_occurrence, add_threedxml_rep, new_threedxml_export, threedxml_occurrence_count,
    threedxml_rep_count, threedxml_xml_header, validate_threedxml, ThreeDXmlExport,
    ThreeDXmlOccurrence, ThreeDXmlRep,
};

pub mod ifc_export;
pub use ifc_export::{
    add_ifc_entity, ifc_count_class, ifc_entity_count, ifc_entity_line, ifc_header, new_ifc_export,
    validate_ifc, IfcClass, IfcEntity, IfcExport,
};

pub mod citygml_export;
pub use citygml_export::{
    add_city_building, citygml_building_count, citygml_max_lod, citygml_total_volume,
    citygml_xml_header, new_citygml_export, validate_citygml, CityBuilding, CityGmlExport, CityLod,
};

pub mod landxml_export;
pub use landxml_export::{
    add_landxml_alignment, add_landxml_surface, landxml_alignment_count, landxml_surface_count,
    landxml_total_tris, landxml_xml_header, new_landxml_export, validate_landxml, LandXmlAlignment,
    LandXmlExport, LandXmlSurface,
};

pub mod geotiff_export;
pub use geotiff_export::{
    geotiff_get_pixel, geotiff_min_max, geotiff_pixel_count, geotiff_pixel_to_geo,
    geotiff_set_pixel, new_geotiff_export, validate_geotiff, GeoTiffExport, GeoTiffPixelType,
};

pub mod las_export;
pub use las_export::{
    add_las_point, build_las_header_bytes, las_file_size_estimate_v2, las_from_positions,
    las_point_count_v2, las_world_x, new_las_export, validate_las, LasExport, LasHeaderV2,
    LasPointV2, LAS_MAGIC,
};

pub mod e57_export;
pub use e57_export::{
    add_e57_point, e57_bbox, e57_from_positions, e57_point_count, e57_size_estimate,
    e57_xml_header_v2, export_e57_stub, new_e57_export, validate_e57, E57Export, E57Point,
    E57_MAGIC,
};

pub mod pts_pointcloud_export;
pub use pts_pointcloud_export::{
    add_pts_point, export_pts_text, new_pts_export, pts_bbox, pts_centroid, pts_point_count,
    PtsExport, PtsPoint,
};

pub mod xyz_pointcloud_export;
pub use xyz_pointcloud_export::{
    add_xyz_point, add_xyz_point_normal, export_xyz_text, new_xyz_export, validate_xyz, xyz_bbox,
    xyz_centroid, xyz_point_count, XyzExport,
};

pub mod pcd_export;
pub use pcd_export::{
    add_pcd_point, build_pcd_header, export_pcd_ascii, export_pcd_binary, new_pcd_export,
    pcd_centroid, pcd_from_positions, pcd_point_count, validate_pcd, PcdDataType, PcdExport,
};

pub mod ptx_export;
pub use ptx_export::{
    add_ptx_point, build_ptx_header_string, export_ptx_string, new_ptx_export,
    ptx_file_size_estimate, ptx_from_positions, ptx_point_count, validate_ptx, PtxExport,
    PtxHeader, PtxPoint,
};

pub mod svg_animation_export;
pub use svg_animation_export::{
    add_smil_element, anim_element_count, new_svg_anim_document, render_svg_anim,
    total_anim_duration_ms, validate_svg_anim, SmilAnimElement, SvgAnimDocument,
};

pub mod css_animation_export;
pub use css_animation_export::{
    add_css_keyframe, css_keyframe_count, new_css_animation, render_css_animation_rule,
    render_css_keyframes, validate_css_animation, CssAnimation, CssKeyframe,
};

pub mod web_animation_api_export;
pub use web_animation_api_export::{
    add_web_anim_keyframe, new_web_anim_export, render_web_anim_json, validate_web_anim,
    web_anim_keyframe_count, WebAnimExport, WebAnimKeyframe, WebAnimOptions,
};