| 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 | }; |
nothing calls this directly
no test coverage detected