Lines Matching refs:picParam
31 AVCPicParamSet *picParam = video->currPicParams;
45 library supports in seqParam, picParam and sliceHdr structures and
234 picParam->pic_parameter_set_id = (uint)(-1); /* start with zero */
235 picParam->seq_parameter_set_id = (uint)(-1); /* start with zero */
236 picParam->entropy_coding_mode_flag = 0; /* default to CAVLC */
237 picParam->pic_order_present_flag = 0; /* default for now, will need it for B-slice */
243 picParam->num_slice_groups_minus1 = encParam->num_slice_group - 1;
245 if (picParam->num_slice_groups_minus1 > 0)
247 picParam->slice_group_map_type = encParam->fmo_type;
251 for (ii = 0; ii <= (int)picParam->num_slice_groups_minus1; ii++)
253 picParam->run_length_minus1[ii] = encParam->run_length_minus1[ii];
257 for (ii = 0; ii < (int)picParam->num_slice_groups_minus1; ii++)
259 picParam->top_left[ii] = encParam->top_left[ii];
260 picParam->bottom_right[ii] = encParam->bottom_right[ii];
268 picParam->slice_group_change_direction_flag = TRUE;
272 picParam->slice_group_change_direction_flag = FALSE;
279 picParam->slice_group_change_rate_minus1 = encParam->change_rate_minus1;
280 video->SliceGroupChangeRate = picParam->slice_group_change_rate_minus1 + 1;
283 picParam->pic_size_in_map_units_minus1 = video->PicSizeInMapUnits - 1;
285 /* allocate picParam->slice_group_id */
286 picParam->slice_group_id = (uint*)avcHandle->CBAVC_Malloc(userData, sizeof(uint) * video->PicSizeInMapUnits, DEFAULT_ATTR);
287 if (picParam->slice_group_id == NULL)
298 picParam->slice_group_id[ii] = encParam->slice_group[ii];
305 picParam->num_ref_idx_l0_active_minus1 = encParam->num_ref_frame - 1; /* assume frame only */
306 picParam->num_ref_idx_l1_active_minus1 = 0; /* default value */
307 picParam->weighted_pred_flag = 0; /* no weighted prediction supported */
308 picParam->weighted_bipred_idc = 0; /* range 0,1,2 */
309 if (/*picParam->weighted_bipred_idc < 0 || (no need, it's unsigned) */
310 picParam->weighted_bipred_idc > 2)
314 picParam->pic_init_qp_minus26 = 0; /* default, will be changed at slice level anyway */
315 if (picParam->pic_init_qp_minus26 < -26 || picParam->pic_init_qp_minus26 > 25)
319 picParam->pic_init_qs_minus26 = 0;
320 if (picParam->pic_init_qs_minus26 < -26 || picParam->pic_init_qs_minus26 > 25)
325 picParam->chroma_qp_index_offset = 0; /* default to zero for now */
326 if (picParam->chroma_qp_index_offset < -12 || picParam->chroma_qp_index_offset > 12)
331 picParam->deblocking_filter_control_present_flag = (encParam->db_filter == AVC_ON) ? TRUE : FALSE ;
333 picParam->constrained_intra_pred_flag = (encParam->constrained_intra_pred == AVC_ON) ? TRUE : FALSE;
334 picParam->redundant_pic_cnt_present_flag = 0; /* default */
338 picParam->pic_parameter_set_id = extP->pic_parameter_set_id - 1; /* to be increased by one */
339 picParam->seq_parameter_set_id = extP->seq_parameter_set_id;
340 picParam->entropy_coding_mode_flag = extP->entropy_coding_mode_flag;
345 picParam->pic_order_present_flag = extP->pic_order_present_flag; /* default for now, will need it for B-slice */
356 picParam->num_slice_groups_minus1 = extP->num_slice_groups_minus1;
358 if (picParam->num_slice_groups_minus1 > 0)
360 picParam->slice_group_map_type = extP->slice_group_map_type;
366 picParam->run_length_minus1[ii] = extP->run_length_minus1[ii];
370 picParam->num_slice_groups_minus1; ii++)
372 picParam->top_left[ii] = extP->top_left[ii];
373 picParam->bottom_right[ii] = extP->bottom_right[ii];
379 picParam->slice_group_change_direction_flag = extP->slice_group_change_direction_flag;
385 picParam->slice_group_change_rate_minus1 = extP->slice_group_change_rate_minus1;
386 video->SliceGroupChangeRate = picParam->slice_group_change_rate_minus1 + 1;
394 picParam->pic_size_in_map_units_minus1 = extP->pic_size_in_map_units_minus1;
396 /* allocate picParam->slice_group_id */
397 picParam->slice_group_id = (uint*)avcHandle->CBAVC_Malloc(userData, sizeof(uint) * video->PicSizeInMapUnits, DEFAULT_ATTR);
398 if (picParam->slice_group_id == NULL)
409 picParam->slice_group_id[ii] = extP->slice_group_id[ii];
416 picParam->num_ref_idx_l0_active_minus1 = extP->num_ref_idx_l0_active_minus1;
417 picParam->num_ref_idx_l1_active_minus1 = extP->num_ref_idx_l1_active_minus1; /* default value */
418 if (picParam->num_ref_idx_l1_active_minus1 != 0)
428 picParam->weighted_pred_flag = 0; /* no weighted prediction supported */
429 picParam->weighted_bipred_idc = extP->weighted_bipred_idc; /* range 0,1,2 */
430 if (/*picParam->weighted_bipred_idc < 0 || (no need, it's unsigned) */
431 picParam->weighted_bipred_idc > 2)
435 picParam->pic_init_qp_minus26 = extP->pic_init_qp_minus26; /* default, will be changed at slice level anyway */
436 if (picParam->pic_init_qp_minus26 < -26 || picParam->pic_init_qp_minus26 > 25)
440 picParam->pic_init_qs_minus26 = extP->pic_init_qs_minus26;
441 if (picParam->pic_init_qs_minus26 < -26 || picParam->pic_init_qs_minus26 > 25)
446 picParam->chroma_qp_index_offset = extP->chroma_qp_index_offset; /* default to zero for now */
447 if (picParam->chroma_qp_index_offset < -12 || picParam->chroma_qp_index_offset > 12)
452 picParam->deblocking_filter_control_present_flag = extP->deblocking_filter_control_present_flag;
454 picParam->constrained_intra_pred_flag = extP->constrained_intra_pred_flag;
459 picParam->redundant_pic_cnt_present_flag = extP->redundant_pic_cnt_present_flag; /* default */
467 if (picParam->deblocking_filter_control_present_flag == TRUE)
553 status = VerifyProfile(encvid, seqParam, picParam);
559 status = VerifyLevel(encvid, seqParam, picParam);
569 AVCEnc_Status VerifyProfile(AVCEncObject *encvid, AVCSeqParamSet *seqParam, AVCPicParamSet *picParam)
578 picParam->entropy_coding_mode_flag == FALSE &&
579 picParam->num_slice_groups_minus1 <= 7 /*&&
580 picParam->num_slice_groups_minus1>=0 (no need, it's unsigned) */)
587 picParam->num_slice_groups_minus1 == 0 &&
588 picParam->redundant_pic_cnt_present_flag == FALSE)
597 picParam->weighted_pred_flag == FALSE &&
598 picParam->weighted_bipred_idc == 0 &&
599 picParam->entropy_coding_mode_flag == FALSE &&
600 picParam->num_slice_groups_minus1 <= 7 /*&&
601 picParam->num_slice_groups_minus1>=0 (no need, it's unsigned)*/)
620 picParam->weighted_pred_flag == TRUE ||
621 picParam->weighted_bipred_idc != 0 ||
622 picParam->entropy_coding_mode_flag == TRUE ||
623 picParam->num_slice_groups_minus1 > 7 /*||
624 picParam->num_slice_groups_minus1<0 (no need, it's unsigned) */)
639 AVCEnc_Status VerifyLevel(AVCEncObject *encvid, AVCSeqParamSet *seqParam, AVCPicParamSet *picParam)
641 (void)(picParam);