drivers/media/platform/amphion/vpu_codec.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/amphion/vpu_codec.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/amphion/vpu_codec.h- Extension
.h- Size
- 974 bytes
- Lines
- 70
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct vpu_encode_paramsstruct vpu_decode_params
Annotated Snippet
struct vpu_encode_params {
u32 input_format;
u32 codec_format;
u32 profile;
u32 tier;
u32 level;
struct v4l2_fract frame_rate;
u32 src_stride;
u32 src_width;
u32 src_height;
struct v4l2_rect crop;
u32 out_width;
u32 out_height;
u32 gop_length;
u32 bframes;
u32 rc_enable;
u32 rc_mode;
u32 bitrate;
u32 bitrate_min;
u32 bitrate_max;
u32 i_frame_qp;
u32 p_frame_qp;
u32 b_frame_qp;
u32 qp_min;
u32 qp_max;
u32 qp_min_i;
u32 qp_max_i;
struct {
u32 enable;
u32 idc;
u32 width;
u32 height;
} sar;
struct {
u32 primaries;
u32 transfer;
u32 matrix;
u32 full_range;
} color;
};
struct vpu_decode_params {
u32 codec_format;
u32 output_format;
u32 display_delay_enable;
u32 display_delay;
u32 b_non_frame;
u32 frame_count;
u32 end_flag;
struct {
u32 base;
u32 size;
} udata;
};
#endif
Annotation
- Detected declarations: `struct vpu_encode_params`, `struct vpu_decode_params`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.