Add heartbeat endpoint message schema

This commit is contained in:
gqc
2026-07-08 18:35:44 +08:00
parent ebc7aaa11c
commit 041c830bfb
5 changed files with 234 additions and 7 deletions
+5 -4
View File
@@ -86,10 +86,11 @@ void convert_a_frame(MppFrame frame)
printf("failed to allocate a frame");
return;
}
base = (RK_U8 *)mpp_buffer_get_ptr(buffer);
rga_client.convert(base, width, height, h_stride, v_stride, out);
// printf("convert a frame ok");
if (pthread_mutex_trylock(&frame_mutex) == 0)
base = (RK_U8 *)mpp_buffer_get_ptr(buffer);
rga_client.convert(base, width, height, h_stride, v_stride, out);
send_inference_heartbeat_if_needed();
// printf("convert a frame ok");
if (pthread_mutex_trylock(&frame_mutex) == 0)
{
// lock acquired, should create thread and use pose_body