| 7 | #include "BaseEncoderTest.h" |
| 8 | #include <string> |
| 9 | static 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 | |
| 20 | static void WritePlaneBuffer (BufferedData* buf, const uint8_t* plane, |
| 21 | int width, int height, int stride) { |
no test coverage detected