MCPcopy Create free account
hub / github.com/cisco/openh264 / InitSliceRefInfoWithBase

Function InitSliceRefInfoWithBase

codec/encoder/core/src/svc_encode_slice.cpp:1171–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1169}
1170
1171void 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
1186static inline int32_t InitSliceRC (SSlice* pSlice, const int32_t kiGlobalQp) {
1187

Callers 1

ReallocateSliceListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected