Home
last modified time | relevance | path

Searched refs:sps (Results 1 – 25 of 80) sorted by relevance

1234

/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/
H A Dh264e_sps.c61 MPP_RET h264e_sps_update(H264eSps *sps, MppEncCfgSet *cfg) in h264e_sps_update() argument
63 H264eVui *vui = &sps->vui; in h264e_sps_update()
81 sps->profile_idc = h264->profile; in h264e_sps_update()
82 switch (sps->profile_idc) { in h264e_sps_update()
84 sps->constraint_set0 = 1; in h264e_sps_update()
85 sps->constraint_set1 = 1; in h264e_sps_update()
86 sps->constraint_set2 = 0; in h264e_sps_update()
87 sps->constraint_set3 = 0; in h264e_sps_update()
88 sps->constraint_set4 = 0; in h264e_sps_update()
89 sps->constraint_set5 = 0; in h264e_sps_update()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/
H A Dh265e_ps.c164 MPP_RET h265e_set_sps(H265eCtx *ctx, H265eSps *sps, H265eVps *vps) in h265e_set_sps() argument
180 RK_U32 *tmp = &sps->zscan2raster[0]; in h265e_set_sps()
203 …init_raster2zscan(codec->max_cu_size, maxCUDepth + 1, &sps->raster2zscan[0], &sps->zscan2raster[0]… in h265e_set_sps()
204 … init_raster2pelxy(codec->max_cu_size, maxCUDepth + 1, &sps->raster2pelx[0], &sps->raster2pely[0]); in h265e_set_sps()
206 memset(&sps->m_conformanceWindow, 0, sizeof(H265eCropInfo)); in h265e_set_sps()
214 sps->m_conformanceWindow.m_enabledFlag = 1; in h265e_set_sps()
215 sps->m_conformanceWindow.m_winRightOffset = pad[0]; in h265e_set_sps()
225 sps->m_conformanceWindow.m_enabledFlag = 1; in h265e_set_sps()
226 sps->m_conformanceWindow.m_winBottomOffset = pad[1]; in h265e_set_sps()
231 sps->m_SPSId = 0; in h265e_set_sps()
[all …]
H A Dh265e_header_gen.c429 static MPP_RET h265e_sps_write(H265eSps *sps, H265eStream *s) in h265e_sps_write() argument
435 H265eCropInfo *conf = &sps->m_conformanceWindow; in h265e_sps_write()
441 h265e_stream_write_with_log(s, sps->m_VPSId, 4, "sps_video_parameter_set_id"); in h265e_sps_write()
442 h265e_stream_write_with_log(s, sps->m_maxTLayers - 1, 3, "sps_max_sub_layers_minus1"); in h265e_sps_write()
443 …h265e_stream_write1_with_log(s, sps->m_bTemporalIdNestingFlag ? 1 : 0, "sps_temporal_id_nesting_fl… in h265e_sps_write()
444 codePTL(s, sps->m_ptl, 1, sps->m_maxTLayers - 1); in h265e_sps_write()
445 h265e_stream_write_ue_with_log(s, sps->m_SPSId, "sps_seq_parameter_set_id"); in h265e_sps_write()
446 h265e_stream_write_ue_with_log(s, sps->m_chromaFormatIdc, "chroma_format_idc"); in h265e_sps_write()
448 if (sps->m_chromaFormatIdc == 4) { in h265e_sps_write()
452 h265e_stream_write_ue_with_log(s, sps->m_picWidthInLumaSamples, "pic_width_in_luma_samples"); in h265e_sps_write()
[all …]
H A Dh265e_syntax.c29 const H265eSps *sps = (H265eSps *)&h->sps; in fill_picture_parameters() local
39 pp->vps_id = sps->m_VPSId; in fill_picture_parameters()
42 pp->wFormatAndSequenceInfoFlags = (sps->m_chromaFormatIdc << 0) | in fill_picture_parameters()
43 (sps->m_colorPlaneFlag << 2) | in fill_picture_parameters()
44 ((sps->m_bitDepthY - 8) << 3) | in fill_picture_parameters()
45 ((sps->m_bitDepthC - 8) << 6) | in fill_picture_parameters()
46 ((sps->m_bitsForPOC - 4) << 9) | in fill_picture_parameters()
52 …pp->sps_max_dec_pic_buffering_minus1 = sps->m_maxDecPicBuffering[sps->m_maxTLayers - 1] - … in fill_picture_parameters()
53 pp->log2_min_luma_coding_block_size_minus3 = sps->m_log2MinCodingBlockSize - 3; in fill_picture_parameters()
54 pp->log2_diff_max_min_luma_coding_block_size = sps->m_log2DiffMaxMinCodingBlockSize; in fill_picture_parameters()
[all …]
H A Dh265e_slice.c210 H265eSps *sps = &p->sps; in h265e_slice_init() local
218 slice->m_sps = sps; in h265e_slice_init()
233 slice->m_enableTMVPFlag = sps->m_TMVPFlagsPresent; in h265e_slice_init()
535 H265eSps *sps = slice->m_sps; in code_skip_flag() local
537 RK_U32 tpelx = cu->pixelX + sps->raster2pelx[sps->zscan2raster[abs_part_idx]]; in code_skip_flag()
538 RK_U32 tpely = cu->pixelY + sps->raster2pely[sps->zscan2raster[abs_part_idx]]; in code_skip_flag()
562 H265eSps *sps = slice->m_sps; in code_split_flag() local
567 …h265e_dbg_skip("depth %d cu->m_cuDepth %d", depth, cu->m_cuDepth[sps->zscan2raster[abs_part_idx]]); in code_split_flag()
570 RK_U32 currSplitFlag = (cu->m_cuDepth[sps->zscan2raster[abs_part_idx]] > depth) ? 1 : 0; in code_split_flag()
577 H265eSps *sps = slice->m_sps; in encode_cu() local
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h265/
H A Dh265d_ps.c129 const HEVCSPS *sps, RK_S32 is_slice_header) in mpp_hevc_decode_short_term_rps() argument
141 if (rps != sps->st_rps && sps->nb_st_rps) in mpp_hevc_decode_short_term_rps()
154 if (delta_idx > sps->nb_st_rps) { in mpp_hevc_decode_short_term_rps()
157 delta_idx, sps->nb_st_rps); in mpp_hevc_decode_short_term_rps()
160 rps_ridx = &sps->st_rps[sps->nb_st_rps - delta_idx]; in mpp_hevc_decode_short_term_rps()
162 rps_ridx = &sps->st_rps[rps - sps->st_rps - 1]; in mpp_hevc_decode_short_term_rps()
636 static RK_S32 compare_sps(HEVCSPS *openhevc_sps, HEVCSPS *sps) in compare_sps() argument
638 if (openhevc_sps->vps_id != sps->vps_id) { in compare_sps()
642 if (openhevc_sps->sps_id != sps->sps_id) { in compare_sps()
646 if (openhevc_sps->chroma_format_idc != sps->chroma_format_idc) { in compare_sps()
[all …]
H A Dh265d_parser2_syntax.c58 const HEVCSPS *sps = (HEVCSPS *)h->sps_list[pps->sps_id]; in fill_picture_parameters() local
59 const ShortTermRPS *src_rps = sps->st_rps; in fill_picture_parameters()
68 pp->PicWidthInMinCbsY = sps->min_cb_width; in fill_picture_parameters()
69 pp->PicHeightInMinCbsY = sps->min_cb_height; in fill_picture_parameters()
72 pp->vps_id = sps->vps_id; in fill_picture_parameters()
74 pp->wFormatAndSequenceInfoFlags = (sps->chroma_format_idc << 0) | in fill_picture_parameters()
75 (sps->separate_colour_plane_flag << 2) | in fill_picture_parameters()
76 ((sps->bit_depth - 8) << 3) | in fill_picture_parameters()
77 ((sps->bit_depth - 8) << 6) | in fill_picture_parameters()
78 ((sps->log2_max_poc_lsb - 4) << 9) | in fill_picture_parameters()
[all …]
H A Dh265d_parser.c325 if (s->sps->chroma_format_idc != 0) { in pred_weight_table()
339 if (s->sps->chroma_format_idc != 0) { // FIXME: invert "if" and "for" in pred_weight_table()
381 if (s->sps->chroma_format_idc != 0) { in pred_weight_table()
420 const HEVCSPS *sps = s->sps; in decode_lt_rps() local
421 RK_S32 max_poc_lsb = 1 << sps->log2_max_poc_lsb; in decode_lt_rps()
431 if (!sps->long_term_ref_pics_present_flag) in decode_lt_rps()
434 if (sps->num_long_term_ref_pics_sps > 0) in decode_lt_rps()
450 if (sps->num_long_term_ref_pics_sps > 1) in decode_lt_rps()
451 READ_BITS(gb, mpp_ceil_log2(sps->num_long_term_ref_pics_sps), &lt_idx_sps); in decode_lt_rps()
453 rps->poc[i] = sps->lt_ref_pic_poc_lsb_sps[lt_idx_sps]; in decode_lt_rps()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h264/
H A Dh264d_scalist.c66 static void set_sps_scanlist_matrix(H264_SPS_t *sps, H264dVideoCtx_t *p_Vid) in set_sps_scanlist_matrix() argument
71 if (!sps->seq_scaling_list_present_flag[i]) { // fall-back rule A in set_sps_scanlist_matrix()
80 if (sps->UseDefaultScalingMatrix4x4Flag[i]) { in set_sps_scanlist_matrix()
84 p_Vid->qmatrix[i] = sps->ScalingList4x4[i]; in set_sps_scanlist_matrix()
89 for (i = 6; i < ((sps->chroma_format_idc != H264_CHROMA_444) ? 8 : 12); ++i) { in set_sps_scanlist_matrix()
90 if (!sps->seq_scaling_list_present_flag[i]) { // fall-back rule A in set_sps_scanlist_matrix()
99 if (sps->UseDefaultScalingMatrix8x8Flag[i - 6]) { in set_sps_scanlist_matrix()
103 p_Vid->qmatrix[i] = sps->ScalingList8x8[i - 6]; in set_sps_scanlist_matrix()
109 static void set_pps_scanlist_matrix(H264_SPS_t *sps, H264_PPS_t *pps, H264dVideoCtx_t *p_Vid) in set_pps_scanlist_matrix() argument
116 if (!sps->seq_scaling_matrix_present_flag) { in set_pps_scanlist_matrix()
[all …]
H A Dh264d_sps.c41 cur_subpps->sps.seq_parameter_set_id = 0; // reset in reset_cur_subpps_data()
363 if ((cur_subsps->sps.profile_idc == H264_PROFILE_MVC_HIGH) in parser_subsps_ext()
364 || (cur_subsps->sps.profile_idc == H264_PROFILE_STEREO_HIGH)) { in parser_subsps_ext()
379 static void update_video_pars(H264dVideoCtx_t *p_Vid, H264_SPS_t *sps) in update_video_pars() argument
387 p_Vid->max_frame_num = 1 << (sps->log2_max_frame_num_minus4 + 4); in update_video_pars()
388 p_Vid->PicWidthInMbs = (sps->pic_width_in_mbs_minus1 + 1); in update_video_pars()
389 …p_Vid->FrameHeightInMbs = (2 - sps->frame_mbs_only_flag) * (sps->pic_height_in_map_units_minus1 + … in update_video_pars()
390 p_Vid->yuv_format = sps->chroma_format_idc; in update_video_pars()
391 p_Vid->frame_mbs_only_flag = sps->frame_mbs_only_flag; in update_video_pars()
395 p_Vid->bit_depth_luma = sps->bit_depth_luma_minus8 + 8; in update_video_pars()
[all …]
H A Dh264d_slice.c270 static MPP_RET check_sps_pps(H264_SPS_t *sps, H264_subSPS_t *subset_sps, in check_sps_pps() argument
276 ret |= (sps->seq_parameter_set_id > 31); in check_sps_pps()
277 ret |= (sps->separate_colour_plane_flag == 1); in check_sps_pps()
278 ret |= (sps->chroma_format_idc == 3); in check_sps_pps()
279 ret |= (sps->bit_depth_luma_minus8 > 2); in check_sps_pps()
280 ret |= (sps->bit_depth_chroma_minus8 > 2); in check_sps_pps()
281 ret |= (sps->log2_max_frame_num_minus4 > 12); in check_sps_pps()
282 ret |= (sps->pic_order_cnt_type > 2); in check_sps_pps()
283 ret |= (sps->log2_max_pic_order_cnt_lsb_minus4 > 12); in check_sps_pps()
284 ret |= (sps->num_ref_frames_in_pic_order_cnt_cycle > 255); in check_sps_pps()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/coda/
H A Dcoda-h264.c259 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()
291 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
295 ret = rbsp_read_uev(&sps, &pic_order_cnt_type); in coda_h264_sps_fixup()
301 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
308 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/allegro-dvt/
H A Dnal-h264.c594 static void nal_h264_rbsp_sps(struct rbsp *rbsp, struct nal_h264_sps *sps) in nal_h264_rbsp_sps() argument
598 if (!sps) { in nal_h264_rbsp_sps()
603 rbsp_bits(rbsp, 8, &sps->profile_idc); in nal_h264_rbsp_sps()
604 rbsp_bit(rbsp, &sps->constraint_set0_flag); in nal_h264_rbsp_sps()
605 rbsp_bit(rbsp, &sps->constraint_set1_flag); in nal_h264_rbsp_sps()
606 rbsp_bit(rbsp, &sps->constraint_set2_flag); in nal_h264_rbsp_sps()
607 rbsp_bit(rbsp, &sps->constraint_set3_flag); in nal_h264_rbsp_sps()
608 rbsp_bit(rbsp, &sps->constraint_set4_flag); in nal_h264_rbsp_sps()
609 rbsp_bit(rbsp, &sps->constraint_set5_flag); in nal_h264_rbsp_sps()
610 rbsp_bits(rbsp, 2, &sps->reserved_zero_2bits); in nal_h264_rbsp_sps()
[all …]
H A Dallegro-core.c1271 struct nal_h264_sps *sps; in allegro_h264_write_sps() local
1278 sps = kzalloc(sizeof(*sps), GFP_KERNEL); in allegro_h264_write_sps()
1279 if (!sps) in allegro_h264_write_sps()
1282 sps->profile_idc = nal_h264_profile_from_v4l2(channel->profile); in allegro_h264_write_sps()
1283 sps->constraint_set0_flag = 0; in allegro_h264_write_sps()
1284 sps->constraint_set1_flag = 1; in allegro_h264_write_sps()
1285 sps->constraint_set2_flag = 0; in allegro_h264_write_sps()
1286 sps->constraint_set3_flag = 0; in allegro_h264_write_sps()
1287 sps->constraint_set4_flag = 0; in allegro_h264_write_sps()
1288 sps->constraint_set5_flag = 0; in allegro_h264_write_sps()
[all …]
/OK3568_Linux_fs/kernel/drivers/soc/actions/
H A Dowl-sps.c44 struct owl_sps *sps; member
54 return owl_sps_set_pg(pd->sps->base, pwr_mask, ack_mask, enable); in owl_sps_set_power()
61 dev_dbg(pd->sps->dev, "%s power on", pd->info->name); in owl_sps_power_on()
70 dev_dbg(pd->sps->dev, "%s power off", pd->info->name); in owl_sps_power_off()
75 static int owl_sps_init_domain(struct owl_sps *sps, int index) in owl_sps_init_domain() argument
79 pd = devm_kzalloc(sps->dev, sizeof(*pd), GFP_KERNEL); in owl_sps_init_domain()
83 pd->info = &sps->info->domains[index]; in owl_sps_init_domain()
84 pd->sps = sps; in owl_sps_init_domain()
92 sps->genpd_data.domains[index] = &pd->genpd; in owl_sps_init_domain()
101 struct owl_sps *sps; in owl_sps_probe() local
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_base.c37 Vp8eSps *sps = &ctx->sps; in set_frame_params() local
41 pps->level_sgm[i] = sps->filter_level; in set_frame_params()
51 Vp8eSps *sps = &ctx->sps; in set_filter() local
53 if (sps->auto_filter_level) { in set_filter()
58 sps->filter_level = MPP_CLIP3(0, 63, tmp); in set_filter()
64 sps->filter_level = inter_level_tbl[qp]; in set_filter()
72 if (sps->auto_filter_sharpness) { in set_filter()
73 sps->filter_sharpness = 0; in set_filter()
76 if (!sps->filter_delta_enable) in set_filter()
79 if (sps->filter_delta_enable == 2) { in set_filter()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h265.c248 const struct v4l2_ctrl_hevc_sps *sps; in cedrus_h265_setup() local
259 sps = run->h265.sps; in cedrus_h265_setup()
269 sps->log2_min_luma_coding_block_size_minus3 + 3 + in cedrus_h265_setup()
270 sps->log2_diff_max_min_luma_coding_block_size; in cedrus_h265_setup()
350 …reg = VE_DEC_H265_DEC_SPS_HDR_MAX_TRANSFORM_HIERARCHY_DEPTH_INTRA(sps->max_transform_hierarchy_dep… in cedrus_h265_setup()
351 …VE_DEC_H265_DEC_SPS_HDR_MAX_TRANSFORM_HIERARCHY_DEPTH_INTER(sps->max_transform_hierarchy_depth_int… in cedrus_h265_setup()
352 …VE_DEC_H265_DEC_SPS_HDR_LOG2_DIFF_MAX_MIN_TRANSFORM_BLOCK_SIZE(sps->log2_diff_max_min_luma_transfo… in cedrus_h265_setup()
353 …VE_DEC_H265_DEC_SPS_HDR_LOG2_MIN_TRANSFORM_BLOCK_SIZE_MINUS2(sps->log2_min_luma_transform_block_si… in cedrus_h265_setup()
354 …VE_DEC_H265_DEC_SPS_HDR_LOG2_DIFF_MAX_MIN_LUMA_CODING_BLOCK_SIZE(sps->log2_diff_max_min_luma_codin… in cedrus_h265_setup()
355 …VE_DEC_H265_DEC_SPS_HDR_LOG2_MIN_LUMA_CODING_BLOCK_SIZE_MINUS3(sps->log2_min_luma_coding_block_siz… in cedrus_h265_setup()
[all …]
H A Dcedrus_h264.c98 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_write_frame_list() local
151 else if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in cedrus_write_frame_list()
327 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_set_params() local
403 reg |= (sps->chroma_format_idc & 0x7) << 19; in cedrus_set_params()
404 reg |= (sps->pic_width_in_mbs_minus1 & 0xff) << 8; in cedrus_set_params()
405 reg |= sps->pic_height_in_map_units_minus1 & 0xff; in cedrus_set_params()
406 if (sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) in cedrus_set_params()
408 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in cedrus_set_params()
410 if (sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) in cedrus_set_params()
415 (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD); in cedrus_set_params()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/hantro/
H A Dhantro_g1_h264_dec.c26 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() local
34 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in set_params()
36 if (sps->profile_idc > 66) { in set_params()
42 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) && in set_params()
43 (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD || in set_params()
55 G1_REG_DEC_CTRL1_REF_FRAMES(sps->max_num_ref_frames); in set_params()
64 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY)) in set_params()
75 reg = G1_REG_DEC_CTRL4_FRAMENUM_LEN(sps->log2_max_frame_num_minus4 + 4) | in set_params()
80 if (sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) in set_params()
82 if (sps->profile_idc >= 100 && sps->chroma_format_idc == 0) in set_params()
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Dspeexdsp.c33 SpeexPreprocessState* sps;/* DSP state. */ member
150 if (p->sps) in stop()
152 speex_preprocess_state_destroy(p->sps); in stop()
153 p->sps = NULL; in stop()
200 p->sps = speex_preprocess_state_init((int)p->buffer_end, (int)(effp->in_signal.rate + .5)); in start()
201 if (!p->sps) in start()
209 speex_preprocess_ctl(p->sps, SPEEX_PREPROCESS_SET_AGC, &int_val); in start()
213 speex_preprocess_ctl(p->sps, SPEEX_PREPROCESS_SET_AGC_LEVEL, &float_val); in start()
217 speex_preprocess_ctl(p->sps, SPEEX_PREPROCESS_SET_DENOISE, &int_val); in start()
221 speex_preprocess_ctl(p->sps, SPEEX_PREPROCESS_SET_NOISE_SUPPRESS, &int_val); in start()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/
H A Dactions,owl-sps.txt4 - compatible : "actions,s500-sps" for S500
5 "actions,s700-sps" for S700
6 "actions,s900-sps" for S900
17 sps: power-controller@b01b0100 {
18 compatible = "actions,s500-sps";
/OK3568_Linux_fs/kernel/drivers/staging/media/rkvdec/
H A Drkvdec-h264.c112 const struct v4l2_ctrl_h264_sps *sps; member
640 const struct v4l2_ctrl_h264_sps *sps = run->sps; in assemble_hw_pps() local
664 WRITE_PPS(sps->chroma_format_idc, CHROMA_FORMAT_IDC); in assemble_hw_pps()
665 WRITE_PPS(sps->bit_depth_luma_minus8, BIT_DEPTH_LUMA); in assemble_hw_pps()
666 WRITE_PPS(sps->bit_depth_chroma_minus8, BIT_DEPTH_CHROMA); in assemble_hw_pps()
668 WRITE_PPS(sps->log2_max_frame_num_minus4, LOG2_MAX_FRAME_NUM_MINUS4); in assemble_hw_pps()
669 WRITE_PPS(sps->max_num_ref_frames, MAX_NUM_REF_FRAMES); in assemble_hw_pps()
670 WRITE_PPS(sps->pic_order_cnt_type, PIC_ORDER_CNT_TYPE); in assemble_hw_pps()
671 WRITE_PPS(sps->log2_max_pic_order_cnt_lsb_minus4, in assemble_hw_pps()
673 WRITE_PPS(!!(sps->flags & V4L2_H264_SPS_FLAG_DELTA_PIC_ORDER_ALWAYS_ZERO), in assemble_hw_pps()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/h264e/
H A Dhal_h264e_vepu541.c60 H264eSps *sps; member
305 ctx->sps = desc->p; in update_vepu541_syntax()
360 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu541_get_task()
544 static void setup_vepu541_codec(Vepu541H264eRegSet *regs, H264eSps *sps, in setup_vepu541_codec() argument
559 regs->reg104.max_fnum = sps->log2_max_frame_num_minus4; in setup_vepu541_codec()
560 regs->reg104.drct_8x8 = sps->direct8x8_inference; in setup_vepu541_codec()
561 regs->reg104.mpoc_lm4 = sps->log2_max_poc_lsb_minus4; in setup_vepu541_codec()
760 static void setup_vepu541_rdo_pred(Vepu541H264eRegSet *regs, H264eSps *sps, in setup_vepu541_rdo_pred() argument
776 regs->reg102.rect_size = (sps->profile_idc == H264_PROFILE_BASELINE && in setup_vepu541_rdo_pred()
777 sps->level_idc <= H264_LEVEL_3_0) ? 1 : 0; in setup_vepu541_rdo_pred()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/h264e/
H A Dhal_h264e_vepu2_v2.c62 H264eSps *sps; member
162 ctx->sps = desc->p; in update_vepu2_syntax()
287 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in setup_intra_refresh()
288 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in setup_intra_refresh()
344 H264eSps *sps = ctx->sps; in hal_h264e_vepu2_gen_regs_v2() local
348 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu2_gen_regs_v2()
349 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu2_gen_regs_v2()
356 mb_w = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu2_gen_regs_v2()
357 mb_h = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu2_gen_regs_v2()
405 if (sps->profile_idc > 31) in hal_h264e_vepu2_gen_regs_v2()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/imu/
H A Dadis16400.c356 int sps, ret; in adis16400_get_freq() local
363 sps = (t & ADIS16400_SMPL_PRD_TIME_BASE) ? 52851 : 1638404; in adis16400_get_freq()
364 sps /= (t & ADIS16400_SMPL_PRD_DIV_MASK) + 1; in adis16400_get_freq()
366 return sps; in adis16400_get_freq()
405 static int __adis16400_set_filter(struct iio_dev *indio_dev, int sps, int val) in __adis16400_set_filter() argument
412 if (sps / adis16400_3db_divisors[i] >= val) in __adis16400_set_filter()
508 int ret, sps; in adis16400_write_raw() local
523 sps = st->variant->get_freq(st); in adis16400_write_raw()
524 if (sps < 0) { in adis16400_write_raw()
526 return sps; in adis16400_write_raw()
[all …]

1234