HF RL Explorer

Write a BMP writer and parser pair in Python, struct only, no PIL. bmp.py: write bmp(path, pixels) taking a…

Write a BMP writer and parser pair in Python, struct only, no PIL. bmp.py: write bmp(path, pixels) taking a…: a task in traj2envs-rl: RL tasks generated with traj2envs (Harbor dataset). BITMAPFILEHEADER (14 bytes): - offset 0, 2 bytes: bfType = b'BM' - offset 2, uint32: bfSize = total file size in…

The task

BITMAPFILEHEADER (14 bytes): - offset 0, 2 bytes: `bfType` = `b'BM'` - offset 2, uint32: `bfSize` = total file size in bytes - offset 6, uint16: `bfReserved1` = 0 - offset 8, uint16: `bfReserved2` = 0 - offset 10, uint32: `bfOffBits` = 54

Part of harness-hub/traj2envs-rl.