STRUCT VDEC_AV1_SLICE_SM(9)
π struct vdec_av1_slice_sm(9) β¨
okay so this is a page straight out of the Kernel API Manual, and today's main character is struct vdec_av1_slice_sm β the AV1 Skip Mode parameters struct. yes bestie, skip mode. it's literally the "we're not even gonna bother predicting this one, just copy the vibes" of video decoding π
π¦ SYNOPSIS π¦
like, here's the whole struct, exactly as it is, no notes:
struct vdec_av1_slice_sm {
u8 skip_mode_allowed;
u8 skip_mode_present;
int skip_mode_frame[2];
};
that's it. three fields. small struct, big energy π
πΈ Members πΈ
β skip_mode_allowed
a u8 that says whether Skip Mode is allowed or not. that's the whole vibe check right there β yes or no, in or out π«Ά
β skip_mode_present
another u8, and it specifies whether the skip_mode will be present or not. allowed β present, okay? they're different things and both are serving π
β skip_mode_frame
an int array of size 2 β it specifies the frames to use for compound prediction. two frames, one array, iconic behavior ngl π
π₯ SEE ALSO π₯
okay first up, the source file, because you know we gotta cite our sources:
- Kernel file:
./drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_av1_req_lat_if.c
and then the whole friend group β every single sibling struct, no cap, all 25 of them:
struct vdec_av1_slice_init_vsi(9)struct vdec_av1_slice_mem(9)struct vdec_av1_slice_state(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_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)
π real talk though: this struct is tiny and the file path in the original page got cut off at ./drivers/media/platform/media..., so if you're hunting the exact source, follow that first path in the list β that's the one with all the letters π§
π the sign-off π
this little icon of a page is dated October 2026 and hails from the file ./drivers/media/platform/media... (yes, truncated just like that, we don't gatekeep, we also don't finish our paths apparently π), and it will forever introduce itself as struct vdec_av1_slice_sm(9). slay, bye π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms