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

Method EncodeOneFrame

test/api/decode_api_test.cpp:568–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 }
567
568 void EncodeOneFrame() {
569 int frameSize = EncPic.iPicWidth * EncPic.iPicHeight * 3 / 2;
570 memset (buf_.data(), iRandValue, (frameSize >> 2));
571 memset (buf_.data() + (frameSize >> 2), rand() % 256, (frameSize - (frameSize >> 2)));
572 int rv = encoder_->EncodeFrame (&EncPic, &info);
573 ASSERT_TRUE (rv == cmResultSuccess || rv == cmUnknownReason);
574 }
575 protected:
576 unsigned char* ucBuf_;
577};

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
EncodeFrameMethod · 0.45

Tested by

no test coverage detected