Crate c3dio

source ·
Expand description

§c3dio - Pure Rust C3D Parser

This crate provides a parser for C3D files. C3D is a binary file format used to store motion capture data. The format is described in the C3D file format documentation.

§Examples

use c3dio::prelude::*;

let c3d = C3d::load("tests/data/short.c3d");
assert!(c3d.is_ok());

Re-exports§

Modules§

  • Includes the analog data and parameters.
  • The builder module is focused on building a C3d struct for writing to a file. It is focused on composing parts into a valid C3d struct.
  • Includes the C3d struct implementation and high-level functions for reading and writing C3D files.
  • Includes data structures and functions for parsing and storing data from a C3D file.
  • Includes event information from the C3D file header and parameter section.
  • Structures to represent auxiliary data types that C3D files can be written to.
  • Contains force platform information in the form of the ForcePlatforms struct. Includes the C3d struct implementation and high-level functions for reading and writing C3D files.
  • Contains manufacturer data from the parameter section of a C3D file, if provided.
  • Logic for parsing and writing parameters.
  • Implements the Points struct and methods for parsing and writing point data.
  • Contains the most commonly used types and functions from this crate.
  • Structure for storing SEG parameters.

Enums§

  • Reports errors that occurred while parsing a C3D file. The error type is returned by the load and from_bytes methods.
  • Reports errors that occurred while writing a C3D file. The error type is returned by the write method.
  • Processor type enum for determining endianess of the bytes during parsing and writing. Older C3D files may be stored in Dec or SgiMips format. Most modern C3D files are stored in Intel format. A parser that supports all three formats is required to read all C3D files.