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

Function UpdateHashFromFrame

test/api/encoder_test.cpp:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <string>
5
6static void UpdateHashFromFrame (const SFrameBSInfo& info, SHA1Context* ctx) {
7 for (int i = 0; i < info.iLayerNum; ++i) {
8 const SLayerBSInfo& layerInfo = info.sLayerInfo[i];
9 int layerSize = 0;
10 for (int j = 0; j < layerInfo.iNalCount; ++j) {
11 layerSize += layerInfo.pNalLengthInByte[j];
12 }
13 SHA1Input (ctx, layerInfo.pBsBuf, layerSize);
14 }
15}
16
17class EncoderInitTest : public ::testing::Test, public BaseEncoderTest {
18 public:

Callers 1

onEncodeFrameMethod · 0.70

Calls 1

SHA1InputFunction · 0.85

Tested by

no test coverage detected