diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-14 12:49:40 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-14 12:49:40 +0900 |
commit | 110215ad40cd0c24ed5ae70430e45304d5c60fe1 (patch) | |
tree | 3e5425dfbf5a4b7c18e3bc04edab2287a03e6415 /demo3/horizontal/waltham-server/include/wth-server-weston.h | |
parent | 6170bf6293128807341bbeda4eb9aa54a36276cc (diff) |
Add waltham server for horizontal mode.
Add waltham server for horizontal mode.
This application is used for receive video from waltham transmitter.
Change-Id: I794abf014eb014a4f0b42175093bf5c898e261f5
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'demo3/horizontal/waltham-server/include/wth-server-weston.h')
-rw-r--r-- | demo3/horizontal/waltham-server/include/wth-server-weston.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/demo3/horizontal/waltham-server/include/wth-server-weston.h b/demo3/horizontal/waltham-server/include/wth-server-weston.h new file mode 100644 index 0000000..50e1b2c --- /dev/null +++ b/demo3/horizontal/waltham-server/include/wth-server-weston.h @@ -0,0 +1,99 @@ +/** + * @licence app begin@ + * + * + * TBD + * + * + * @licence end@ + */ +/******************************************************************************* +** ** +** SRC-MODULE: ** +** ** +** TARGET : linux ** +** ** +** PROJECT : waltham-server ** +** ** +** AUTHOR : ** +** ** +** ** +** ** +** PURPOSE : Header file declare macros, extern functions, data types etc ** +** required to interface with weston compositor at server side ** +** ** +** REMARKS : ** +** ** +** PLATFORM DEPENDANT [yes/no]: yes ** +** ** +** TO BE CHANGED BY USER [yes/no]: no ** +** ** +*******************************************************************************/ + +#ifndef WALTHAM_SHM_H_ +#define WALTHAM_SHM_H_ + +#include "wth-server-waltham-comm.h" +/** +* wth_server_weston_shm_attach +* +* attach waltham surface data to weston surface +* +* @param names struct window *window +* uint32_t data_sz +* void * data +* int32_t width +* int32_t height +* int32_t stride +* uint32_t format +* @param value struct window *window - window info pointer +* uint32_t data_sz - buffer data size +* void * data - buffer pointer +* int32_t width - width +* int32_t height -height +* int32_t stride -stride information +* uint32_t format - buffer data format +* @return none +*/ +void wth_server_weston_shm_attach(struct window *window, uint32_t data_sz, void * data, + int32_t width, int32_t height, int32_t stride, uint32_t format); + +/** +* wth_server_weston_shm_damage +* +* Send weston surface damage +* +* @param names struct window *window +* +* @param value struct window *window - window info pointer +* +* @return none +*/ +void wth_server_weston_shm_damage(struct window *window); + +/** +* wth_server_weston_shm_commit +* +* Commit weston surface data +* +* @param names struct window *window +* +* @param value struct window *window - window info pointer +* +* @return none +*/ +void wth_server_weston_shm_commit(struct window *window); + +/** +* wth_server_weston_main +* +* This is the main function which will handle connection to the compositor at server side +* +* @param names void *data +* @param value struct window data +* @return 0 on success, -1 on error +*/ +int wth_server_weston_main(void *data); + + +#endif |