Lines Matching defs:sps
29 int ff_h264_pred_weight_table(GetBitContext *gb, const SPS *sps,
47 if (sps->chroma_format_idc) {
79 if (sps->chroma_format_idc) {
111 if (sps->chroma_format_idc) {
280 const SPS *sps, H264POCContext *pc,
283 const int max_frame_num = 1 << sps->log2_max_frame_num;
290 if (sps->poc_type == 0) {
291 const int max_poc_lsb = 1 << sps->log2_max_poc_lsb;
307 } else if (sps->poc_type == 1) {
312 if (sps->poc_cycle_length != 0)
321 for (i = 0; i < sps->poc_cycle_length; i++)
322 // FIXME integrate during sps parse
323 expected_delta_per_poc_cycle += sps->offset_for_ref_frame[i];
326 int poc_cycle_cnt = (abs_frame_num - 1) / sps->poc_cycle_length;
327 int frame_num_in_poc_cycle = (abs_frame_num - 1) % sps->poc_cycle_length;
331 expectedpoc = expectedpoc + sps->offset_for_ref_frame[i];
336 expectedpoc = expectedpoc + sps->offset_for_non_ref_pic;
339 field_poc[1] = field_poc[0] + sps->offset_for_top_to_bottom_field;
484 // Decode sps from avcC
485 cnt = *(p + 5) & 0x1f; // Number of sps
494 "Decoding sps %d from avcC failed\n", i);
527 * @param sps SPS
531 int ff_h264_get_profile(const SPS *sps)
533 int profile = sps->profile_idc;
535 switch (sps->profile_idc) {
538 profile |= (sps->constraint_set_flags & 1 << 1) ? FF_PROFILE_H264_CONSTRAINED : 0;
544 profile |= (sps->constraint_set_flags & 1 << 3) ? FF_PROFILE_H264_INTRA : 0;