#else #define VCOS_BLOCKPOOL_ASSERT vcos_demand #define VCOS_BLOCKPOOL_TRACE_LEVEL VCOS_LOG_ERROR #define VCOS_BLOCKPOOL_DEBUG_LOG(s, ...) #endif #define ASSERT_POOL(p) \ VCOS_BLOCKPOOL_ASSERT((p) && (p)->magic == VCOS_BLOCKPOOL_MAGIC); #define ASSERT_SUBPOOL(p) \ VCOS_BLOCKPOOL_ASSERT((p) && (p)->magic == VCOS_BLOCKPOOL_SUBPOOL_MAGIC && \ p->start >= p->mem); #if defined(VCOS_LOGGING_ENABLED) static VCOS_LOG_CAT_T vcos_blockpool_log = VCOS_LOG_INIT("vcos_blockpool", VCOS_BLOCKPOOL_TRACE_LEVEL); #endif static void vcos_generic_blockpool_subpool_init( VCOS_BLOCKPOOL_T *pool, VCOS_BLOCKPOOL_SUBPOOL_T *subpool, void *mem, size_t pool_size, VCOS_UNSIGNED num_blocks, int align, uint32_t flags) { VCOS_BLOCKPOOL_HEADER_T *block; VCOS_BLOCKPOOL_HEADER_T *end; vcos_unused(flags); vcos_log_trace( "%s: pool %p subpool %p mem %p pool_size %d " \ "num_blocks %d align %d flags %x",
///////////////////////////////////////////////////////////// #include "RaspiCamCV.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> //new #include <opencv/cv.h> #include <opencv/highgui.h> #include "time.h" #include "bcm_host.h" VCOS_LOG_CAT_T raspitex_log_category = VCOS_LOG_INIT("RaspiCV", VCOS_LOG_TRACE); #define VCOS_LOG_CATEGORY (&raspitex_log_category) #include "interface/vcos/vcos.h" #include "interface/mmal/mmal.h" #include "interface/mmal/mmal_logging.h" #include "interface/mmal/mmal_buffer.h" #include "interface/mmal/util/mmal_util.h" #include "interface/mmal/util/mmal_util_params.h" #include "interface/mmal/util/mmal_default_components.h" #include "interface/mmal/util/mmal_connection.h" #include "RaspiCamControl.h" #include <semaphore.h>
#include "interface/khronos/common/khrn_client_mangle.h" #include "interface/khronos/common/khrn_int_common.h" #include "interface/khronos/glxx/glxx_client.h" #include "interface/khronos/common/khrn_client_rpc.h" #ifdef RPC_DIRECT #include "interface/khronos/glxx/glxx_int_impl.h" #include "interface/khronos/glxx/gl20_int_impl.h" #endif #include "interface/khronos/include/GLES2/gl2.h" #include "interface/khronos/include/GLES2/gl2ext.h" VCOS_LOG_CAT_T gl_oes_egl_image_client_log = VCOS_LOG_INIT("gl_oes_egl_image", VCOS_LOG_WARN); static void set_error(GLXX_CLIENT_STATE_T *state, GLenum error) { if (state->error == GL_NO_ERROR) state->error = error; } static bool check_global_image_egl_image(GLuint global_image_id[2], GLeglImageOES image, CLIENT_THREAD_STATE_T *thread, bool render) /* else texture */ { CLIENT_PROCESS_STATE_T *process = CLIENT_GET_PROCESS_STATE(); uint64_t id; uint32_t format, width, height;