Home
last modified time | relevance | path

Searched refs:dec (Results 1 – 25 of 1296) sorted by relevance

12345678910>>...52

/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vcn_dec_jpeg.c38 static struct pb_buffer *radeon_jpeg_get_decode_param(struct radeon_decoder *dec, in radeon_jpeg_get_decode_param() argument
46 dec->jpg.bsd_size = align(dec->bs_size, 128); in radeon_jpeg_get_decode_param()
47 dec->jpg.dt_luma_top_offset = luma->surface.u.gfx9.surf_offset; in radeon_jpeg_get_decode_param()
49 dec->jpg.dt_chroma_top_offset = chroma->surface.u.gfx9.surf_offset; in radeon_jpeg_get_decode_param()
50 dec->jpg.dt_pitch = luma->surface.u.gfx9.surf_pitch * luma->surface.blk_w; in radeon_jpeg_get_decode_param()
51 dec->jpg.dt_uv_pitch = dec->jpg.dt_pitch / 2; in radeon_jpeg_get_decode_param()
57 static void set_reg_jpeg(struct radeon_decoder *dec, unsigned reg, unsigned cond, unsigned type, in set_reg_jpeg() argument
60 radeon_emit(dec->cs, RDECODE_PKTJ(reg, cond, type)); in set_reg_jpeg()
61 radeon_emit(dec->cs, val); in set_reg_jpeg()
65 static void send_cmd_bitstream(struct radeon_decoder *dec, struct pb_buffer *buf, uint32_t off, in send_cmd_bitstream() argument
[all …]
Dradeon_uvd.c97 static int flush(struct ruvd_decoder *dec, unsigned flags) in flush() argument
99 return dec->ws->cs_flush(dec->cs, flags, NULL); in flush()
103 static void set_reg(struct ruvd_decoder *dec, unsigned reg, uint32_t val) in set_reg() argument
105 radeon_emit(dec->cs, RUVD_PKT0(reg >> 2, 0)); in set_reg()
106 radeon_emit(dec->cs, val); in set_reg()
110 static void send_cmd(struct ruvd_decoder *dec, unsigned cmd, struct pb_buffer *buf, uint32_t off, in send_cmd() argument
115 reloc_idx = dec->ws->cs_add_buffer(dec->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED, domain, 0); in send_cmd()
116 if (!dec->use_legacy) { in send_cmd()
118 addr = dec->ws->buffer_get_virtual_address(buf); in send_cmd()
120 set_reg(dec, dec->reg.data0, addr); in send_cmd()
[all …]
Dradeon_vcn_dec.c68 static unsigned calc_dpb_size(struct radeon_decoder *dec);
69 static unsigned calc_ctx_size_h264_perf(struct radeon_decoder *dec);
70 static unsigned calc_ctx_size_h265_main(struct radeon_decoder *dec);
71 static unsigned calc_ctx_size_h265_main10(struct radeon_decoder *dec,
74 static rvcn_dec_message_avc_t get_h264_msg(struct radeon_decoder *dec, in get_h264_msg() argument
99 result.level = dec->base.level; in get_h264_msg()
114 switch (dec->base.chroma_format) { in get_h264_msg()
151 memcpy(dec->it, result.scaling_list_4x4, 6 * 16); in get_h264_msg()
152 memcpy((dec->it + 96), result.scaling_list_8x8, 2 * 64); in get_h264_msg()
175 static rvcn_dec_message_hevc_t get_h265_msg(struct radeon_decoder *dec, in get_h265_msg() argument
[all …]
/external/virglrenderer/src/venus/venus-protocol/
Dvn_protocol_renderer_pipeline.h20 vn_decode_VkSpecializationMapEntry_temp(struct vn_cs_decoder *dec, VkSpecializationMapEntry *val) in vn_decode_VkSpecializationMapEntry_temp() argument
22 vn_decode_uint32_t(dec, &val->constantID); in vn_decode_VkSpecializationMapEntry_temp()
23 vn_decode_uint32_t(dec, &val->offset); in vn_decode_VkSpecializationMapEntry_temp()
24 vn_decode_size_t(dec, &val->size); in vn_decode_VkSpecializationMapEntry_temp()
38 vn_decode_VkSpecializationInfo_temp(struct vn_cs_decoder *dec, VkSpecializationInfo *val) in vn_decode_VkSpecializationInfo_temp() argument
40 vn_decode_uint32_t(dec, &val->mapEntryCount); in vn_decode_VkSpecializationInfo_temp()
41 if (vn_peek_array_size(dec)) { in vn_decode_VkSpecializationInfo_temp()
42 const uint32_t iter_count = vn_decode_array_size(dec, val->mapEntryCount); in vn_decode_VkSpecializationInfo_temp()
43 val->pMapEntries = vn_cs_decoder_alloc_temp(dec, sizeof(*val->pMapEntries) * iter_count); in vn_decode_VkSpecializationInfo_temp()
46 … vn_decode_VkSpecializationMapEntry_temp(dec, &((VkSpecializationMapEntry *)val->pMapEntries)[i]); in vn_decode_VkSpecializationInfo_temp()
[all …]
Dvn_protocol_renderer_render_pass.h20 vn_decode_VkAttachmentDescription_temp(struct vn_cs_decoder *dec, VkAttachmentDescription *val) in vn_decode_VkAttachmentDescription_temp() argument
22 vn_decode_VkFlags(dec, &val->flags); in vn_decode_VkAttachmentDescription_temp()
23 vn_decode_VkFormat(dec, &val->format); in vn_decode_VkAttachmentDescription_temp()
24 vn_decode_VkSampleCountFlagBits(dec, &val->samples); in vn_decode_VkAttachmentDescription_temp()
25 vn_decode_VkAttachmentLoadOp(dec, &val->loadOp); in vn_decode_VkAttachmentDescription_temp()
26 vn_decode_VkAttachmentStoreOp(dec, &val->storeOp); in vn_decode_VkAttachmentDescription_temp()
27 vn_decode_VkAttachmentLoadOp(dec, &val->stencilLoadOp); in vn_decode_VkAttachmentDescription_temp()
28 vn_decode_VkAttachmentStoreOp(dec, &val->stencilStoreOp); in vn_decode_VkAttachmentDescription_temp()
29 vn_decode_VkImageLayout(dec, &val->initialLayout); in vn_decode_VkAttachmentDescription_temp()
30 vn_decode_VkImageLayout(dec, &val->finalLayout); in vn_decode_VkAttachmentDescription_temp()
[all …]
Dvn_protocol_renderer_queue.h20 vn_decode_VkDeviceGroupSubmitInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkDeviceGroupSubmitInfo_pnext_temp() argument
23 if (vn_decode_simple_pointer(dec)) in vn_decode_VkDeviceGroupSubmitInfo_pnext_temp()
24 vn_cs_decoder_set_fatal(dec); in vn_decode_VkDeviceGroupSubmitInfo_pnext_temp()
29 vn_decode_VkDeviceGroupSubmitInfo_self_temp(struct vn_cs_decoder *dec, VkDeviceGroupSubmitInfo *val) in vn_decode_VkDeviceGroupSubmitInfo_self_temp() argument
32 vn_decode_uint32_t(dec, &val->waitSemaphoreCount); in vn_decode_VkDeviceGroupSubmitInfo_self_temp()
33 if (vn_peek_array_size(dec)) { in vn_decode_VkDeviceGroupSubmitInfo_self_temp()
34 const size_t array_size = vn_decode_array_size(dec, val->waitSemaphoreCount); in vn_decode_VkDeviceGroupSubmitInfo_self_temp()
35 …val->pWaitSemaphoreDeviceIndices = vn_cs_decoder_alloc_temp(dec, sizeof(*val->pWaitSemaphoreDevice… in vn_decode_VkDeviceGroupSubmitInfo_self_temp()
37 vn_decode_uint32_t_array(dec, (uint32_t *)val->pWaitSemaphoreDeviceIndices, array_size); in vn_decode_VkDeviceGroupSubmitInfo_self_temp()
39 vn_decode_array_size(dec, val->waitSemaphoreCount); in vn_decode_VkDeviceGroupSubmitInfo_self_temp()
[all …]
Dvn_protocol_renderer_device.h143 vn_decode_VkPhysicalDeviceLimits_partial_temp(struct vn_cs_decoder *dec, VkPhysicalDeviceLimits *va… in vn_decode_VkPhysicalDeviceLimits_partial_temp() argument
266 vn_decode_VkPhysicalDeviceSparseProperties_partial_temp(struct vn_cs_decoder *dec, VkPhysicalDevice… in vn_decode_VkPhysicalDeviceSparseProperties_partial_temp() argument
294 vn_decode_VkPhysicalDeviceProperties_partial_temp(struct vn_cs_decoder *dec, VkPhysicalDeviceProper… in vn_decode_VkPhysicalDeviceProperties_partial_temp() argument
303 vn_decode_VkPhysicalDeviceLimits_partial_temp(dec, &val->limits); in vn_decode_VkPhysicalDeviceProperties_partial_temp()
304 vn_decode_VkPhysicalDeviceSparseProperties_partial_temp(dec, &val->sparseProperties); in vn_decode_VkPhysicalDeviceProperties_partial_temp()
319 vn_decode_VkQueueFamilyProperties_partial_temp(struct vn_cs_decoder *dec, VkQueueFamilyProperties *… in vn_decode_VkQueueFamilyProperties_partial_temp() argument
324 vn_decode_VkExtent3D_partial_temp(dec, &val->minImageTransferGranularity); in vn_decode_VkQueueFamilyProperties_partial_temp()
337 vn_decode_VkMemoryType_partial_temp(struct vn_cs_decoder *dec, VkMemoryType *val) in vn_decode_VkMemoryType_partial_temp() argument
353 vn_decode_VkMemoryHeap_partial_temp(struct vn_cs_decoder *dec, VkMemoryHeap *val) in vn_decode_VkMemoryHeap_partial_temp() argument
375 vn_decode_VkPhysicalDeviceMemoryProperties_partial_temp(struct vn_cs_decoder *dec, VkPhysicalDevice… in vn_decode_VkPhysicalDeviceMemoryProperties_partial_temp() argument
[all …]
Dvn_protocol_renderer_structs.h34 vn_decode_VkExtent3D_temp(struct vn_cs_decoder *dec, VkExtent3D *val) in vn_decode_VkExtent3D_temp() argument
36 vn_decode_uint32_t(dec, &val->width); in vn_decode_VkExtent3D_temp()
37 vn_decode_uint32_t(dec, &val->height); in vn_decode_VkExtent3D_temp()
38 vn_decode_uint32_t(dec, &val->depth); in vn_decode_VkExtent3D_temp()
42 vn_decode_VkExtent3D_partial_temp(struct vn_cs_decoder *dec, VkExtent3D *val) in vn_decode_VkExtent3D_partial_temp() argument
71 vn_decode_VkLayerProperties_partial_temp(struct vn_cs_decoder *dec, VkLayerProperties *val) in vn_decode_VkLayerProperties_partial_temp() argument
90 vn_decode_VkExtensionProperties_temp(struct vn_cs_decoder *dec, VkExtensionProperties *val) in vn_decode_VkExtensionProperties_temp() argument
93 const size_t array_size = vn_decode_array_size(dec, VK_MAX_EXTENSION_NAME_SIZE); in vn_decode_VkExtensionProperties_temp()
94 vn_decode_char_array(dec, val->extensionName, array_size); in vn_decode_VkExtensionProperties_temp()
96 vn_decode_uint32_t(dec, &val->specVersion); in vn_decode_VkExtensionProperties_temp()
[all …]
Dvn_protocol_renderer_image.h30 vn_decode_VkSparseImageMemoryRequirements_partial_temp(struct vn_cs_decoder *dec, VkSparseImageMemo… in vn_decode_VkSparseImageMemoryRequirements_partial_temp() argument
32 vn_decode_VkSparseImageFormatProperties_partial_temp(dec, &val->formatProperties); in vn_decode_VkSparseImageMemoryRequirements_partial_temp()
42 vn_decode_VkExternalMemoryImageCreateInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkExternalMemoryImageCreateInfo_pnext_temp() argument
45 if (vn_decode_simple_pointer(dec)) in vn_decode_VkExternalMemoryImageCreateInfo_pnext_temp()
46 vn_cs_decoder_set_fatal(dec); in vn_decode_VkExternalMemoryImageCreateInfo_pnext_temp()
51 vn_decode_VkExternalMemoryImageCreateInfo_self_temp(struct vn_cs_decoder *dec, VkExternalMemoryImag… in vn_decode_VkExternalMemoryImageCreateInfo_self_temp() argument
54 vn_decode_VkFlags(dec, &val->handleTypes); in vn_decode_VkExternalMemoryImageCreateInfo_self_temp()
58 vn_decode_VkExternalMemoryImageCreateInfo_temp(struct vn_cs_decoder *dec, VkExternalMemoryImageCrea… in vn_decode_VkExternalMemoryImageCreateInfo_temp() argument
61 vn_decode_VkStructureType(dec, &stype); in vn_decode_VkExternalMemoryImageCreateInfo_temp()
63 vn_cs_decoder_set_fatal(dec); in vn_decode_VkExternalMemoryImageCreateInfo_temp()
[all …]
Dvn_protocol_renderer_types.h22 vn_decode_uint64_t(struct vn_cs_decoder *dec, uint64_t *val) in vn_decode_uint64_t() argument
24 vn_decode(dec, 8, val, sizeof(*val)); in vn_decode_uint64_t()
36 vn_decode_uint64_t_array(struct vn_cs_decoder *dec, uint64_t *val, uint32_t count) in vn_decode_uint64_t_array() argument
40 vn_decode(dec, size, val, size); in vn_decode_uint64_t_array()
52 vn_decode_int32_t(struct vn_cs_decoder *dec, int32_t *val) in vn_decode_int32_t() argument
54 vn_decode(dec, 4, val, sizeof(*val)); in vn_decode_int32_t()
66 vn_decode_int32_t_array(struct vn_cs_decoder *dec, int32_t *val, uint32_t count) in vn_decode_int32_t_array() argument
70 vn_decode(dec, size, val, size); in vn_decode_int32_t_array()
82 vn_decode_VkStructureType(struct vn_cs_decoder *dec, VkStructureType *val) in vn_decode_VkStructureType() argument
84 vn_decode_int32_t(dec, (int32_t *)val); in vn_decode_VkStructureType()
[all …]
Dvn_protocol_renderer_descriptor_set.h26 vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_pnext_temp() argument
29 if (vn_decode_simple_pointer(dec)) in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_pnext_temp()
30 vn_cs_decoder_set_fatal(dec); in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_pnext_temp()
35 vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp(struct vn_cs_decoder *dec, V… in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp() argument
38 vn_decode_uint32_t(dec, &val->descriptorSetCount); in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp()
39 if (vn_peek_array_size(dec)) { in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp()
40 const size_t array_size = vn_decode_array_size(dec, val->descriptorSetCount); in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp()
41 …val->pDescriptorCounts = vn_cs_decoder_alloc_temp(dec, sizeof(*val->pDescriptorCounts) * array_siz… in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp()
43 vn_decode_uint32_t_array(dec, (uint32_t *)val->pDescriptorCounts, array_size); in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp()
45 vn_decode_array_size(dec, val->descriptorSetCount); in vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_self_temp()
[all …]
Dvn_protocol_renderer_framebuffer.h20 vn_decode_VkFramebufferAttachmentImageInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkFramebufferAttachmentImageInfo_pnext_temp() argument
23 if (vn_decode_simple_pointer(dec)) in vn_decode_VkFramebufferAttachmentImageInfo_pnext_temp()
24 vn_cs_decoder_set_fatal(dec); in vn_decode_VkFramebufferAttachmentImageInfo_pnext_temp()
29 vn_decode_VkFramebufferAttachmentImageInfo_self_temp(struct vn_cs_decoder *dec, VkFramebufferAttach… in vn_decode_VkFramebufferAttachmentImageInfo_self_temp() argument
32 vn_decode_VkFlags(dec, &val->flags); in vn_decode_VkFramebufferAttachmentImageInfo_self_temp()
33 vn_decode_VkFlags(dec, &val->usage); in vn_decode_VkFramebufferAttachmentImageInfo_self_temp()
34 vn_decode_uint32_t(dec, &val->width); in vn_decode_VkFramebufferAttachmentImageInfo_self_temp()
35 vn_decode_uint32_t(dec, &val->height); in vn_decode_VkFramebufferAttachmentImageInfo_self_temp()
36 vn_decode_uint32_t(dec, &val->layerCount); in vn_decode_VkFramebufferAttachmentImageInfo_self_temp()
37 vn_decode_uint32_t(dec, &val->viewFormatCount); in vn_decode_VkFramebufferAttachmentImageInfo_self_temp()
[all …]
Dvn_protocol_renderer_command_buffer.h20 vn_decode_VkCommandBufferAllocateInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkCommandBufferAllocateInfo_pnext_temp() argument
23 if (vn_decode_simple_pointer(dec)) in vn_decode_VkCommandBufferAllocateInfo_pnext_temp()
24 vn_cs_decoder_set_fatal(dec); in vn_decode_VkCommandBufferAllocateInfo_pnext_temp()
29 vn_decode_VkCommandBufferAllocateInfo_self_temp(struct vn_cs_decoder *dec, VkCommandBufferAllocateI… in vn_decode_VkCommandBufferAllocateInfo_self_temp() argument
32 vn_decode_VkCommandPool_lookup(dec, &val->commandPool); in vn_decode_VkCommandBufferAllocateInfo_self_temp()
33 vn_decode_VkCommandBufferLevel(dec, &val->level); in vn_decode_VkCommandBufferAllocateInfo_self_temp()
34 vn_decode_uint32_t(dec, &val->commandBufferCount); in vn_decode_VkCommandBufferAllocateInfo_self_temp()
38 vn_decode_VkCommandBufferAllocateInfo_temp(struct vn_cs_decoder *dec, VkCommandBufferAllocateInfo *… in vn_decode_VkCommandBufferAllocateInfo_temp() argument
41 vn_decode_VkStructureType(dec, &stype); in vn_decode_VkCommandBufferAllocateInfo_temp()
43 vn_cs_decoder_set_fatal(dec); in vn_decode_VkCommandBufferAllocateInfo_temp()
[all …]
Dvn_protocol_renderer_device_memory.h27 vn_decode_VkExportMemoryAllocateInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkExportMemoryAllocateInfo_pnext_temp() argument
30 if (vn_decode_simple_pointer(dec)) in vn_decode_VkExportMemoryAllocateInfo_pnext_temp()
31 vn_cs_decoder_set_fatal(dec); in vn_decode_VkExportMemoryAllocateInfo_pnext_temp()
36 vn_decode_VkExportMemoryAllocateInfo_self_temp(struct vn_cs_decoder *dec, VkExportMemoryAllocateInf… in vn_decode_VkExportMemoryAllocateInfo_self_temp() argument
39 vn_decode_VkFlags(dec, &val->handleTypes); in vn_decode_VkExportMemoryAllocateInfo_self_temp()
43 vn_decode_VkExportMemoryAllocateInfo_temp(struct vn_cs_decoder *dec, VkExportMemoryAllocateInfo *va… in vn_decode_VkExportMemoryAllocateInfo_temp() argument
46 vn_decode_VkStructureType(dec, &stype); in vn_decode_VkExportMemoryAllocateInfo_temp()
48 vn_cs_decoder_set_fatal(dec); in vn_decode_VkExportMemoryAllocateInfo_temp()
51 val->pNext = vn_decode_VkExportMemoryAllocateInfo_pnext_temp(dec); in vn_decode_VkExportMemoryAllocateInfo_temp()
52 vn_decode_VkExportMemoryAllocateInfo_self_temp(dec, val); in vn_decode_VkExportMemoryAllocateInfo_temp()
[all …]
Dvn_protocol_renderer_buffer.h20 vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp() argument
23 if (vn_decode_simple_pointer(dec)) in vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp()
24 vn_cs_decoder_set_fatal(dec); in vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp()
29 vn_decode_VkExternalMemoryBufferCreateInfo_self_temp(struct vn_cs_decoder *dec, VkExternalMemoryBuf… in vn_decode_VkExternalMemoryBufferCreateInfo_self_temp() argument
32 vn_decode_VkFlags(dec, &val->handleTypes); in vn_decode_VkExternalMemoryBufferCreateInfo_self_temp()
36 vn_decode_VkExternalMemoryBufferCreateInfo_temp(struct vn_cs_decoder *dec, VkExternalMemoryBufferCr… in vn_decode_VkExternalMemoryBufferCreateInfo_temp() argument
39 vn_decode_VkStructureType(dec, &stype); in vn_decode_VkExternalMemoryBufferCreateInfo_temp()
41 vn_cs_decoder_set_fatal(dec); in vn_decode_VkExternalMemoryBufferCreateInfo_temp()
44 val->pNext = vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp(dec); in vn_decode_VkExternalMemoryBufferCreateInfo_temp()
45 vn_decode_VkExternalMemoryBufferCreateInfo_self_temp(dec, val); in vn_decode_VkExternalMemoryBufferCreateInfo_temp()
[all …]
Dvn_protocol_renderer_sampler.h20 vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp(struct vn_cs_decoder *dec) in vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp() argument
23 if (vn_decode_simple_pointer(dec)) in vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp()
24 vn_cs_decoder_set_fatal(dec); in vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp()
29 vn_decode_VkSamplerReductionModeCreateInfo_self_temp(struct vn_cs_decoder *dec, VkSamplerReductionM… in vn_decode_VkSamplerReductionModeCreateInfo_self_temp() argument
32 vn_decode_VkSamplerReductionMode(dec, &val->reductionMode); in vn_decode_VkSamplerReductionModeCreateInfo_self_temp()
36 vn_decode_VkSamplerReductionModeCreateInfo_temp(struct vn_cs_decoder *dec, VkSamplerReductionModeCr… in vn_decode_VkSamplerReductionModeCreateInfo_temp() argument
39 vn_decode_VkStructureType(dec, &stype); in vn_decode_VkSamplerReductionModeCreateInfo_temp()
41 vn_cs_decoder_set_fatal(dec); in vn_decode_VkSamplerReductionModeCreateInfo_temp()
44 val->pNext = vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp(dec); in vn_decode_VkSamplerReductionModeCreateInfo_temp()
45 vn_decode_VkSamplerReductionModeCreateInfo_self_temp(dec, val); in vn_decode_VkSamplerReductionModeCreateInfo_temp()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_decoder.c120 get_video_buffer_private(struct vl_mpeg12_decoder *dec, struct pipe_video_buffer *buf) in get_video_buffer_private() argument
122 struct pipe_context *pipe = dec->context; in get_video_buffer_private()
128 priv = vl_video_buffer_get_associated_data(buf, &dec->base); in get_video_buffer_private()
134 list_add(&priv->list, &dec->buffer_privates); in get_video_buffer_private()
147 vl_video_buffer_set_associated_data(buf, &dec->base, priv, destroy_video_buffer_private); in get_video_buffer_private()
153 free_video_buffer_privates(struct vl_mpeg12_decoder *dec) in free_video_buffer_privates() argument
157 LIST_FOR_EACH_ENTRY_SAFE(priv, next, &dec->buffer_privates, list) { in free_video_buffer_privates()
160 vl_video_buffer_set_associated_data(buf, &dec->base, NULL, NULL); in free_video_buffer_privates()
165 init_zscan_buffer(struct vl_mpeg12_decoder *dec, struct vl_mpeg12_buffer *buffer) in init_zscan_buffer() argument
173 assert(dec && buffer); in init_zscan_buffer()
[all …]
/external/webp/src/dec/
Dframe_dec.c71 static void ReconstructRow(const VP8Decoder* const dec, in ReconstructRow() argument
77 uint8_t* const y_dst = dec->yuv_b_ + Y_OFF; in ReconstructRow()
78 uint8_t* const u_dst = dec->yuv_b_ + U_OFF; in ReconstructRow()
79 uint8_t* const v_dst = dec->yuv_b_ + V_OFF; in ReconstructRow()
102 for (mb_x = 0; mb_x < dec->mb_w_; ++mb_x) { in ReconstructRow()
118 VP8TopSamples* const top_yuv = dec->yuv_t_ + mb_x; in ReconstructRow()
134 if (mb_x >= dec->mb_w_ - 1) { // on rightmost border in ReconstructRow()
169 if (mb_y < dec->mb_h_ - 1) { in ReconstructRow()
177 const int y_offset = cache_id * 16 * dec->cache_y_stride_; in ReconstructRow()
178 const int uv_offset = cache_id * 8 * dec->cache_uv_stride_; in ReconstructRow()
[all …]
Dalpha_dec.c28 ALPHDecoder* const dec = (ALPHDecoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in ALPHNew() local
29 return dec; in ALPHNew()
33 static void ALPHDelete(ALPHDecoder* const dec) { in ALPHDelete() argument
34 if (dec != NULL) { in ALPHDelete()
35 VP8LDelete(dec->vp8l_dec_); in ALPHDelete()
36 dec->vp8l_dec_ = NULL; in ALPHDelete()
37 WebPSafeFree(dec); in ALPHDelete()
48 static int ALPHInit(ALPHDecoder* const dec, const uint8_t* data, in ALPHInit() argument
55 VP8Io* const io = &dec->io_; in ALPHInit()
60 dec->output_ = output; in ALPHInit()
[all …]
Dvp8_dec.c42 static void SetOk(VP8Decoder* const dec) { in SetOk() argument
43 dec->status_ = VP8_STATUS_OK; in SetOk()
44 dec->error_msg_ = "OK"; in SetOk()
58 VP8Decoder* const dec = (VP8Decoder*)WebPSafeCalloc(1ULL, sizeof(*dec)); in VP8New() local
59 if (dec != NULL) { in VP8New()
60 SetOk(dec); in VP8New()
61 WebPGetWorkerInterface()->Init(&dec->worker_); in VP8New()
62 dec->ready_ = 0; in VP8New()
63 dec->num_parts_minus_one_ = 0; in VP8New()
66 return dec; in VP8New()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_video.c33 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nvc0_decoder_begin_frame() local
34 uint32_t comm_seq = ++dec->fence_seq; in nvc0_decoder_begin_frame()
37 assert(dec); in nvc0_decoder_begin_frame()
41 ret = nvc0_decoder_bsp_begin(dec, comm_seq); in nvc0_decoder_begin_frame()
54 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nvc0_decoder_decode_bitstream() local
55 uint32_t comm_seq = dec->fence_seq; in nvc0_decoder_decode_bitstream()
60 ret = nvc0_decoder_bsp_next(dec, comm_seq, num_buffers, data, num_bytes); in nvc0_decoder_decode_bitstream()
70 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nvc0_decoder_end_frame() local
72 uint32_t comm_seq = dec->fence_seq; in nvc0_decoder_end_frame()
81 ret = nvc0_decoder_bsp_end(dec, desc, target, comm_seq, &vp_caps, &is_ref, refs); in nvc0_decoder_end_frame()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv98_video.c38 struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder; in nv98_decoder_decode_bitstream() local
40 uint32_t comm_seq = ++dec->fence_seq; in nv98_decoder_decode_bitstream()
51 ret = nv98_decoder_bsp(dec, desc, target, comm_seq, in nv98_decoder_decode_bitstream()
58 nv98_decoder_vp(dec, desc, target, comm_seq, vp_caps, is_ref, refs); in nv98_decoder_decode_bitstream()
59 nv98_decoder_ppp(dec, desc, target, comm_seq); in nv98_decoder_decode_bitstream()
89 struct nouveau_vp3_decoder *dec; in nv98_create_decoder() local
106 dec = CALLOC_STRUCT(nouveau_vp3_decoder); in nv98_create_decoder()
107 if (!dec) in nv98_create_decoder()
109 dec->client = screen->client; in nv98_create_decoder()
110 dec->base = *templ; in nv98_create_decoder()
[all …]
Dnv84_video.c67 nv84_load_firmwares(struct nouveau_device *dev, struct nv84_decoder *dec, in nv84_load_firmwares() argument
79 dec->vp_fw2_offset = align(size1, 0x100); in nv84_load_firmwares()
81 ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 0, dec->vp_fw2_offset + size2, NULL, &fw); in nv84_load_firmwares()
84 ret = nouveau_bo_map(fw, NOUVEAU_BO_WR, dec->client); in nv84_load_firmwares()
90 ret = nv84_copy_firmware(fw2, fw->map + dec->vp_fw2_offset, size2); in nv84_load_firmwares()
101 nv84_load_bsp_firmware(struct nouveau_device *dev, struct nv84_decoder *dec) in nv84_load_bsp_firmware() argument
104 dev, dec, "/lib/firmware/nouveau/nv84_bsp-h264", NULL); in nv84_load_bsp_firmware()
108 nv84_load_vp_firmware(struct nouveau_device *dev, struct nv84_decoder *dec) in nv84_load_vp_firmware() argument
111 dev, dec, in nv84_load_vp_firmware()
117 nv84_load_vp_firmware_mpeg(struct nouveau_device *dev, struct nv84_decoder *dec) in nv84_load_vp_firmware_mpeg() argument
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_uvd.c103 static int flush(struct ruvd_decoder *dec, unsigned flags) in flush() argument
105 return dec->ws->cs_flush(dec->cs, flags, NULL); in flush()
109 static void set_reg(struct ruvd_decoder *dec, unsigned reg, uint32_t val) in set_reg() argument
111 radeon_emit(dec->cs, RUVD_PKT0(reg >> 2, 0)); in set_reg()
112 radeon_emit(dec->cs, val); in set_reg()
116 static void send_cmd(struct ruvd_decoder *dec, unsigned cmd, in send_cmd() argument
122 reloc_idx = dec->ws->cs_add_buffer(dec->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED, in send_cmd()
124 if (!dec->use_legacy) { in send_cmd()
126 addr = dec->ws->buffer_get_virtual_address(buf); in send_cmd()
128 set_reg(dec, dec->reg.data0, addr); in send_cmd()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c36 nouveau_vpe_init(struct nouveau_decoder *dec) { in nouveau_vpe_init() argument
38 if (dec->cmds) in nouveau_vpe_init()
40 ret = nouveau_bo_map(dec->cmd_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init()
45 ret = nouveau_bo_map(dec->data_bo, NOUVEAU_BO_RDWR, dec->client); in nouveau_vpe_init()
50 dec->cmds = dec->cmd_bo->map; in nouveau_vpe_init()
51 dec->data = dec->data_bo->map; in nouveau_vpe_init()
56 nouveau_vpe_synch(struct nouveau_decoder *dec) { in nouveau_vpe_synch() argument
57 struct nouveau_pushbuf *push = dec->push; in nouveau_vpe_synch()
59 if (dec->fence_map) { in nouveau_vpe_synch()
61 PUSH_DATA (push, ++dec->fence_seq); in nouveau_vpe_synch()
[all …]

12345678910>>...52