ret = func_capture->capture_set_info(private_capture->capture_backend, info);
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
+ private_capture->info = *info;
+
_pthread_mutex_unlock(&private_display->lock);
return ret;
return; \
} \
}
+#define TDM_DBG_GOTO_IF_FAIL(cond, dst) { \
+ if (!(cond)) { \
+ TDM_SNPRINTF(reply, len, "[%s %d] '%s' failed\n", __func__, __LINE__, #cond); \
+ goto dst; \
+ } \
+}
#define C(b, m) (((b) >> (m)) & 0xFF)
#define B(c, s) ((((unsigned int)(c)) & 0xff) << (s))
#include "tdm_private.h"
#include "tdm_helper.h"
-typedef struct _tdm_pp_private_buffer {
- tbm_surface_h src;
- tbm_surface_h dst;
- struct list_head link;
- struct list_head commit_link;
-} tdm_pp_private_buffer;
-
#define PP_FUNC_ENTRY() \
tdm_func_pp *func_pp; \
tdm_private_display *private_display; \
ret = func_pp->pp_set_info(private_pp->pp_backend, info);
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
+ private_pp->info = *info;
+
_pthread_mutex_unlock(&private_display->lock);
return ret;
struct list_head pending_buffer_list;
struct list_head buffer_list;
+ tdm_info_pp info;
pid_t owner_tid;
};
struct list_head pending_buffer_list;
struct list_head buffer_list;
+ tdm_info_capture info;
pid_t owner_tid;
};
struct list_head link;
} tdm_buffer_info;
+typedef struct _tdm_pp_private_buffer {
+ tbm_surface_h src;
+ tbm_surface_h dst;
+ struct list_head link;
+ struct list_head commit_link;
+} tdm_pp_private_buffer;
+
int
tdm_display_check_module_abi(tdm_private_display *private_display, int abimaj, int abimin);