Lines Matching refs:frame

1186             av_log(hwfc, AV_LOG_ERROR, "Failed to queue frame fence: %s\n",
1906 AVVkFrame *frame, enum PrepMode pmode)
1928 .pSignalSemaphores = frame->sem,
1935 sem_sig_val[i] = frame->sem_value[i] + 1;
1950 s_timeline_sem_info.pWaitSemaphoreValues = frame->sem_value;
1952 s_info.pWaitSemaphores = frame->sem;
1961 s_timeline_sem_info.pWaitSemaphoreValues = frame->sem_value;
1963 s_info.pWaitSemaphores = frame->sem;
1979 img_bar[i].oldLayout = frame->layout[i];
1983 img_bar[i].image = frame->img[i];
1988 frame->layout[i] = img_bar[i].newLayout;
1989 frame->access[i] = img_bar[i].dstAccessMask;
1997 return submit_exec_ctx(hwfc, ectx, &s_info, frame, 0);
2017 static int create_frame(AVHWFramesContext *hwfc, AVVkFrame **frame,
2114 *frame = f;
2413 static int vulkan_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame)
2415 frame->buf[0] = av_buffer_pool_get(hwfc->pool);
2416 if (!frame->buf[0])
2419 frame->data[0] = frame->buf[0]->data;
2420 frame->format = AV_PIX_FMT_VULKAN;
2421 frame->width = hwfc->width;
2422 frame->height = hwfc->height;
2443 AVVkFrame *frame;
2457 !(map->frame->flags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT)) {
2463 flush_ranges[i].memory = map->frame->mem[i];
2476 vk->UnmapMemory(hwctx->act_dev, map->frame->mem[i]);
2506 av_log(hwfc, AV_LOG_ERROR, "Unable to map frame, not host visible "
2562 map->frame = f;
2634 static int vulkan_map_from_drm_frame_desc(AVHWFramesContext *hwfc, AVVkFrame **frame,
2747 av_log(ctx, AV_LOG_ERROR, "Cannot map DRM frame to Vulkan: %s\n",
2890 *frame = f;
2975 const AVFrame *frame)
2996 dst_f = (AVVkFrame *)frame->data[0];
3690 AVVkFrame *frame = (AVVkFrame *)f->data[0];
3709 .pWaitSemaphoreValues = frame->sem_value,
3718 .pSignalSemaphores = frame->sem,
3719 .pWaitSemaphores = frame->sem,
3726 sem_signal_values[i] = frame->sem_value[i] + 1;
3741 if ((frame->layout[i] == new_layout) && (frame->access[i] & new_access))
3747 img_bar[bar_num].oldLayout = frame->layout[i];
3751 img_bar[bar_num].image = frame->img[i];
3756 frame->layout[i] = img_bar[bar_num].newLayout;
3757 frame->access[i] = img_bar[bar_num].dstAccessMask;
3785 vk->CmdCopyImageToBuffer(cmd_buf, frame->img[i], frame->layout[i],
3788 vk->CmdCopyBufferToImage(cmd_buf, vkbuf->buf, frame->img[i],
3789 frame->layout[i], 1, &buf_reg);
3808 return submit_exec_ctx(hwfc, ectx, &s_info, frame, !ref);
3810 return submit_exec_ctx(hwfc, ectx, &s_info, frame, 1);
3836 av_log(hwfc, AV_LOG_ERROR, "Unsupported software frame pixel format!\n");
3944 /* Map, copy buffer (which came FROM the VkImage) to the frame, unmap */