Home
last modified time | relevance | path

Searched full:jpeg (Results 1 – 25 of 229) sorted by relevance

12345678910

/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Djpeg_v2_5.c63 adev->jpeg.num_jpeg_inst = JPEG25_MAX_HW_INSTANCES_ARCTURUS; in jpeg_v2_5_early_init()
64 for (i = 0; i < adev->jpeg.num_jpeg_inst; i++) { in jpeg_v2_5_early_init()
65 harvest = RREG32_SOC15(JPEG, i, mmCC_UVD_HARVESTING); in jpeg_v2_5_early_init()
67 adev->jpeg.harvest_config |= 1 << i; in jpeg_v2_5_early_init()
69 if (adev->jpeg.harvest_config == (AMDGPU_JPEG_HARVEST_JPEG0 | in jpeg_v2_5_early_init()
81 * jpeg_v2_5_sw_init - sw init for JPEG block
93 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in jpeg_v2_5_sw_init()
94 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_sw_init()
97 /* JPEG TRAP */ in jpeg_v2_5_sw_init()
99 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst[i].irq); in jpeg_v2_5_sw_init()
[all …]
Djpeg_v3_0.c59 harvest = RREG32_SOC15(JPEG, 0, mmCC_UVD_HARVESTING); in jpeg_v3_0_early_init()
65 adev->jpeg.num_jpeg_inst = 1; in jpeg_v3_0_early_init()
74 * jpeg_v3_0_sw_init - sw init for JPEG block
86 /* JPEG TRAP */ in jpeg_v3_0_sw_init()
88 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v3_0_sw_init()
100 ring = &adev->jpeg.inst->ring_dec; in jpeg_v3_0_sw_init()
104 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, 0, in jpeg_v3_0_sw_init()
109 adev->jpeg.internal.jpeg_pitch = mmUVD_JPEG_PITCH_INTERNAL_OFFSET; in jpeg_v3_0_sw_init()
110 adev->jpeg.inst->external.jpeg_pitch = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JPEG_PITCH); in jpeg_v3_0_sw_init()
116 * jpeg_v3_0_sw_fini - sw fini for JPEG block
[all …]
Djpeg_v4_0.c54 adev->jpeg.num_jpeg_inst = 1; in jpeg_v4_0_early_init()
63 * jpeg_v4_0_sw_init - sw init for JPEG block
75 /* JPEG TRAP */ in jpeg_v4_0_sw_init()
77 VCN_4_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v4_0_sw_init()
89 ring = &adev->jpeg.inst->ring_dec; in jpeg_v4_0_sw_init()
93 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, 0, in jpeg_v4_0_sw_init()
98 adev->jpeg.internal.jpeg_pitch = regUVD_JPEG_PITCH_INTERNAL_OFFSET; in jpeg_v4_0_sw_init()
99 adev->jpeg.inst->external.jpeg_pitch = SOC15_REG_OFFSET(JPEG, 0, regUVD_JPEG_PITCH); in jpeg_v4_0_sw_init()
105 * jpeg_v4_0_sw_fini - sw fini for JPEG block
109 * JPEG suspend and free up sw allocation
[all …]
Djpeg_v1_0.c41 …ring->ring[(*ptr)++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_EXTERNAL_REG_BASE), 0, 0, PACK… in jpeg_v1_0_decode_ring_patch_wreg()
60 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_LOW); in jpeg_v1_0_decode_ring_set_patch_ring()
66 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_HIGH); in jpeg_v1_0_decode_ring_set_patch_ring()
78 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_CNTL); in jpeg_v1_0_decode_ring_set_patch_ring()
84 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_REF_DATA); in jpeg_v1_0_decode_ring_set_patch_ring()
90 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_CNTL); in jpeg_v1_0_decode_ring_set_patch_ring()
95 …ring->ring[ptr++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_COND_RD_TIMER), 0, 0, PACKETJ_… in jpeg_v1_0_decode_ring_set_patch_ring()
97 …ring->ring[ptr++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_REF_DATA), 0, 0, PACKETJ_TYPE0… in jpeg_v1_0_decode_ring_set_patch_ring()
99 …ring->ring[ptr++] = PACKETJ(SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_EXTERNAL_REG_BASE), 0, 0, PACKETJ… in jpeg_v1_0_decode_ring_set_patch_ring()
117 reg = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JRBC_RB_RPTR); in jpeg_v1_0_decode_ring_set_patch_ring()
[all …]
Djpeg_v2_0.c51 adev->jpeg.num_jpeg_inst = 1; in jpeg_v2_0_early_init()
60 * jpeg_v2_0_sw_init - sw init for JPEG block
72 /* JPEG TRAP */ in jpeg_v2_0_sw_init()
74 VCN_2_0__SRCID__JPEG_DECODE, &adev->jpeg.inst->irq); in jpeg_v2_0_sw_init()
86 ring = &adev->jpeg.inst->ring_dec; in jpeg_v2_0_sw_init()
90 r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq, in jpeg_v2_0_sw_init()
95 adev->jpeg.internal.jpeg_pitch = mmUVD_JPEG_PITCH_INTERNAL_OFFSET; in jpeg_v2_0_sw_init()
96 adev->jpeg.inst->external.jpeg_pitch = SOC15_REG_OFFSET(JPEG, 0, mmUVD_JPEG_PITCH); in jpeg_v2_0_sw_init()
102 * jpeg_v2_0_sw_fini - sw fini for JPEG block
106 * JPEG suspend and free up sw allocation
[all …]
Damdgpu_jpeg.c39 INIT_DELAYED_WORK(&adev->jpeg.idle_work, amdgpu_jpeg_idle_work_handler); in amdgpu_jpeg_sw_init()
40 mutex_init(&adev->jpeg.jpeg_pg_lock); in amdgpu_jpeg_sw_init()
41 atomic_set(&adev->jpeg.total_submission_cnt, 0); in amdgpu_jpeg_sw_init()
50 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in amdgpu_jpeg_sw_fini()
51 if (adev->jpeg.harvest_config & (1 << i)) in amdgpu_jpeg_sw_fini()
54 amdgpu_ring_fini(&adev->jpeg.inst[i].ring_dec); in amdgpu_jpeg_sw_fini()
57 mutex_destroy(&adev->jpeg.jpeg_pg_lock); in amdgpu_jpeg_sw_fini()
64 cancel_delayed_work_sync(&adev->jpeg.idle_work); in amdgpu_jpeg_suspend()
77 container_of(work, struct amdgpu_device, jpeg.idle_work.work); in amdgpu_jpeg_idle_work_handler()
81 for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { in amdgpu_jpeg_idle_work_handler()
[all …]
/Linux-v6.1/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.c136 struct mtk_jpeg_dev *jpeg = video_drvdata(file); in mtk_jpeg_querycap() local
138 strscpy(cap->driver, jpeg->variant->dev_name, sizeof(cap->driver)); in mtk_jpeg_querycap()
139 strscpy(cap->card, jpeg->variant->dev_name, sizeof(cap->card)); in mtk_jpeg_querycap()
216 struct mtk_jpeg_dev *jpeg = ctx->jpeg; in mtk_jpeg_enum_fmt_vid_cap() local
218 return mtk_jpeg_enum_fmt(jpeg->variant->formats, in mtk_jpeg_enum_fmt_vid_cap()
219 jpeg->variant->num_formats, f, in mtk_jpeg_enum_fmt_vid_cap()
227 struct mtk_jpeg_dev *jpeg = ctx->jpeg; in mtk_jpeg_enum_fmt_vid_out() local
229 return mtk_jpeg_enum_fmt(jpeg->variant->formats, in mtk_jpeg_enum_fmt_vid_out()
230 jpeg->variant->num_formats, f, in mtk_jpeg_enum_fmt_vid_out()
309 struct mtk_jpeg_dev *jpeg = ctx->jpeg; in mtk_jpeg_g_fmt_vid_mplane() local
[all …]
Dmtk_jpeg_core.h17 #define MTK_JPEG_NAME "mtk-jpeg"
48 * struct mtk_jpeg_variant - mtk jpeg driver variant
51 * @formats: jpeg driver's internal color format
53 * @qops: the callback of jpeg vb2_ops
54 * @irq_handler: jpeg irq handler callback
55 * @hw_reset: jpeg hardware reset callback
56 * @m2m_ops: the callback of jpeg v4l2_m2m_ops
57 * @dev_name: jpeg device name
58 * @ioctl_ops: the callback of jpeg v4l2_ioctl_ops
78 * struct mtk_jpeg_dev - JPEG IP abstraction
[all …]
DKconfig3 tristate "Mediatek JPEG Codec driver"
12 Mediatek jpeg codec driver provides HW capability to decode
13 JPEG format
16 module will be called mtk-jpeg
/Linux-v6.1/drivers/media/platform/samsung/s5p-jpeg/
Djpeg-core.c2 /* linux/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c
31 #include "jpeg-core.h"
32 #include "jpeg-hw-s5p.h"
33 #include "jpeg-hw-exynos4.h"
34 #include "jpeg-hw-exynos3250.h"
35 #include "jpeg-regs.h"
590 switch (ctx->jpeg->variant->version) { in s5p_jpeg_to_user_subsampling()
767 struct s5p_jpeg *jpeg = ctx->jpeg; in exynos4_jpeg_parse_decode_h_tbl() local
796 exynos4_jpeg_select_dec_h_tbl(jpeg->regs, c, in exynos4_jpeg_parse_decode_h_tbl()
804 struct s5p_jpeg *jpeg = ctx->jpeg; in exynos4_jpeg_parse_huff_tbl() local
[all …]
Djpeg-regs.h2 /* linux/drivers/media/platform/samsung/s5p-jpeg/jpeg-regs.h
4 * Register definition file for Samsung JPEG codec driver
18 /* JPEG mode register */
29 /* JPEG operation status register */
45 /* JPEG restart interval register upper byte */
48 /* JPEG restart interval register lower byte */
51 /* JPEG vertical resolution register upper byte */
54 /* JPEG vertical resolution register lower byte */
57 /* JPEG horizontal resolution register upper byte */
60 /* JPEG horizontal resolution register lower byte */
[all …]
Djpeg-core.h2 /* linux/drivers/media/platform/samsung/s5p-jpeg/jpeg-core.h
18 #define S5P_JPEG_M2M_NAME "s5p-jpeg"
22 /* JPEG compression quality setting */
26 /* JPEG RGB to YCbCr conversion matrix coefficients */
39 /* a selection of JPEG markers */
105 * struct s5p_jpeg - JPEG IP abstraction
112 * @regs: JPEG IP registers mapping
113 * @irq: JPEG IP irq
114 * @irq_ret: JPEG IP irq result value
115 * @clocks: JPEG IP clock(s)
[all …]
DMakefile2 s5p-jpeg-objs := jpeg-core.o jpeg-hw-exynos3250.o jpeg-hw-exynos4.o jpeg-hw-s5p.o
3 obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG) += s5p-jpeg.o
/Linux-v6.1/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.c3 * V4L2 driver for the JPEG encoder/decoder from i.MX8QXP/i.MX8QM application
8 * Baseline and extended sequential jpeg decoding is supported.
9 * Progressive jpeg decoding is not supported by the IP.
19 * from the jpeg stream, by parsing the jpeg markers.
32 * but the driver works around this by replacing them in the jpeg stream.
38 * This is inspired by the drivers/media/platform/samsung/s5p-jpeg driver
56 #include <media/v4l2-jpeg.h>
63 #include "mxc-jpeg-hw.h"
64 #include "mxc-jpeg.h"
68 .name = "JPEG",
[all …]
Dmxc-jpeg.h3 * i.MX8QXP/i.MX8QM JPEG encoder/decoder v4l2 driver
15 #define MXC_JPEG_NAME "mxc-jpeg"
32 MXC_JPEG_ENCODING = 0, /* jpeg encode phase */
33 MXC_JPEG_ENC_CONF = 1, /* jpeg encoder config phase */
37 MXC_JPEG_DECODE = 0, /* jpeg decode mode */
38 MXC_JPEG_ENCODE = 1, /* jpeg encode mode */
45 * @subsampling: subsampling of jpeg components
52 * @precision: jpeg sample precision
132 * struct mxc_jpeg_sof_comp - JPEG Start Of Frame component fields
147 * struct mxc_jpeg_sof - JPEG Start Of Frame marker fields
[all …]
Dmxc-jpeg-hw.c3 * i.MX8QXP/i.MX8QM JPEG encoder/decoder v4l2 driver
10 #include "mxc-jpeg-hw.h"
23 dev_dbg(dev, " MXC JPEG NEXT_DESCPT_PTR 0x%x\n", in print_descriptor_info()
25 dev_dbg(dev, " MXC JPEG BUF_BASE0 0x%x\n", desc->buf_base0); in print_descriptor_info()
26 dev_dbg(dev, " MXC JPEG BUF_BASE1 0x%x\n", desc->buf_base1); in print_descriptor_info()
27 dev_dbg(dev, " MXC JPEG LINE_PITCH %d\n", desc->line_pitch); in print_descriptor_info()
28 dev_dbg(dev, " MXC JPEG STM_BUFBASE 0x%x\n", desc->stm_bufbase); in print_descriptor_info()
29 dev_dbg(dev, " MXC JPEG STM_BUFSIZE %d\n", desc->stm_bufsize); in print_descriptor_info()
30 dev_dbg(dev, " MXC JPEG IMGSIZE %x (%d x %d)\n", desc->imgsize, in print_descriptor_info()
32 dev_dbg(dev, " MXC JPEG STM_CTRL 0x%x\n", desc->stm_ctrl); in print_descriptor_info()
DMakefile2 mxc-jpeg-encdec-objs := mxc-jpeg-hw.o mxc-jpeg.o
3 obj-$(CONFIG_VIDEO_IMX8_JPEG) += mxc-jpeg-encdec.o
Dmxc-jpeg-hw.h3 * i.MX8QXP/i.MX8QM JPEG encoder/decoder v4l2 driver
11 /* JPEG Decoder/Encoder Wrapper Register Map */
22 /* CAST JPEG-Decoder/Encoder Status Register Map (read-only)*/
45 /* CAST JPEG-Decoder Control Register Map (write-only) */
48 /* CAST JPEG-Encoder Control Register Map (write-only) */
62 /* JPEG-Decoder Wrapper Slot Registers 0..3 */
99 /* JPEG-Decoder Wrapper - STM_CTRL Register Fields */
112 #include "mxc-jpeg.h"
/Linux-v6.1/Documentation/devicetree/bindings/media/
Dsamsung,s5pv210-jpeg.yaml4 $id: http://devicetree.org/schemas/media/samsung,s5pv210-jpeg.yaml#
7 title: Samsung S5PV210 and Exynos SoC JPEG codec
18 - samsung,s5pv210-jpeg
19 - samsung,exynos3250-jpeg
20 - samsung,exynos4210-jpeg
21 - samsung,exynos4212-jpeg
22 - samsung,exynos5420-jpeg
23 - samsung,exynos5433-jpeg
59 - samsung,s5pv210-jpeg
60 - samsung,exynos4210-jpeg
[all …]
Drenesas,jpu.yaml7 title: Renesas JPEG Processing Unit
13 The JPEG processing unit (JPU) incorporates the JPEG codec with an encoding
14 and decoding function conforming to the JPEG baseline process, so that the
15 JPU can encode image data and decode JPEG data quickly.
58 jpeg-codec@fe980000 {
Dmediatek-jpeg-encoder.yaml4 $id: http://devicetree.org/schemas/media/mediatek-jpeg-encoder.yaml#
7 title: MediaTek JPEG Encoder
13 MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs
/Linux-v6.1/Documentation/userspace-api/media/v4l/
Dvidioc-g-jpegcomp.rst39 :ref:`JPEG class controls <jpeg-controls>` for image quality and JPEG
47 itself, and it'll be stored in the JPEG-encoded fields (eg; interlacing
52 and the restart interval information (all JPEG-specific stuff) should be
53 stored in the JPEG-encoded fields. These define how the JPEG field is
69 :ref:`V4L2_CID_JPEG_COMPRESSION_QUALITY <jpeg-quality-control>`
89 - See :ref:`jpeg-markers`. Deprecated. If
90 :ref:`V4L2_CID_JPEG_ACTIVE_MARKER <jpeg-active-marker-control>`
98 .. flat-table:: JPEG Markers Flags
Dext-ctrls-jpeg.rst6 JPEG Control Reference
9 The JPEG class includes controls for common features of JPEG encoders
17 JPEG Control IDs
21 The JPEG class descriptor. Calling
82 Specify which JPEG markers are included in compressed stream. This
104 For more details about JPEG specification, refer to :ref:`itu-t81`,
105 :ref:`jfif`, :ref:`w3c-jpeg-jfif`.
Dpixfmt-reserved.rst60 - JPEG-Light format (Pegasus Lossless JPEG) used in Divio webcams NW
96 - JPEG compressed RGGB Bayer format used by the gspca driver.
101 - OV511 JPEG format used by the gspca driver.
106 - OV518 JPEG format used by the gspca driver.
111 - Pixart 73xx JPEG format used by the gspca driver.
204 contains interleaved JPEG and UYVY image data, followed by meta
206 actual pointer array follows immediately the interleaved JPEG/UYVY
210 The first plane can start either with JPEG or UYVY data chunk. The
212 multiplied by 2. The size of a JPEG chunk depends on the image and
224 In order to extract UYVY and JPEG frames an application can
[all …]
/Linux-v6.1/include/media/
Dv4l2-jpeg.h3 * V4L2 JPEG helpers header
7 * For reference, see JPEG ITU-T.81 (ISO/IEC 10918-1)
19 * struct v4l2_jpeg_reference - reference into the JPEG buffer
48 * struct v4l2_jpeg_frame_header - JPEG frame header
80 * struct v4l2_jpeg_scan_header - JPEG scan header
109 * struct v4l2_jpeg_header - parsed JPEG header

12345678910