STRUCT VDEC_AV1_SLICE_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vdec_av1_slice_state(9) β€” bestie edition

okay so this is a page straight out of the Kernel API Manual, and we're talking about struct vdec_av1_slice_state β€” the decoding state. yes it's a struct, yes it's short, no we are not skipping a single field, let's go πŸŽ€


✨ NAME ✨

struct vdec_av1_slice_state β€” decoding state. that's it, that's the whole vibe. it holds the state of a decode. iconic, honestly πŸ¦‹


🌸 SYNOPSIS 🌸

struct vdec_av1_slice_state {
    int err;
    u32 full;
    u32 timeout;
    u32 perf;
    u32 crc[16];
    u32 out_size;
 };

look at her. six fields. no notes. πŸ’–


🫢 Members 🫢

okay bestie, field by field, don't skip:

  • err β€” err type for decode. yeah, it's the type of error the decode hit. the "what went wrong" field 😭
  • full β€” transcoded buffer is full or not. classic yes/no situation, lowkey important before you shove more data in there.
  • timeout β€” decode timeout or not. same energy, different drama. did the decode time out? this field knows πŸ’€
  • perf β€” performance enable. the toggle for whether perf stuff is turned on ✨
  • crc β€” hw checksum. hardware checksum, and she's an array: crc[16], sixteen of them, no cap πŸ”₯
  • out_size β€” hw output size. how big the hardware output is, literally that simple πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

πŸ“ the file in question

  • Kernel file
  • ./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c

🌈 her whole friend group (struct edition)

every single one of these, in this order, go read them too:

  • struct vdec_av1_slice_init_vsi(9)
  • struct vdec_av1_slice_mem(9)
  • struct vdec_av1_slice_tile_group(9)
  • struct vdec_av1_slice_scale_factors(9)
  • struct vdec_av1_slice_frame_refs(9)
  • struct vdec_av1_slice_gm(9)
  • struct vdec_av1_slice_sm(9)
  • struct vdec_av1_slice_seg(9)
  • struct vdec_av1_slice_delta_q_lf(9)
  • struct vdec_av1_slice_quantization(9)
  • struct vdec_av1_slice_lr(9)
  • struct vdec_av1_slice_loop_filter(9)
  • struct vdec_av1_slice_cdef(9)
  • struct vdec_av1_slice_mfmv(9)
  • struct vdec_av1_slice_tile(9)
  • struct vdec_av1_slice_uncompressed_header(9)
  • struct vdec_av1_slice_seq_header(9)
  • struct vdec_av1_slice_frame(9)
  • struct vdec_av1_slice_work_buffer(9)
  • struct vdec_av1_slice_frame_info(9)
  • struct vdec_av1_slice_slot(9)
  • struct vdec_av1_slice_fb(9)
  • struct vdec_av1_slice_vsi(9)
  • struct vdec_av1_slice_pfc(9)
  • struct vdec_av1_slice_instance(9)

that's twenty-five structs. twenty-five!! she has a whole group chat πŸ’…


heads up bestie: the source location on this one got cut off as ./drivers/media/platform/media... β€” that's genuinely all we got, so don't come for me about it πŸ™ˆ

and that's the page!! πŸ’œ sign-off time: this one came from ./drivers/media/platform/media..., dated October 2026, and the manual is the Kernel API Manual β€” go off, struct vdec_av1_slice_state(9), periodt πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from