Lines Matching refs:task
244 Encode_Status VideoEncoderAVC::updateFrameInfo(EncodeTask* task) { in updateFrameInfo() argument
286 task->flag |= ENCODE_BUFFERFLAG_SYNCFRAME; in updateFrameInfo()
288 if (frametype != task->type) { in updateFrameInfo()
290 if ((uint32_t) task->type < 9) in updateFrameInfo()
291 … thinks it is %s Frame, the input is %s Frame", FrameTypeStr[frametype], FrameTypeStr[task->type]); in updateFrameInfo()
293 LOG_V("Wrong Frame type %d, type may not be initialized ?\n", task->type); in updateFrameInfo()
298 task->type = frametype; in updateFrameInfo()
733 Encode_Status VideoEncoderAVC::sendEncodeCommand(EncodeTask *task) { in sendEncodeCommand() argument
746 ret = renderSequenceParams(task); in sendEncodeCommand()
751 …updateFrameInfo(task); //recalculate frame info if mNewHeader is set true after PrepareFrameInfo i… in sendEncodeCommand()
761 …if (mComParams.rcParams.enableIntraFrameQPControl && (task->type == FTYPE_IDR || task->type == FTY… in sendEncodeCommand()
765 ret = VideoEncoderBase::renderDynamicBitrate(task); in sendEncodeCommand()
795 ret = renderPictureParams(task); in sendEncodeCommand()
799 ret = renderPackedSequenceParams(task); in sendEncodeCommand()
802 ret = renderPackedPictureParams(task); in sendEncodeCommand()
806 ret = renderSliceParams(task); in sendEncodeCommand()
1138 Encode_Status VideoEncoderAVC::renderPictureParams(EncodeTask *task) { in renderPictureParams() argument
1151 avcPicParams.ReferenceFrames[0].picture_id= task->ref_surface; in renderPictureParams()
1153 avcPicParams.CurrPic.picture_id= task->rec_surface; in renderPictureParams()
1187 avcPicParams.coded_buf = task->coded_buffer; in renderPictureParams()
1257 Encode_Status VideoEncoderAVC::renderSliceParams(EncodeTask *task) { in renderSliceParams() argument
1276 if (task->type == FTYPE_I || task->type == FTYPE_IDR) { in renderSliceParams()
1327 if(task->type == FTYPE_I||task->type == FTYPE_IDR) in renderSliceParams()
1329 else if(task->type == FTYPE_P) in renderSliceParams()
1331 else if(task->type == FTYPE_B) in renderSliceParams()
1363 currentSlice->RefPicList0[0].picture_id = task->ref_surface; in renderSliceParams()