From 110215ad40cd0c24ed5ae70430e45304d5c60fe1 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Wed, 14 Nov 2018 12:49:40 +0900 Subject: 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 --- .../orig/include/wth-server-weston.h | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 demo3/horizontal/waltham-server/orig/include/wth-server-weston.h (limited to 'demo3/horizontal/waltham-server/orig/include/wth-server-weston.h') diff --git a/demo3/horizontal/waltham-server/orig/include/wth-server-weston.h b/demo3/horizontal/waltham-server/orig/include/wth-server-weston.h new file mode 100644 index 0000000..50e1b2c --- /dev/null +++ b/demo3/horizontal/waltham-server/orig/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 -- cgit 1.2.3-korg