Hacker News new | ask | show | jobs
by donio 1642 days ago
It would be hard to get the full fq functionality that way. How would you encode the data in a way so that you can do both:

    .frames[100].header.sample_rate
for the individual field and

    .frames[100].header|tobytes[:0x10]
for the first few bytes of the entire header structure?

Or decode a binary slice as a particular format:

    tobytes[0x234:0x325]|avc_sps.max_num_ref_frames