Add heartbeat endpoint message schema
This commit is contained in:
+5
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user