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

Function UpdateHashFromFrame

test/api/decode_encode_test.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "BaseEncoderTest.h"
8#include <string>
9static void UpdateHashFromFrame (const SFrameBSInfo& info, SHA1Context* ctx) {
10 for (int i = 0; i < info.iLayerNum; ++i) {
11 const SLayerBSInfo& layerInfo = info.sLayerInfo[i];
12 int layerSize = 0;
13 for (int j = 0; j < layerInfo.iNalCount; ++j) {
14 layerSize += layerInfo.pNalLengthInByte[j];
15 }
16 SHA1Input (ctx, layerInfo.pBsBuf, layerSize);
17 }
18}
19
20static void WritePlaneBuffer (BufferedData* buf, const uint8_t* plane,
21 int width, int height, int stride) {

Callers 1

onEncodeFrameMethod · 0.70

Calls 1

SHA1InputFunction · 0.85

Tested by

no test coverage detected