include/media/tpg/v4l2-tpg.h
Source file repositories/reference/linux-study-clean/include/media/tpg/v4l2-tpg.h
File Facts
- System
- Linux kernel
- Corpus path
include/media/tpg/v4l2-tpg.h- Extension
.h- Size
- 16046 bytes
- Lines
- 669
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/errno.hlinux/random.hlinux/slab.hlinux/vmalloc.hlinux/videodev2.h
Detected Declarations
struct tpg_rbg_color8struct tpg_rbg_color16struct tpg_dataenum tpg_colorenum tpg_patternenum tpg_qualityenum tpg_video_aspectenum tpg_pixel_aspectenum tpg_move_modeenum tgp_color_encfunction tpg_s_patternfunction tpg_s_qualityfunction tpg_g_qualityfunction tpg_s_alpha_componentfunction tpg_s_alpha_modefunction tpg_s_brightnessfunction tpg_s_contrastfunction tpg_s_saturationfunction tpg_s_huefunction tpg_s_rgb_rangefunction tpg_s_real_rgb_rangefunction tpg_s_colorspacefunction tpg_g_colorspacefunction tpg_s_ycbcr_encfunction tpg_g_ycbcr_encfunction tpg_s_hsv_encfunction tpg_g_hsv_encfunction tpg_s_xfer_funcfunction tpg_g_xfer_funcfunction tpg_s_quantizationfunction tpg_g_quantizationfunction tpg_g_buffersfunction tpg_g_planesfunction tpg_g_interleavedfunction tpg_g_twopixelsizefunction tpg_hdivfunction tpg_hscalefunction tpg_hscale_divfunction tpg_g_bytesperlinefunction tpg_s_bytesperlinefunction tpg_g_line_widthfunction tpg_calc_line_widthfunction tpg_calc_plane_sizefunction tpg_s_buf_heightfunction tpg_s_fieldfunction tpg_s_perc_fillfunction tpg_g_perc_fillfunction tpg_s_perc_fill_blank
Annotated Snippet
struct tpg_rbg_color8 {
unsigned char r, g, b;
};
struct tpg_rbg_color16 {
__u16 r, g, b;
};
enum tpg_color {
TPG_COLOR_CSC_WHITE,
TPG_COLOR_CSC_YELLOW,
TPG_COLOR_CSC_CYAN,
TPG_COLOR_CSC_GREEN,
TPG_COLOR_CSC_MAGENTA,
TPG_COLOR_CSC_RED,
TPG_COLOR_CSC_BLUE,
TPG_COLOR_CSC_BLACK,
TPG_COLOR_75_YELLOW,
TPG_COLOR_75_CYAN,
TPG_COLOR_75_GREEN,
TPG_COLOR_75_MAGENTA,
TPG_COLOR_75_RED,
TPG_COLOR_75_BLUE,
TPG_COLOR_100_WHITE,
TPG_COLOR_100_YELLOW,
TPG_COLOR_100_CYAN,
TPG_COLOR_100_GREEN,
TPG_COLOR_100_MAGENTA,
TPG_COLOR_100_RED,
TPG_COLOR_100_BLUE,
TPG_COLOR_100_BLACK,
TPG_COLOR_TEXTFG,
TPG_COLOR_TEXTBG,
TPG_COLOR_RANDOM,
TPG_COLOR_RAMP,
TPG_COLOR_MAX = TPG_COLOR_RAMP + 256
};
extern const struct tpg_rbg_color8 tpg_colors[TPG_COLOR_MAX];
extern const unsigned short tpg_rec709_to_linear[255 * 16 + 1];
extern const unsigned short tpg_linear_to_rec709[255 * 16 + 1];
extern const struct tpg_rbg_color16 tpg_csc_colors[V4L2_COLORSPACE_DCI_P3 + 1]
[V4L2_XFER_FUNC_SMPTE2084 + 1]
[TPG_COLOR_CSC_BLACK + 1];
enum tpg_pattern {
TPG_PAT_75_COLORBAR,
TPG_PAT_100_COLORBAR,
TPG_PAT_CSC_COLORBAR,
TPG_PAT_100_HCOLORBAR,
TPG_PAT_100_COLORSQUARES,
TPG_PAT_BLACK,
TPG_PAT_WHITE,
TPG_PAT_RED,
TPG_PAT_GREEN,
TPG_PAT_BLUE,
TPG_PAT_CHECKERS_16X16,
TPG_PAT_CHECKERS_2X2,
TPG_PAT_CHECKERS_1X1,
TPG_PAT_COLOR_CHECKERS_2X2,
TPG_PAT_COLOR_CHECKERS_1X1,
TPG_PAT_ALTERNATING_HLINES,
TPG_PAT_ALTERNATING_VLINES,
TPG_PAT_CROSS_1_PIXEL,
TPG_PAT_CROSS_2_PIXELS,
TPG_PAT_CROSS_10_PIXELS,
TPG_PAT_GRAY_RAMP,
/* Must be the last pattern */
TPG_PAT_NOISE,
};
extern const char * const tpg_pattern_strings[];
enum tpg_quality {
TPG_QUAL_COLOR,
TPG_QUAL_GRAY,
TPG_QUAL_NOISE
};
enum tpg_video_aspect {
TPG_VIDEO_ASPECT_IMAGE,
TPG_VIDEO_ASPECT_4X3,
TPG_VIDEO_ASPECT_14X9_CENTRE,
TPG_VIDEO_ASPECT_16X9_CENTRE,
TPG_VIDEO_ASPECT_16X9_ANAMORPHIC,
};
enum tpg_pixel_aspect {
TPG_PIXEL_ASPECT_SQUARE,
TPG_PIXEL_ASPECT_NTSC,
Annotation
- Immediate include surface: `linux/types.h`, `linux/errno.h`, `linux/random.h`, `linux/slab.h`, `linux/vmalloc.h`, `linux/videodev2.h`.
- Detected declarations: `struct tpg_rbg_color8`, `struct tpg_rbg_color16`, `struct tpg_data`, `enum tpg_color`, `enum tpg_pattern`, `enum tpg_quality`, `enum tpg_video_aspect`, `enum tpg_pixel_aspect`, `enum tpg_move_mode`, `enum tgp_color_enc`.
- Atlas domain: Repository Root And Misc / include.
- 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.