Home | History | Annotate | Download | only in source

Lines Matching defs:pps

65 static u32 CheckPps(picParamSet_t *pps, seqParamSet_t *sps);
192 Store picture parameter set into the storage. If active PPS is
226 if (pStorage->pps[id] == NULL)
228 ALLOCATE(pStorage->pps[id], 1, picParamSet_t);
229 if (pStorage->pps[id] == NULL)
232 /* picture parameter set with id equal to id of active pps */
243 FREE(pStorage->pps[id]->runLength);
244 FREE(pStorage->pps[id]->topLeft);
245 FREE(pStorage->pps[id]->bottomRight);
246 FREE(pStorage->pps[id]->sliceGroupId);
252 FREE(pStorage->pps[id]->runLength);
253 FREE(pStorage->pps[id]->topLeft);
254 FREE(pStorage->pps[id]->bottomRight);
255 FREE(pStorage->pps[id]->sliceGroupId);
258 *pStorage->pps[id] = *pPicParamSet;
269 Activate certain SPS/PPS combination. This function shall be
281 ppsId identifies the PPS to be activated, SPS id obtained
282 from the PPS
309 /* check that pps and corresponding sps exist */
310 if ( (pStorage->pps[ppsId] == NULL) ||
311 (pStorage->sps[pStorage->pps[ppsId]->seqParameterSetId] == NULL) )
316 /* check that pps parameters do not violate picture size constraints */
317 tmp = CheckPps(pStorage->pps[ppsId],
318 pStorage->sps[pStorage->pps[ppsId]->seqParameterSetId]);
326 pStorage->activePps = pStorage->pps[ppsId];
384 if (pStorage->pps[ppsId]->seqParameterSetId != pStorage->activeSpsId)
390 pStorage->activePps = pStorage->pps[ppsId];
412 pStorage->activePps = pStorage->pps[ppsId];
598 -NAL unit types 6-11, 13-18 (e.g. SPS, PPS)
637 picParamSet_t *pps;
645 ASSERT(storage->pps);
674 /* store sps and pps in separate pointers just to make names shorter */
675 pps = storage->pps[ppsId];
676 if ( pps == NULL || storage->sps[pps->seqParameterSetId] == NULL ||
678 pps->seqParameterSetId != storage->activeSpsId &&
681 sps = storage->sps[pps->seqParameterSetId];
730 if (pps->picOrderPresentFlag)
749 pps->picOrderPresentFlag, deltaPicOrderCnt);
759 if (pps->picOrderPresentFlag)
783 pps pointer to picture paramter set
794 u32 CheckPps(picParamSet_t *pps, seqParamSet_t *sps)
803 if (pps->numSliceGroups > 1)
805 if (pps->sliceGroupMapType == 0)
807 ASSERT(pps->runLength);
808 for (i = 0; i < pps->numSliceGroups; i++)
810 if (pps->runLength[i] > picSize)
814 else if (pps->sliceGroupMapType == 2)
816 ASSERT(pps->topLeft);
817 ASSERT(pps->bottomRight);
818 for (i = 0; i < pps->numSliceGroups-1; i++)
820 if (pps->topLeft[i] > pps->bottomRight[i] ||
821 pps->bottomRight[i] >= picSize)
824 if ( (pps->topLeft[i] % sps->picWidthInMbs) >
825 (pps->bottomRight[i] % sps->picWidthInMbs) )
829 else if (pps->sliceGroupMapType > 2 && pps->sliceGroupMapType < 6)
831 if (pps->sliceGroupChangeRate > picSize)
834 else if (pps->sliceGroupMapType == 6 &&
835 pps->picSizeInMapUnits < picSize)
847 Check if any valid SPS/PPS combination exists in the storage.
848 Function tries each PPS in the buffer and checks if corresponding
849 SPS exists and calls CheckPps to determine if the PPS conforms
875 if ( pStorage->pps[i] &&
876 pStorage->sps[pStorage->pps[i]->seqParameterSetId] &&
877 CheckPps(pStorage->pps[i],
878 pStorage->sps[pStorage->pps[i]->seqParameterSetId]) ==