| 1169 | } |
| 1170 | |
| 1171 | void InitSliceRefInfoWithBase (SSlice* pSlice, SSlice* pBaseSlice, const uint8_t kuiRefCount) { |
| 1172 | if (NULL == pSlice || NULL == pBaseSlice) { |
| 1173 | return; |
| 1174 | } |
| 1175 | |
| 1176 | SSliceHeaderExt* pBaseSHExt = &pBaseSlice->sSliceHeaderExt; |
| 1177 | SSliceHeaderExt* pSHExt = &pSlice->sSliceHeaderExt; |
| 1178 | |
| 1179 | pSHExt->sSliceHeader.uiRefCount = kuiRefCount; |
| 1180 | memcpy (&pSHExt->sSliceHeader.sRefMarking, &pBaseSHExt->sSliceHeader.sRefMarking, sizeof (SRefPicMarking)); |
| 1181 | memcpy (&pSHExt->sSliceHeader.sRefReordering, &pBaseSHExt->sSliceHeader.sRefReordering, |
| 1182 | sizeof (SRefPicListReorderSyntax)); |
| 1183 | |
| 1184 | } |
| 1185 | |
| 1186 | static inline int32_t InitSliceRC (SSlice* pSlice, const int32_t kiGlobalQp) { |
| 1187 |
no outgoing calls
no test coverage detected