Searched refs:cmem (Results 1 – 6 of 6) sorted by relevance
/third_party/lz4/lib/ |
D | lz4frame.c | 100 static void* LZ4F_calloc(size_t s, LZ4F_CustomMem cmem) in LZ4F_calloc() argument 103 if (cmem.customCalloc != NULL) { in LZ4F_calloc() 104 return cmem.customCalloc(cmem.opaqueState, s); in LZ4F_calloc() 107 if (cmem.customAlloc == NULL) { in LZ4F_calloc() 111 { void* const p = cmem.customAlloc(cmem.opaqueState, s); in LZ4F_calloc() 116 static void* LZ4F_malloc(size_t s, LZ4F_CustomMem cmem) in LZ4F_malloc() argument 119 if (cmem.customAlloc != NULL) { in LZ4F_malloc() 120 return cmem.customAlloc(cmem.opaqueState, s); in LZ4F_malloc() 126 static void LZ4F_free(void* p, LZ4F_CustomMem cmem) in LZ4F_free() argument 129 if (cmem.customFree != NULL) { in LZ4F_free() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstcudabasetransform.c | 312 GstCudaMemory *cmem = GST_CUDA_MEMORY_CAST (mem); in gst_cuda_base_transform_transform() local 314 if (cmem->context == filter->context || in gst_cuda_base_transform_transform() 315 gst_cuda_context_get_handle (cmem->context) == in gst_cuda_base_transform_transform() 317 (gst_cuda_context_can_access_peer (cmem->context, filter->context) && in gst_cuda_base_transform_transform() 319 cmem->context))) { in gst_cuda_base_transform_transform() 321 in_cuda_mem = cmem; in gst_cuda_base_transform_transform() 327 GstCudaMemory *cmem = GST_CUDA_MEMORY_CAST (mem); in gst_cuda_base_transform_transform() local 329 if (cmem->context == filter->context || in gst_cuda_base_transform_transform() 330 gst_cuda_context_get_handle (cmem->context) == in gst_cuda_base_transform_transform() 332 (gst_cuda_context_can_access_peer (cmem->context, filter->context) && in gst_cuda_base_transform_transform() [all …]
|
D | gstnvdecoder.c | 752 GstCudaMemory *cmem = GST_CUDA_MEMORY_CAST (mem); in gst_nv_decoder_copy_frame_to_cuda() local 754 if (cmem->context == decoder->context || in gst_nv_decoder_copy_frame_to_cuda() 755 gst_cuda_context_get_handle (cmem->context) == in gst_nv_decoder_copy_frame_to_cuda() 757 (gst_cuda_context_can_access_peer (cmem->context, decoder->context) && in gst_nv_decoder_copy_frame_to_cuda() 759 cmem->context))) { in gst_nv_decoder_copy_frame_to_cuda() 760 cuda_mem = cmem; in gst_nv_decoder_copy_frame_to_cuda()
|
D | gstnvdec.c | 1278 GstCudaMemory *cmem = GST_CUDA_MEMORY_CAST (mem); in gst_nvdec_copy_device_to_memory() local 1280 if (cmem->context == nvdec->cuda_ctx || in gst_nvdec_copy_device_to_memory() 1281 gst_cuda_context_get_handle (cmem->context) == in gst_nvdec_copy_device_to_memory() 1283 (gst_cuda_context_can_access_peer (cmem->context, nvdec->cuda_ctx) && in gst_nvdec_copy_device_to_memory() 1285 cmem->context))) { in gst_nvdec_copy_device_to_memory() 1286 cuda_mem = cmem; in gst_nvdec_copy_device_to_memory()
|
D | gstnvbaseenc.c | 2451 GstCudaMemory *cmem = GST_CUDA_MEMORY_CAST (mem); in gst_nv_base_enc_handle_frame() local 2453 if (cmem->context == nvenc->cuda_ctx || in gst_nv_base_enc_handle_frame() 2454 gst_cuda_context_get_handle (cmem->context) == in gst_nv_base_enc_handle_frame() 2456 (gst_cuda_context_can_access_peer (cmem->context, nvenc->cuda_ctx) && in gst_nv_base_enc_handle_frame() 2458 cmem->context))) { in gst_nv_base_enc_handle_frame()
|
/third_party/python/Modules/_ctypes/ |
D | _ctypes.c | 2984 CDataObject *cmem; in PyCData_FromBaseObj() local 2995 cmem = (CDataObject *)((PyTypeObject *)type)->tp_alloc((PyTypeObject *)type, 0); in PyCData_FromBaseObj() 2996 if (cmem == NULL) in PyCData_FromBaseObj() 2998 assert(CDataObject_Check(cmem)); in PyCData_FromBaseObj() 3000 cmem->b_length = dict->length; in PyCData_FromBaseObj() 3001 cmem->b_size = dict->size; in PyCData_FromBaseObj() 3004 cmem->b_ptr = adr; in PyCData_FromBaseObj() 3005 cmem->b_needsfree = 0; in PyCData_FromBaseObj() 3007 cmem->b_base = (CDataObject *)base; in PyCData_FromBaseObj() 3008 cmem->b_index = index; in PyCData_FromBaseObj() [all …]
|