|
14 | 14 | #include <mtl/st30_api.h> |
15 | 15 | #include <mtl/st30_pipeline_api.h> |
16 | 16 | #include <mtl/st40_api.h> |
| 17 | +#include <mtl/st40_pipeline_api.h> |
17 | 18 | #include <mtl/st41_api.h> |
18 | 19 | #include <mtl/st_pipeline_api.h> |
19 | 20 | #include <pcap.h> |
@@ -209,11 +210,18 @@ struct st_app_tx_audio_session { |
209 | 210 | }; |
210 | 211 |
|
211 | 212 | struct st_app_tx_anc_session { |
| 213 | + struct st_app_context* ctx; |
| 214 | + |
212 | 215 | int idx; |
213 | 216 | st40_tx_handle handle; |
214 | 217 |
|
215 | 218 | uint16_t framebuff_cnt; |
216 | 219 |
|
| 220 | + uint64_t frame_num; |
| 221 | + double frame_time; |
| 222 | + uint64_t local_tai_base_time; |
| 223 | + struct st_user_time* user_time; |
| 224 | + |
217 | 225 | uint16_t framebuff_producer_idx; |
218 | 226 | uint16_t framebuff_consumer_idx; |
219 | 227 | struct st_tx_frame* framebuffs; |
@@ -480,6 +488,36 @@ struct st_app_tx_st22p_session { |
480 | 488 | bool st22p_app_thread_stop; |
481 | 489 | }; |
482 | 490 |
|
| 491 | +struct st_app_tx_st40p_session { |
| 492 | + struct st_app_context* ctx; |
| 493 | + |
| 494 | + int idx; |
| 495 | + st40p_tx_handle handle; |
| 496 | + mtl_handle st; |
| 497 | + int framebuff_cnt; |
| 498 | + |
| 499 | + st_json_st40p_session_t* st40p; |
| 500 | + |
| 501 | + char st40p_source_url[ST_APP_URL_MAX_LEN]; |
| 502 | + uint8_t* st40p_source_begin; |
| 503 | + uint8_t* st40p_source_end; |
| 504 | + uint8_t* st40p_frame_cursor; |
| 505 | + |
| 506 | + double expect_fps; |
| 507 | + double frame_time; |
| 508 | + uint64_t frame_num; |
| 509 | + uint64_t local_tai_base_time; |
| 510 | + struct st_user_time* user_time; |
| 511 | + |
| 512 | + size_t udw_payload_limit; |
| 513 | + |
| 514 | + pthread_t st40p_app_thread; |
| 515 | + bool st40p_app_thread_stop; |
| 516 | + |
| 517 | + int fb_send; |
| 518 | + int fb_send_done; |
| 519 | +}; |
| 520 | + |
483 | 521 | struct st_app_rx_st22p_session { |
484 | 522 | int idx; |
485 | 523 | mtl_handle st; |
@@ -704,6 +742,10 @@ struct st_app_context { |
704 | 742 | struct st_app_tx_st22p_session* tx_st22p_sessions; |
705 | 743 | int tx_st22p_session_cnt; |
706 | 744 |
|
| 745 | + char tx_st40p_url[ST_APP_URL_MAX_LEN]; |
| 746 | + struct st_app_tx_st40p_session* tx_st40p_sessions; |
| 747 | + int tx_st40p_session_cnt; |
| 748 | + |
707 | 749 | char tx_st20p_url[ST_APP_URL_MAX_LEN]; /* send st20p content url*/ |
708 | 750 | struct st_app_tx_st20p_session* tx_st20p_sessions; |
709 | 751 | int tx_st20p_session_cnt; |
|
0 commit comments