/linux/Documentation/userspace-api/ |
H A D | dma-buf-alloc-exchange.rst | 1 .. SPDX-License-Identifier: GPL-2.0 2 .. Copyright 2021-2023 Collabora Ltd. 5 Exchanging pixel buffers 9 support for sharing pixel-buffer allocations between processes, devices, and 12 approach this sharing for two-dimensional image data. 25 Conceptually a two-dimensional array of pixels. The pixels may be stored 26 in one or more memory buffers. Has width and height in pixels, pixel 27 format and modifier (implicit or explicit). 30 A span along a single y-axis value, e.g. from co-ordinates (0,100) to 37 A span along a single x-axis value, e.g. from co-ordinates (100,0) to [all …]
|
/linux/drivers/gpu/drm/vkms/ |
H A D | vkms_formats.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 * pixel_offset() - Get the offset of the pixel at coordinates x/y in the first plane 16 * @x: The x coordinate of the wanted pixel in the buffer 17 * @y: The y coordinate of the wanted pixel in the buffer 19 * The caller must ensure that the framebuffer associated with this request uses a pixel format 21 * If this requirement is not fulfilled, the resulting offset can point to an other pixel or 26 return frame_info->offset + (y * frame_info->pitch) in pixel_offset() 27 + (x * frame_info->cpp); in pixel_offset() 31 * packed_pixels_addr() - Get the pointer to the block containing the pixel at the given 44 * The caller must ensure that the framebuffer associated with this request uses a pixel format [all …]
|
/linux/Documentation/fb/ |
H A D | api.rst | 9 --------------- 12 with frame buffer devices. In-kernel APIs between device drivers and the frame 22 --------------- 36 - FB_CAP_FOURCC 38 The driver supports the four character code (FOURCC) based format setting API. 44 -------------------- 46 Pixels are stored in memory in hardware-dependent formats. Applications need 47 to be aware of the pixel storage format in order to write image data to the 48 frame buffer memory in the format expected by the hardware. 58 - FB_TYPE_PACKED_PIXELS [all …]
|
H A D | pxafb.rst | 10 modprobe pxafb options=vmem:2M,mode:640x480-8,passive 14 video=pxafb:vmem:2M,mode:640x480-8,passive 21 mode:XRESxYRES[-BPP] 33 Pixel clock in picoseconds 63 4 or 8 pixel monochrome single panel data 72 Double pixel clock. 1=>true, 0=>false 80 pixel clock polarity 87 PXA27x and later processors support overlay1 and overlay2 on-top of the 88 base framebuffer (although under-neath the base is also possible). They 89 support palette and no-palette RGB formats, as well as YUV formats (only [all …]
|
/linux/drivers/staging/media/atomisp/include/linux/ |
H A D | atomisp_platform.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <media/v4l2-subdev.h> 51 ATOMISP_INPUT_FORMAT_RAW_6, /* RAW data, 6 bits per pixel */ 52 ATOMISP_INPUT_FORMAT_RAW_7, /* RAW data, 7 bits per pixel */ 53 ATOMISP_INPUT_FORMAT_RAW_8, /* RAW data, 8 bits per pixel */ 54 ATOMISP_INPUT_FORMAT_RAW_10, /* RAW data, 10 bits per pixel */ 55 ATOMISP_INPUT_FORMAT_RAW_12, /* RAW data, 12 bits per pixel */ 56 ATOMISP_INPUT_FORMAT_RAW_14, /* RAW data, 14 bits per pixel */ 57 ATOMISP_INPUT_FORMAT_RAW_16, /* RAW data, 16 bits per pixel */ 60 /* CSI2-MIPI specific format: Generic short packet data. It is used to [all …]
|
/linux/drivers/media/i2c/ccs/ |
H A D | ccs-data.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * CCS static data in-memory data structure definitions 5 * Copyright 2019--2020 Intel Corporation 16 * struct ccs_data_block_version - CCS static data version 32 * struct ccs_reg - CCS register value 33 * @addr: The 16-bit address of the register 44 * struct ccs_if_rule - CCS static data if rule 56 * struct ccs_frame_format_desc - CCS frame format descriptor 66 * struct ccs_frame_format_descs - A series of CCS frame format descriptors 80 * struct ccs_pdaf_readout - CCS PDAF data readout descriptor [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-enum-framesizes.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_ENUM_FRAMESIZES - Enumerate frame sizes 30 that contains an index and pixel format and receives a frame width 37 and height in pixels) that the device supports for the given pixel 38 format. 40 The supported pixel formats can be obtained by using the 47 - **Discrete:** The function returns success if the given index value 48 (zero-based) is valid. The application should increase the index by 54 - **Step-wise:** The function returns success if the given index value 60 - **Continuous:** This is a special case of the step-wise type above. [all …]
|
H A D | pixfmt-intro.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 V4L2 drivers are not limited to these formats, however. Driver-specific 16 data can still be stored and retrieved in the proprietary format. For 17 example, a device may support a proprietary compressed format. 19 format, saving much disk space, and later use a codec to convert the 20 images to the X Windows screen format when the video is to be displayed. 23 specification would not be complete without well-defined standard 29 leftmost pixel of the topmost row. Following that is the pixel 31 pixels. Following the rightmost pixel of the row there may be zero or 32 more bytes of padding to guarantee that each row of pixel data has a [all …]
|
H A D | vidioc-g-fbuf.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_G_FBUF - VIDIOC_S_FBUF - Get or set frame buffer overlay parameters 46 The V4L2 API distinguishes destructive and non-destructive overlays. A 48 of a graphics card. A non-destructive overlay blends video images into a 50 always non-destructive. 81 .. flat-table:: struct v4l2_framebuffer 82 :header-rows: 0 83 :stub-columns: 0 86 * - __u32 87 - ``capability`` [all …]
|
H A D | pixfmt-compressed.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 8 .. _compressed-formats: 18 .. flat-table:: Compressed Image Formats 19 :header-rows: 1 20 :stub-columns: 0 23 * - Identifier 24 - Code 25 - Details 26 * .. _V4L2-PIX-FMT-JPEG: 28 - ``V4L2_PIX_FMT_JPEG`` [all …]
|
H A D | dev-encoder.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 6 Memory-to-Memory Stateful Video Encoder Interface 12 further post-processing by the client. 34 5. Single-planar API (see :ref:`planar-apis`) and applicable structures may be 35 used interchangeably with multi-planar API, unless specified otherwise, 47 Refer to :ref:`decoder-glossary`. 52 .. kernel-render:: DOT 65 qi -> Initialization [ label = "open()" ]; 67 Initialization -> Encoding [ label = "Both queues streaming" ]; 69 Encoding -> Drain [ label = "V4L2_ENC_CMD_STOP" ]; [all …]
|
H A D | dev-stateless-decoder.rst | 1 .. SPDX-License-Identifier: GPL-2.0 6 Memory-to-memory Stateless Video Decoder Interface 18 This section describes how user-space ("the client") is expected to communicate 24 Stateless decoders make use of the :ref:`media-request-api`. A stateless 42 irrespective of the format currently set on the ``CAPTURE`` queue. 45 codec-specific capability controls (such as H.264 profiles) to the set 51 * The driver must return only the formats supported for the format currently 54 * Depending on the currently set ``OUTPUT`` format, the set of supported raw 55 formats may depend on the value of some codec-dependent controls. 62 resolutions for a given format, passing desired pixel format in [all …]
|
H A D | pixfmt-v4l2.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 Single-planar format structure 13 .. flat-table:: struct v4l2_pix_format 14 :header-rows: 0 15 :stub-columns: 0 18 * - __u32 19 - ``width`` 20 - Image width in pixels. 21 * - __u32 22 - ``height`` [all …]
|
H A D | fourcc.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Guidelines for Video4Linux pixel format 4CCs 8 the pixel format, compression and colour space. The interpretation of the 14 --------- 18 - B: raw bayer, uncompressed 19 - b: raw bayer, DPCM compressed 20 - a: A-law compressed 21 - u: u-law compressed 23 2nd character: pixel order 25 - B: BGGR [all …]
|
/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-debayer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * vimc-debayer.c Virtual Media Controller Driver 5 * Copyright (C) 2015-2017 Helen Koike <helen.fornazier@gmail.com> 11 #include <linux/v4l2-mediabus.h> 12 #include <media/v4l2-ctrls.h> 13 #include <media/v4l2-event.h> 14 #include <media/v4l2-subdev.h> 16 #include "vimc-common.h" 173 mf->code = VIMC_DEBAYER_SOURCE_MBUS_FMT; in vimc_debayer_init_state() 182 if (VIMC_IS_SRC(code->pad)) { in vimc_debayer_enum_mbus_code() [all …]
|
H A D | vimc-common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * vimc-common.h Virtual Media Controller Driver 5 * Copyright (C) 2015-2017 Helen Koike <helen.fornazier@gmail.com> 13 #include <media/media-device.h> 14 #include <media/v4l2-device.h> 18 /* VIMC-specific controls */ 46 * vimc_colorimetry_clamp - Adjust colorimetry parameters 56 if ((fmt)->colorspace == V4L2_COLORSPACE_DEFAULT \ 57 || (fmt)->colorspace > V4L2_COLORSPACE_DCI_P3) { \ 58 (fmt)->colorspace = V4L2_COLORSPACE_DEFAULT; \ [all …]
|
/linux/drivers/media/platform/ti/omap3isp/ |
H A D | ispvideo.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * TI OMAP3 ISP - Generic video node 7 * Copyright (C) 2009-2010 Nokia Corporation 16 #include <linux/v4l2-mediabus.h> 17 #include <media/media-entity.h> 18 #include <media/v4l2-dev.h> 19 #include <media/v4l2-fh.h> 20 #include <media/videobuf2-v4l2.h> 31 * struct isp_format_info - ISP media bus format information 32 * @code: V4L2 media bus format code [all …]
|
/linux/drivers/media/platform/ti/am437x/ |
H A D | am437x-vpfe.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2013 - 2014 Texas Instruments, Inc. 12 #include <linux/am437x-vpfe.h> 20 #include <media/v4l2-dev.h> 21 #include <media/v4l2-device.h> 22 #include <media/v4l2-ioctl.h> 23 #include <media/videobuf2-v4l2.h> 24 #include <media/videobuf2-dma-contig.h> 26 #include "am437x-vpfe_regs.h" 36 /* BT656 - 8 bit */ [all …]
|
/linux/drivers/media/platform/qcom/camss/ |
H A D | camss-format.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * camss-format.c 5 * Qualcomm MSM Camera Subsystem - Format helpers 13 #include "camss-format.h" 16 * camss_format_get_bpp - Map media bus format to bits per pixel 19 * @code: media bus format code 21 * Return number of bits per pixel 31 WARN(1, "Unknown format\n"); in camss_format_get_bpp() 37 * camss_format_find_code - Find a format code in an array 38 * @code: a pointer to media bus format codes array [all …]
|
H A D | camss-format.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * camss-format.h 5 * Qualcomm MSM Camera Subsystem - Format helpers 23 * struct fract - Represents a fraction 33 * struct camss_format_info - ISP media bus format information 34 * @code: V4L2 media bus format code 35 * @mbus_bpp: Media bus bits per pixel 36 * @pixelformat: V4L2 pixel format FCC identifier 40 * @bpp: Bits per pixel when stored in memory (for each plane)
|
/linux/drivers/media/platform/samsung/s3c-camif/ |
H A D | camif-core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 20 #include <media/media-entity.h> 21 #include <media/v4l2-ctrls.h> 22 #include <media/v4l2-dev.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-mediabus.h> 25 #include <media/videobuf2-v4l2.h> 26 #include <media/drv-intf/s3c_camif.h> 28 #define S3C_CAMIF_DRIVER_NAME "s3c-camif" 39 #define S3C2450_CAMIF_IP_REV 0x30 /* 3.0 - not implemented, not tested */ [all …]
|
/linux/drivers/gpu/drm/amd/display/modules/info_packet/ |
H A D | info_packet.c | 41 //04h = 3D stereo + PSR/PSR2 + Y-coordinate. 43 //05h = 3D stereo + PSR/PSR2 + Y-coordinate + Pixel Encoding/Colorimetry Format 72 //0: Periodic pseudo-static EM Data Set 86 //2: This EM Data Set is defined by CTA-861-G 99 //PB7-27 (20 bytes): 144 …if (stream->timing.timing_3d_format != TIMING_3D_FORMAT_NONE && stream->view_format != VIEW_3D_FOR… in mod_build_vsc_infopacket() 149 /* VSC packet set to 4 for PSR-SU, or 2 for PSR1 */ in mod_build_vsc_infopacket() 150 if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1) in mod_build_vsc_infopacket() 152 else if (stream->link->replay_settings.config.replay_supported) in mod_build_vsc_infopacket() 154 else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1) in mod_build_vsc_infopacket() [all …]
|
/linux/drivers/gpu/drm/meson/ |
H A D | meson_osd_afbcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 * - basic AFBC buffer for RGB32 only, thus YTR feature is mandatory 31 * - SPARSE layout and SPLIT layout 32 * - only 16x16 superblock 35 * decoded pixel stream to the OSD1 Plane pixel composer. 43 * - basic AFBC buffer for multiple RGB and YUV pixel formats 44 * - SPARSE layout and SPLIT layout 45 * - 16x16 and 32x8 "wideblk" superblocks 46 * - Tiled header 48 * The ARM AFBC Decoder independent from the VPU Pixel Pipeline, so [all …]
|
/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd. 6 * header file for Samsung EXYNOS5 SoC series G-Scaler driver 20 #include <media/videobuf2-v4l2.h> 21 #include <media/v4l2-ctrls.h> 22 #include <media/v4l2-device.h> 23 #include <media/v4l2-mem2mem.h> 24 #include <media/v4l2-mediabus.h> 25 #include <media/videobuf2-dma-contig.h> 27 #include "gsc-regs.h" [all …]
|
/linux/drivers/gpu/drm/stm/ |
H A D | ltdc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 const u32 *pix_fmt_hw; /* supported hw pixel formats */ 21 const u32 *pix_fmt_drm; /* supported drm pixel formats */ 22 int pix_fmt_nb; /* number of pixel format */ 23 bool pix_fmt_flex; /* pixel format flexibility supported */ 24 bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */ 31 bool dynamic_zorder; /* dynamic z-order */ 46 struct clk *pixel_clk; /* lcd pixel clock */
|