• Home
  • Raw
  • Download

Lines Matching refs:sps

112     uint8_t *sps, *pps, *sps_ext;  in ff_isom_write_avcc()  local
178 sps_size = avio_get_dyn_buf(sps_pb, &sps); in ff_isom_write_avcc()
188 avio_w8(pb, sps[3]); /* profile */ in ff_isom_write_avcc()
189 avio_w8(pb, sps[4]); /* profile compat */ in ff_isom_write_avcc()
190 avio_w8(pb, sps[5]); /* level */ in ff_isom_write_avcc()
194 avio_write(pb, sps, sps_size); in ff_isom_write_avcc()
198 if (sps[3] != 66 && sps[3] != 77 && sps[3] != 88) { in ff_isom_write_avcc()
200 ret = ff_avc_decode_sps(&seq, sps + 3, sps_size - 3); in ff_isom_write_avcc()
334 int ff_avc_decode_sps(H264SPS *sps, const uint8_t *buf, int buf_size) in ff_avc_decode_sps() argument
351 memset(sps, 0, sizeof(*sps)); in ff_avc_decode_sps()
353 sps->profile_idc = get_bits(&gb, 8); in ff_avc_decode_sps()
354 sps->constraint_set_flags |= get_bits1(&gb) << 0; // constraint_set0_flag in ff_avc_decode_sps()
355 sps->constraint_set_flags |= get_bits1(&gb) << 1; // constraint_set1_flag in ff_avc_decode_sps()
356 sps->constraint_set_flags |= get_bits1(&gb) << 2; // constraint_set2_flag in ff_avc_decode_sps()
357 sps->constraint_set_flags |= get_bits1(&gb) << 3; // constraint_set3_flag in ff_avc_decode_sps()
358 sps->constraint_set_flags |= get_bits1(&gb) << 4; // constraint_set4_flag in ff_avc_decode_sps()
359 sps->constraint_set_flags |= get_bits1(&gb) << 5; // constraint_set5_flag in ff_avc_decode_sps()
361 sps->level_idc = get_bits(&gb, 8); in ff_avc_decode_sps()
362 sps->id = get_ue_golomb(&gb); in ff_avc_decode_sps()
364 if (sps->profile_idc == 100 || sps->profile_idc == 110 || in ff_avc_decode_sps()
365 sps->profile_idc == 122 || sps->profile_idc == 244 || sps->profile_idc == 44 || in ff_avc_decode_sps()
366 sps->profile_idc == 83 || sps->profile_idc == 86 || sps->profile_idc == 118 || in ff_avc_decode_sps()
367 sps->profile_idc == 128 || sps->profile_idc == 138 || sps->profile_idc == 139 || in ff_avc_decode_sps()
368 sps->profile_idc == 134) { in ff_avc_decode_sps()
369 sps->chroma_format_idc = get_ue_golomb(&gb); // chroma_format_idc in ff_avc_decode_sps()
370 if (sps->chroma_format_idc == 3) { in ff_avc_decode_sps()
373 sps->bit_depth_luma = get_ue_golomb(&gb) + 8; in ff_avc_decode_sps()
374 sps->bit_depth_chroma = get_ue_golomb(&gb) + 8; in ff_avc_decode_sps()
377 for (i = 0; i < ((sps->chroma_format_idc != 3) ? 8 : 12); i++) { in ff_avc_decode_sps()
393 sps->chroma_format_idc = 1; in ff_avc_decode_sps()
394 sps->bit_depth_luma = 8; in ff_avc_decode_sps()
395 sps->bit_depth_chroma = 8; in ff_avc_decode_sps()
417 sps->frame_mbs_only_flag = get_bits1(&gb); in ff_avc_decode_sps()
418 if (!sps->frame_mbs_only_flag) in ff_avc_decode_sps()
434 sps->sar.num = get_bits(&gb, 16); in ff_avc_decode_sps()
435 sps->sar.den = get_bits(&gb, 16); in ff_avc_decode_sps()
437 sps->sar = avc_sample_aspect_ratio[aspect_ratio_idc]; in ff_avc_decode_sps()
442 if (!sps->sar.den) { in ff_avc_decode_sps()
443 sps->sar.num = 1; in ff_avc_decode_sps()
444 sps->sar.den = 1; in ff_avc_decode_sps()