Home
last modified time | relevance | path

Searched full:sps (Results 1 – 25 of 104) sorted by relevance

12345

/linux/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-vdpu381-hevc.c17 // SPS
100 struct rkvdec_hevc_sps sps; member
128 const struct v4l2_ctrl_hevc_sps *sps = run->sps; in assemble_hw_pps() local
143 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps()
145 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps()
151 /* write sps */ in assemble_hw_pps()
152 hw_ps->sps.video_parameters_set_id = sps->video_parameter_set_id; in assemble_hw_pps()
153 hw_ps->sps.seq_parameters_set_id_sps = sps->seq_parameter_set_id; in assemble_hw_pps()
154 hw_ps->sps.chroma_format_idc = sps->chroma_format_idc; in assemble_hw_pps()
156 log2_min_cb_size = sps->log2_min_luma_coding_block_size_minus3 + 3; in assemble_hw_pps()
[all …]
H A Drkvdec-hevc.c45 /* SPS */
144 const struct v4l2_ctrl_hevc_sps *sps = run->sps; in assemble_hw_pps() local
154 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps()
156 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps()
163 /* write sps */ in assemble_hw_pps()
164 WRITE_PPS(sps->video_parameter_set_id, VIDEO_PARAMETER_SET_ID); in assemble_hw_pps()
165 WRITE_PPS(sps->seq_parameter_set_id, SEQ_PARAMETER_SET_ID); in assemble_hw_pps()
166 WRITE_PPS(sps->chroma_format_idc, CHROMA_FORMAT_IDC); in assemble_hw_pps()
167 WRITE_PPS(sps->pic_width_in_luma_samples, PIC_WIDTH_IN_LUMA_SAMPLES); in assemble_hw_pps()
168 WRITE_PPS(sps->pic_height_in_luma_samples, PIC_HEIGHT_IN_LUMA_SAMPLES); in assemble_hw_pps()
[all …]
H A Drkvdec-vdpu381-h264.c68 struct rkvdec_sps sps; member
90 const struct v4l2_ctrl_h264_sps *sps = run->sps; in assemble_hw_pps() local
101 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps()
103 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps()
109 /* write sps */ in assemble_hw_pps()
110 hw_ps->sps.seq_parameter_set_id = sps->seq_parameter_set_id; in assemble_hw_pps()
111 hw_ps->sps.profile_idc = sps->profile_idc; in assemble_hw_pps()
112 hw_ps->sps.constraint_set3_flag = !!(sps->constraint_set_flags & (1 << 3)); in assemble_hw_pps()
113 hw_ps->sps.chroma_format_idc = sps->chroma_format_idc; in assemble_hw_pps()
114 hw_ps->sps.bit_depth_luma = sps->bit_depth_luma_minus8; in assemble_hw_pps()
[all …]
H A Drkvdec-vdpu383-hevc.c18 // SPS
223 const struct v4l2_ctrl_hevc_sps *sps = run->sps; in assemble_hw_pps() local
239 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps()
241 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps()
247 /* write sps */ in assemble_hw_pps()
248 hw_ps->video_parameters_set_id = sps->video_parameter_set_id; in assemble_hw_pps()
249 hw_ps->seq_parameters_set_id_sps = sps->seq_parameter_set_id; in assemble_hw_pps()
250 hw_ps->chroma_format_idc = sps->chroma_format_idc; in assemble_hw_pps()
252 log2_min_cb_size = sps->log2_min_luma_coding_block_size_minus3 + 3; in assemble_hw_pps()
253 width = sps->pic_width_in_luma_samples; in assemble_hw_pps()
[all …]
H A Drkvdec-vdpu383-h264.c115 struct rkvdec_sps sps; member
198 const struct v4l2_ctrl_h264_sps *sps = run->sps; in assemble_hw_pps() local
207 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps()
209 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps()
215 /* write sps */ in assemble_hw_pps()
216 hw_ps->sps.seq_parameter_set_id = sps->seq_parameter_set_id; in assemble_hw_pps()
217 hw_ps->sps.profile_idc = sps->profile_idc; in assemble_hw_pps()
218 hw_ps->sps.constraint_set3_flag = !!(sps->constraint_set_flags & (1 << 3)); in assemble_hw_pps()
219 hw_ps->sps.chroma_format_idc = sps->chroma_format_idc; in assemble_hw_pps()
220 hw_ps->sps.bit_depth_luma = sps->bit_depth_luma_minus8; in assemble_hw_pps()
[all …]
H A Drkvdec-h264.c112 const struct v4l2_ctrl_h264_sps *sps = run->sps; in assemble_hw_pps() local
123 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps()
125 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps()
132 /* write sps */ in assemble_hw_pps()
133 WRITE_PPS(sps->seq_parameter_set_id, SEQ_PARAMETER_SET_ID); in assemble_hw_pps()
134 WRITE_PPS(sps->profile_idc, PROFILE_IDC); in assemble_hw_pps()
135 WRITE_PPS(!!(sps->constraint_set_flags & (1 << 3)), CONSTRAINT_SET3_FLAG); in assemble_hw_pps()
136 WRITE_PPS(sps->chroma_format_idc, CHROMA_FORMAT_IDC); in assemble_hw_pps()
137 WRITE_PPS(sps->bit_depth_luma_minus8, BIT_DEPTH_LUMA); in assemble_hw_pps()
138 WRITE_PPS(sps->bit_depth_chroma_minus8, BIT_DEPTH_CHROMA); in assemble_hw_pps()
[all …]
H A Drkvdec-hevc-common.c215 const struct v4l2_ctrl_hevc_sps *sps = run->sps; in rkvdec_hevc_assemble_hw_lt_rps() local
220 for (int i = 0; i < sps->num_long_term_ref_pics_sps; i++) { in rkvdec_hevc_assemble_hw_lt_rps()
231 const struct v4l2_ctrl_hevc_sps *sps = run->sps; in rkvdec_hevc_assemble_hw_st_rps() local
233 for (int i = 0; i < sps->num_short_term_ref_pic_sets; i++) { in rkvdec_hevc_assemble_hw_st_rps()
393 run->sps->num_short_term_ref_pic_sets, GFP_KERNEL); in rkvdec_hevc_prepare_hw_st_rps()
395 for (idx = 0; idx < run->sps->num_short_term_ref_pic_sets; idx++) { in rkvdec_hevc_prepare_hw_st_rps()
457 const struct v4l2_ctrl_hevc_sps *sps = ctrl->p_new.p_hevc_sps; in rkvdec_hevc_get_image_fmt() local
462 if (sps->bit_depth_luma_minus8 == 0) { in rkvdec_hevc_get_image_fmt()
463 if (sps->chroma_format_idc == 2) in rkvdec_hevc_get_image_fmt()
467 } else if (sps->bit_depth_luma_minus8 == 2) { in rkvdec_hevc_get_image_fmt()
[all …]
/linux/drivers/media/platform/allegro-dvt/
H A Dnal-h264.c11 * generator to generate the RBSP for SPS/PPS nal units and add them to the
198 static void nal_h264_rbsp_sps(struct rbsp *rbsp, struct nal_h264_sps *sps) in nal_h264_rbsp_sps() argument
202 if (!sps) { in nal_h264_rbsp_sps()
207 rbsp_bits(rbsp, 8, &sps->profile_idc); in nal_h264_rbsp_sps()
208 rbsp_bit(rbsp, &sps->constraint_set0_flag); in nal_h264_rbsp_sps()
209 rbsp_bit(rbsp, &sps->constraint_set1_flag); in nal_h264_rbsp_sps()
210 rbsp_bit(rbsp, &sps->constraint_set2_flag); in nal_h264_rbsp_sps()
211 rbsp_bit(rbsp, &sps->constraint_set3_flag); in nal_h264_rbsp_sps()
212 rbsp_bit(rbsp, &sps->constraint_set4_flag); in nal_h264_rbsp_sps()
213 rbsp_bit(rbsp, &sps->constraint_set5_flag); in nal_h264_rbsp_sps()
[all …]
H A Dnal-hevc.c11 * RBSP for VPS/SPS/PPS nal units and add them to the encoded stream if the
340 static void nal_hevc_rbsp_sps(struct rbsp *rbsp, struct nal_hevc_sps *sps) in nal_hevc_rbsp_sps() argument
344 rbsp_bits(rbsp, 4, &sps->video_parameter_set_id); in nal_hevc_rbsp_sps()
345 rbsp_bits(rbsp, 3, &sps->max_sub_layers_minus1); in nal_hevc_rbsp_sps()
346 rbsp_bit(rbsp, &sps->temporal_id_nesting_flag); in nal_hevc_rbsp_sps()
347 nal_hevc_rbsp_profile_tier_level(rbsp, &sps->profile_tier_level); in nal_hevc_rbsp_sps()
348 rbsp_uev(rbsp, &sps->seq_parameter_set_id); in nal_hevc_rbsp_sps()
350 rbsp_uev(rbsp, &sps->chroma_format_idc); in nal_hevc_rbsp_sps()
351 if (sps->chroma_format_idc == 3) in nal_hevc_rbsp_sps()
352 rbsp_bit(rbsp, &sps->separate_colour_plane_flag); in nal_hevc_rbsp_sps()
[all …]
H A Dallegro-core.c94 * because it needs to write SPS/PPS NAL units. The encoder writes the actual
1624 struct nal_h264_sps *sps; in allegro_h264_write_sps() local
1635 sps = kzalloc_obj(*sps); in allegro_h264_write_sps()
1636 if (!sps) in allegro_h264_write_sps()
1642 sps->profile_idc = nal_h264_profile(profile); in allegro_h264_write_sps()
1643 sps->constraint_set0_flag = 0; in allegro_h264_write_sps()
1644 sps->constraint_set1_flag = 1; in allegro_h264_write_sps()
1645 sps->constraint_set2_flag = 0; in allegro_h264_write_sps()
1646 sps->constraint_set3_flag = 0; in allegro_h264_write_sps()
1647 sps->constraint_set4_flag = 0; in allegro_h264_write_sps()
[all …]
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-h264.c36 /* Find SPS header */ in coda_sps_parse_profile()
239 * coda_h264_sps_fixup - fixes frame cropping values in h.264 SPS
243 * @buf: buffer containing h.264 SPS RBSP, starting with NAL header
247 * Rewrites the frame cropping values in an h.264 SPS RBSP correctly for the
259 struct rbsp sps; in coda_h264_sps_fixup() local
266 sps.buf = buf + 5; /* Skip NAL header */ in coda_h264_sps_fixup()
267 sps.size = *size - 5; in coda_h264_sps_fixup()
269 profile_idc = sps.buf[0]; in coda_h264_sps_fixup()
272 sps.pos = 24; in coda_h264_sps_fixup()
275 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
[all …]
/linux/drivers/pmdomain/actions/
H A Dowl-sps.c3 * Actions Semi Owl Smart Power System (SPS)
16 #include <linux/soc/actions/owl-sps.h>
46 struct owl_sps *sps; member
56 return owl_sps_set_pg(pd->sps->base, pwr_mask, ack_mask, enable); in owl_sps_set_power()
63 dev_dbg(pd->sps->dev, "%s power on", pd->info->name); in owl_sps_power_on()
72 dev_dbg(pd->sps->dev, "%s power off", pd->info->name); in owl_sps_power_off()
77 static int owl_sps_init_domain(struct owl_sps *sps, int index) in owl_sps_init_domain() argument
81 pd = devm_kzalloc(sps->dev, sizeof(*pd), GFP_KERNEL); in owl_sps_init_domain()
85 pd->info = &sps->info->domains[index]; in owl_sps_init_domain()
86 pd->sps = sps; in owl_sps_init_domain()
[all …]
/linux/sound/soc/sof/
H A Dstream-ipc.c30 struct snd_sof_pcm_stream *sps, in sof_ipc_msg_data() argument
33 if (!sps || !sdev->stream_box.size) { in sof_ipc_msg_data()
38 if (sps->substream) { in sof_ipc_msg_data()
39 struct sof_stream *stream = sps->substream->runtime->private_data; in sof_ipc_msg_data()
46 } else if (sps->cstream) { in sof_ipc_msg_data()
48 struct sof_compr_stream *sstream = sps->cstream->runtime->private_data; in sof_ipc_msg_data()
68 struct snd_sof_pcm_stream *sps, in sof_set_stream_data_offset() argument
78 if (sps->substream) { in sof_set_stream_data_offset()
79 struct sof_stream *stream = sps->substream->runtime->private_data; in sof_set_stream_data_offset()
83 sps->substream->stream, posn_offset); in sof_set_stream_data_offset()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_g1_h264_dec.c26 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() local
33 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in set_params()
35 if (sps->profile_idc > 66) { in set_params()
41 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) && in set_params()
42 (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD || in set_params()
54 G1_REG_DEC_CTRL1_REF_FRAMES(sps->max_num_ref_frames); in set_params()
63 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY)) in set_params()
74 reg = G1_REG_DEC_CTRL4_FRAMENUM_LEN(sps->log2_max_frame_num_minus4 + 4) | in set_params()
79 if (sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) in set_params()
81 if (sps->profile_idc >= 100 && sps->chroma_format_idc == 0) in set_params()
[all …]
H A Dhantro_hevc.c81 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in tile_buffer_reallocate() local
83 unsigned int height64 = (sps->pic_height_in_luma_samples + 63) & ~63; in tile_buffer_reallocate()
157 static int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc_sps *sps) in hantro_hevc_validate_sps() argument
165 ALIGN(sps->pic_width_in_luma_samples, ctx->vpu_dst_fmt->frmsize.step_width)) in hantro_hevc_validate_sps()
169 ALIGN(sps->pic_height_in_luma_samples, ctx->vpu_dst_fmt->frmsize.step_height)) in hantro_hevc_validate_sps()
194 ctrls->sps = in hantro_hevc_dec_prepare_run()
196 if (WARN_ON(!ctrls->sps)) in hantro_hevc_dec_prepare_run()
199 ret = hantro_hevc_validate_sps(ctx, ctrls->sps); in hantro_hevc_dec_prepare_run()
H A Drockchip_vpu2_hw_h264_dec.c197 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() local
238 VDPU_REG_PIC_INTERLACE_E(!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) && in set_params()
239 (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD || in set_params()
243 VDPU_REG_WRITE_MVS_E((sps->profile_idc > 66) && dec_param->nal_ref_idc) | in set_params()
244 VDPU_REG_SEQ_MBAFF_E(sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) | in set_params()
245 VDPU_REG_PICORD_COUNT_E(sps->profile_idc > 66) | in set_params()
268 VDPU_REG_REF_FRAMES(sps->max_num_ref_frames); in set_params()
273 VDPU_REG_FRAMENUM_LEN(sps->log2_max_frame_num_minus4 + 4) | in set_params()
288 VDPU_REG_DIR_8X8_INFER_E(sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) | in set_params()
289 VDPU_REG_BLACKWHITE_E(sps->profile_idc >= 100 && sps->chroma_format_idc == 0) | in set_params()
[all …]
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h265.c420 const struct v4l2_ctrl_hevc_sps *sps; in cedrus_h265_setup() local
439 sps = run->h265.sps; in cedrus_h265_setup()
457 sps->log2_min_luma_coding_block_size_minus3 + 3 + in cedrus_h265_setup()
458 sps->log2_diff_max_min_luma_coding_block_size; in cedrus_h265_setup()
461 DIV_ROUND_UP(sps->pic_width_in_luma_samples, ctb_size_luma); in cedrus_h265_setup()
566 /* SPS. */ in cedrus_h265_setup()
568 …reg = VE_DEC_H265_DEC_SPS_HDR_MAX_TRANSFORM_HIERARCHY_DEPTH_INTRA(sps->max_transform_hierarchy_dep… in cedrus_h265_setup()
569 …VE_DEC_H265_DEC_SPS_HDR_MAX_TRANSFORM_HIERARCHY_DEPTH_INTER(sps->max_transform_hierarchy_depth_int… in cedrus_h265_setup()
570 …VE_DEC_H265_DEC_SPS_HDR_LOG2_DIFF_MAX_MIN_TRANSFORM_BLOCK_SIZE(sps->log2_diff_max_min_luma_transfo… in cedrus_h265_setup()
571 …VE_DEC_H265_DEC_SPS_HDR_LOG2_MIN_TRANSFORM_BLOCK_SIZE_MINUS2(sps->log2_min_luma_transform_block_si… in cedrus_h265_setup()
[all …]
H A Dcedrus_h264.c91 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_write_frame_list() local
143 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_write_frame_list() local
148 if (!(sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE)) in cedrus_write_frame_list()
150 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY)) in cedrus_write_frame_list()
169 else if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in cedrus_write_frame_list()
347 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_set_params() local
423 reg |= (sps->chroma_format_idc & 0x7) << 19; in cedrus_set_params()
424 reg |= (sps->pic_width_in_mbs_minus1 & 0xff) << 8; in cedrus_set_params()
425 reg |= sps->pic_height_in_map_units_minus1 & 0xff; in cedrus_set_params()
426 if (sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) in cedrus_set_params()
[all …]
/linux/drivers/iio/pressure/
H A Dhsc030pa_spi.c7 ….honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/common/…
8 ….honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/common/…
H A Dhsc030pa_i2c.c7 …content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-s…
8 ….honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/common/…
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_multi_if.c35 * @sps: h264 sps syntax parameters
43 struct mtk_h264_sps_param sps; member
115 * @sps: sequence header information from user space
123 struct v4l2_ctrl_h264_sps sps; member
274 const struct v4l2_ctrl_h264_sps *sps; in vdec_h264_slice_fill_decode_parameters() local
287 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in vdec_h264_slice_fill_decode_parameters()
288 if (IS_ERR(sps)) in vdec_h264_slice_fill_decode_parameters()
289 return PTR_ERR(sps); in vdec_h264_slice_fill_decode_parameters()
301 mtk_vdec_h264_copy_sps_params(&slice_param->sps, sps); in vdec_h264_slice_fill_decode_parameters()
305 memcpy(&share_info->sps, sps, sizeof(*sps)); in vdec_h264_slice_fill_decode_parameters()
[all …]
H A Dvdec_hevc_req_multi_if.c22 /* get used parameters for sps/pps */
55 * struct mtk_hevc_sps_param - parameters for sps
237 * @sps: hevc sps syntax parameters
245 struct mtk_hevc_sps_param sps; member
330 * @sps: sequence header information from user space
336 struct v4l2_ctrl_hevc_sps sps; member
594 const struct v4l2_ctrl_hevc_sps *sps; in vdec_hevc_slice_fill_decode_parameters() local
607 sps = vdec_hevc_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_HEVC_SPS); in vdec_hevc_slice_fill_decode_parameters()
608 if (IS_ERR(sps)) in vdec_hevc_slice_fill_decode_parameters()
609 return PTR_ERR(sps); in vdec_hevc_slice_fill_decode_parameters()
[all …]
H A Dvdec_h264_req_if.c20 struct mtk_h264_sps_param sps; member
99 const struct v4l2_ctrl_h264_sps *sps; in get_vdec_decode_parameters() local
116 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in get_vdec_decode_parameters()
117 if (IS_ERR(sps)) in get_vdec_decode_parameters()
118 return PTR_ERR(sps); in get_vdec_decode_parameters()
131 mtk_vdec_h264_copy_sps_params(&slice_param->sps, sps); in get_vdec_decode_parameters()
140 v4l2_h264_init_reflist_builder(&reflist_builder, dec_params, sps, in get_vdec_decode_parameters()
/linux/arch/arm/mach-actions/
H A Dplatsmp.c18 #include <linux/soc/actions/owl-sps.h>
113 node = of_find_compatible_node(NULL, NULL, "actions,s500-sps"); in s500_smp_prepare_cpus()
115 pr_err("%s: missing sps\n", __func__); in s500_smp_prepare_cpus()
121 pr_err("%s: could not map sps registers\n", __func__); in s500_smp_prepare_cpus()
/linux/drivers/misc/mei/
H A Dhw-me.h91 * SPS firmware exclusion.
95 * SPS firmware exclusion.
98 * SPS firmware exclusion.
104 * SPS firmware exclusion.

12345