Files
Mujoco_WASM/python/mujoco
Sam Haves f5d3ce3451 Introduce mjpEncoder plugin architecture
Add a new mjpEncoder plugin type mirroring the existing mjpDecoder pattern.
Encoders serialize an mjSpec + mjModel to an mjResource for a given format.

New API functions:
- mjp_registerEncoder: globally register an encoder
- mjp_defaultEncoder: zero-initialize an encoder struct
- mjp_findEncoder: look up an encoder by filename extension or content type

The mjfEncode callback takes (mjSpec*, mjModel*, mjVFS*, mjResource*) and
returns 0 on success. Writing to mjResource keeps symmetry with the decoder
reading from mjResource and leaves the door open for writable resource providers.

PiperOrigin-RevId: 889187898
Change-Id: I180771b2255b91dea188ac5e2cdc3a8f0fb85364
2026-03-25 05:35:39 -07:00
..
2024-11-19 14:07:21 -08:00
2022-05-25 07:01:59 -07:00
2026-03-10 01:56:10 -07:00
2026-03-23 02:44:19 -07:00
2022-05-23 01:08:49 -07:00
2023-10-13 16:13:24 -07:00
2024-10-24 08:31:15 -07:00
2025-02-21 08:44:17 -05:00
2025-02-21 08:44:17 -05:00
2024-12-16 09:57:08 -08:00
2024-12-16 09:57:08 -08:00