diff options
author | andrew-elder <aelder@audioscience.com> | 2019-10-11 07:51:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 07:51:59 -0400 |
commit | 4303926e523328ed49963a1dc5a700ac34816de0 (patch) | |
tree | 2611e8de86b1c0aeac0f273f41ca491e4bde9ee8 /lib/avtp_pipeline/include/openavb_map_pub.h | |
parent | c225346c3c61c29647f3ca0c0ad0347ea917abbb (diff) | |
parent | f8765fd2137a25251bebbd2fbfbd5cbab388d744 (diff) | |
download | Open-AVB-4303926e523328ed49963a1dc5a700ac34816de0.tar.gz |
Merge pull request #887 from Aquantia/aq_atl_hw_support
Aquantia NIC support
Diffstat (limited to 'lib/avtp_pipeline/include/openavb_map_pub.h')
-rwxr-xr-x | lib/avtp_pipeline/include/openavb_map_pub.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/avtp_pipeline/include/openavb_map_pub.h b/lib/avtp_pipeline/include/openavb_map_pub.h index 02a58957..4f360454 100755 --- a/lib/avtp_pipeline/include/openavb_map_pub.h +++ b/lib/avtp_pipeline/include/openavb_map_pub.h @@ -177,6 +177,17 @@ typedef void (*openavb_map_set_src_bitrate_cb_t)(media_q_t *pMediaQ, unsigned in */ typedef unsigned int (*openavb_map_get_max_interval_frames_cb_t)(media_q_t *pMediaQ, SRClassIdx_t sr_class); +#if ATL_LAUNCHTIME_ENABLED +/** This talker callback will be called for each AVB observation interval to calculate a launchtime of packet. + * + * \param pMediaQ A pointer to the media queue for this stream + * \param pData pointer to data + * \param lt launchtime of media q item + * \return One of enum \ref tx_cb_ret_t values. + */ +typedef bool (*openavb_map_lt_calc_cb_t)(media_q_t *pMediaQ, U64 *lt); +#endif + /** Mapping callbacks structure. */ typedef struct { @@ -208,6 +219,11 @@ typedef struct { openavb_map_set_src_bitrate_cb_t map_set_src_bitrate_cb; /// Max interval frames callback. openavb_map_get_max_interval_frames_cb_t map_get_max_interval_frames_cb; + +#if ATL_LAUNCHTIME_ENABLED + // Launchtime calculation + openavb_map_lt_calc_cb_t map_lt_calc_cb; +#endif } openavb_map_cb_t; /** Main initialization entry point into the mapping module. |