Lines Matching refs:reg_idx
1821 int reg_idx = nvenc_register_frame(avctx, frame); in nvenc_upload_frame() local
1822 if (reg_idx < 0) { in nvenc_upload_frame()
1824 return reg_idx; in nvenc_upload_frame()
1831 if (!ctx->registered_frames[reg_idx].mapped) { in nvenc_upload_frame()
1832 ctx->registered_frames[reg_idx].in_map.version = NV_ENC_MAP_INPUT_RESOURCE_VER; in nvenc_upload_frame()
1833 …ctx->registered_frames[reg_idx].in_map.registeredResource = ctx->registered_frames[reg_idx].regptr; in nvenc_upload_frame()
1834 …v_status = p_nvenc->nvEncMapInputResource(ctx->nvencoder, &ctx->registered_frames[reg_idx].in_map); in nvenc_upload_frame()
1841 ctx->registered_frames[reg_idx].mapped += 1; in nvenc_upload_frame()
1843 nvenc_frame->reg_idx = reg_idx; in nvenc_upload_frame()
1844 … nvenc_frame->input_surface = ctx->registered_frames[reg_idx].in_map.mappedResource; in nvenc_upload_frame()
1845 … nvenc_frame->format = ctx->registered_frames[reg_idx].in_map.mappedBufferFmt; in nvenc_upload_frame()
1995 ctx->registered_frames[tmpoutsurf->reg_idx].mapped -= 1; in process_output_surface()
1996 if (ctx->registered_frames[tmpoutsurf->reg_idx].mapped == 0) { in process_output_surface()
1997 …EncUnmapInputResource(ctx->nvencoder, ctx->registered_frames[tmpoutsurf->reg_idx].in_map.mappedRes… in process_output_surface()
2002 } else if (ctx->registered_frames[tmpoutsurf->reg_idx].mapped < 0) { in process_output_surface()