Lines Matching refs:nalu
81 for (const NaluInfo& nalu : frame->GetNaluInfos()) { in SetState() local
82 if (nalu.type == H264::NaluType::kPps) { in SetState()
83 if (nalu.pps_id < 0) { in SetState()
85 } else if (nalu.sps_id < 0) { in SetState()
88 received_pps_[nalu.pps_id] = nalu.sps_id; in SetState()
90 } else if (nalu.type == H264::NaluType::kSps) { in SetState()
91 if (nalu.sps_id < 0) { in SetState()
94 received_sps_.insert(nalu.sps_id); in SetState()
323 for (const NaluInfo& nalu : nalus) { in HaveSpsAndPps() local
325 if (nalu.sps_id == -1 && nalu.pps_id == -1) in HaveSpsAndPps()
327 switch (nalu.type) { in HaveSpsAndPps()
329 if (nalu.pps_id < 0) { in HaveSpsAndPps()
331 } else if (nalu.sps_id < 0) { in HaveSpsAndPps()
334 new_pps[nalu.pps_id] = nalu.sps_id; in HaveSpsAndPps()
338 if (nalu.sps_id < 0) { in HaveSpsAndPps()
341 new_sps.insert(nalu.sps_id); in HaveSpsAndPps()
346 auto pps_it = new_pps.find(nalu.pps_id); in HaveSpsAndPps()
350 auto pps_it2 = received_pps_.find(nalu.pps_id); in HaveSpsAndPps()