Lines Matching defs:sps

219         ff_h264_pred_weight_table(gb, p->ps.sps, ref_count, slice_type_nos,
290 const SPS *sps;
378 p->ps.sps = NULL;
383 p->ps.sps = p->ps.pps->sps;
384 sps = p->ps.sps;
387 if (p->ps.sps->ref_frame_count <= 1 && p->ps.pps->ref_count[0] <= 1 && s->pict_type == AV_PICTURE_TYPE_I)
390 p->poc.frame_num = get_bits(&nal.gb, sps->log2_max_frame_num);
392 s->coded_width = 16 * sps->mb_width;
393 s->coded_height = 16 * sps->mb_height;
394 s->width = s->coded_width - (sps->crop_right + sps->crop_left);
395 s->height = s->coded_height - (sps->crop_top + sps->crop_bottom);
401 switch (sps->bit_depth_luma) {
403 if (sps->chroma_format_idc == 3) s->format = AV_PIX_FMT_YUV444P9;
404 else if (sps->chroma_format_idc == 2) s->format = AV_PIX_FMT_YUV422P9;
408 if (sps->chroma_format_idc == 3) s->format = AV_PIX_FMT_YUV444P10;
409 else if (sps->chroma_format_idc == 2) s->format = AV_PIX_FMT_YUV422P10;
413 if (sps->chroma_format_idc == 3) s->format = AV_PIX_FMT_YUV444P;
414 else if (sps->chroma_format_idc == 2) s->format = AV_PIX_FMT_YUV422P;
421 avctx->profile = ff_h264_get_profile(sps);
422 avctx->level = sps->level_idc;
424 if (sps->frame_mbs_only_flag) {
436 if (sps->poc_type == 0) {
437 p->poc.poc_lsb = get_bits(&nal.gb, sps->log2_max_poc_lsb);
444 if (sps->poc_type == 1 &&
445 !sps->delta_pic_order_always_zero_flag) {
456 ret = ff_h264_init_poc(field_poc, &s->output_picture_number, sps,
487 sps, avctx);
494 if (sps->pic_struct_present_flag && p->sei.picture_timing.present) {
525 if (sps->pic_struct_present_flag && p->sei.picture_timing.present) {
566 if (sps->timing_info_present_flag) {
567 int64_t den = sps->time_scale;
571 sps->num_units_in_tick * avctx->ticks_per_frame, den, 1 << 30);