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

Class DecoderOutputTest

test/api/decoder_test.cpp:53–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53class DecoderOutputTest : public ::testing::WithParamInterface<FileParam>,
54 public DecoderInitTest, public BaseDecoderTest::Callback {
55 public:
56 virtual void SetUp() {
57 DecoderInitTest::SetUp();
58 if (HasFatalFailure()) {
59 return;
60 }
61 SHA1Reset (&ctx_);
62 }
63 virtual void onDecodeFrame (const Frame& frame) {
64 const Plane& y = frame.y;
65 const Plane& u = frame.u;
66 const Plane& v = frame.v;
67 UpdateHashFromPlane (&ctx_, y.data, y.width, y.height, y.stride);
68 UpdateHashFromPlane (&ctx_, u.data, u.width, u.height, u.stride);
69 UpdateHashFromPlane (&ctx_, v.data, v.width, v.height, v.stride);
70 }
71 protected:
72 SHA1Context ctx_;
73};
74
75TEST_P (DecoderOutputTest, CompareOutput) {
76 FileParam p = GetParam();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected