Lines Matching refs:frame
96 MediaSnapshotState::FrameInfo frame; in extractFrameInfo() local
97 bool success = mFfmpegVideoHelper->receiveFrame(&frame); in extractFrameInfo()
99 mColorAspects = frame.color; in extractFrameInfo()
105 void MediaVideoToolBoxVideoHelper::decode(const uint8_t* frame, in decode() argument
108 VTB_DPRINT("%s(frame=%p, sz=%zu)", __func__, frame, szBytes); in decode()
111 const bool parseOk = parseInputFrames(frame, szBytes); in decode()
115 VTB_DPRINT("Failed to parse frame=%p, sz=%zu, give up.", frame, szBytes); in decode()
147 mFfmpegVideoHelper->decode(frame, szBytes, inputPts); in decode()
185 mFfmpegVideoHelper->decode(frame, szBytes, inputPts); in decode()
252 bool MediaVideoToolBoxVideoHelper::parseInputFrames(const uint8_t* frame, in parseInputFrames() argument
257 const uint8_t* remainingFrame = parseOneFrame(frame, sz); in parseInputFrames()
260 int consumed = (remainingFrame - frame); in parseInputFrames()
262 frame = remainingFrame; in parseInputFrames()
268 const uint8_t* MediaVideoToolBoxVideoHelper::parseOneFrame(const uint8_t* frame, in parseOneFrame() argument
270 if (frame == nullptr || szBytes <= 0) { in parseOneFrame()
275 H264NaluParser::getNextStartCodeHeader(frame, szBytes); in parseOneFrame()
282 size_t remaining = szBytes - (currentNalu - frame); in parseOneFrame()
293 if (H264NaluType::SEI == H264NaluParser::getFrameNaluType(frame, szBytes, nullptr) in parseOneFrame()
294 || H264NaluType::SPS == H264NaluParser::getFrameNaluType(frame, szBytes, nullptr) in parseOneFrame()
295 || H264NaluType::PPS == H264NaluParser::getFrameNaluType(frame, szBytes, nullptr) in parseOneFrame()