MCPcopy Create free account
hub / github.com/PhilLab/Android-MediaCodec-Examples / checkFrame

Method checkFrame

EncodeDecodeTest.java:866–933  ·  view source on GitHub ↗

Performs a simple check to see if the frame is more or less right. See #generateFrame for a description of the layout. The idea is to sample one pixel from the middle of the 8 regions, and verify that the correct one has the non-background color. We can't know exactly what the video en

(int frameIndex, MediaFormat format, ByteBuffer frameData)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 3

isRecognizedFormatMethod · 0.95
isSemiPlanarYUVMethod · 0.95
isColorCloseMethod · 0.95

Tested by

no test coverage detected