void DecoderTest::HandlePeekResult(Decoder *const decoder,
CompressedVideoSource *video, const vpx_codec_err_t res_peek) { constbool is_vp8 = decoder->IsVP8();
if (is_vp8) { /* Vp8's implementation of PeekStream returns an error if the frame you *passitisnotakeyframe,soweonlyexpectVPX_CODEC_OKonthefirst
* frame, which must be a keyframe. */
if (video->frame_number() == 0) {
ASSERT_EQ(VPX_CODEC_OK, res_peek)
<< "Peek return failed: " << vpx_codec_err_to_string(res_peek);
}
} else { /* The Vp9 implementation of PeekStream returns an error only if the
* data passed to it isn't a valid Vp9 chunk. */
ASSERT_EQ(VPX_CODEC_OK, res_peek)
<< "Peek return failed: " << vpx_codec_err_to_string(res_peek);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.