/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | fb.c | 106 struct tegra_bo **planes, in tegra_fb_alloc() 120 fb->obj[i] = &planes[i]->gem; in tegra_fb_alloc() 138 struct tegra_bo *planes[4]; in tegra_fb_create() local 166 planes[i] = to_tegra_bo(gem); in tegra_fb_create() 169 fb = tegra_fb_alloc(drm, cmd, planes, i); in tegra_fb_create() 179 drm_gem_object_put(&planes[i]->gem); in tegra_fb_create() 104 tegra_fb_alloc(struct drm_device *drm, const struct drm_mode_fb_cmd2 *mode_cmd, struct tegra_bo **planes, unsigned int num_planes) tegra_fb_alloc() argument
|
H A D | plane.c | 259 * Sub-sampling is relevant for chroma planes only and vertical in tegra_plane_calculate_memory_bandwidth() 321 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add() 489 bool tegra_plane_format_is_yuv(unsigned int format, unsigned int *planes, unsigned int *bpc) in tegra_plane_format_is_yuv() argument 494 if (planes) in tegra_plane_format_is_yuv() 495 *planes = 1; in tegra_plane_format_is_yuv() 511 if (planes) in tegra_plane_format_is_yuv() 512 *planes = 3; in tegra_plane_format_is_yuv() 525 if (planes) in tegra_plane_format_is_yuv() 526 *planes = 2; in tegra_plane_format_is_yuv() 534 if (planes) in tegra_plane_format_is_yuv() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun4i_crtc.c | 191 struct drm_plane **planes; in sun4i_crtc_init() local 202 planes = sunxi_engine_layers_init(drm, engine); in sun4i_crtc_init() 203 if (IS_ERR(planes)) { in sun4i_crtc_init() 204 dev_err(drm->dev, "Couldn't create the planes\n"); in sun4i_crtc_init() 208 /* find primary and cursor planes for drm_crtc_init_with_planes */ in sun4i_crtc_init() 209 for (i = 0; planes[i]; i++) { in sun4i_crtc_init() 210 struct drm_plane *plane = planes[i]; in sun4i_crtc_init() 240 /* Set possible_crtcs to this crtc for overlay planes */ in sun4i_crtc_init() 241 for (i = 0; planes[i]; i++) { in sun4i_crtc_init() 243 struct drm_plane *plane = planes[ in sun4i_crtc_init() [all...] |
H A D | sun4i_layer.c | 234 struct drm_plane **planes; in sun4i_layers_init() local 239 planes = devm_kcalloc(drm->dev, SUN4I_BACKEND_NUM_LAYERS + 1, in sun4i_layers_init() 240 sizeof(*planes), GFP_KERNEL); in sun4i_layers_init() 241 if (!planes) in sun4i_layers_init() 256 planes[i] = &layer->plane; in sun4i_layers_init() 259 return planes; in sun4i_layers_init()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun4i_crtc.c | 197 struct drm_plane **planes; in sun4i_crtc_init() local 208 planes = sunxi_engine_layers_init(drm, engine); in sun4i_crtc_init() 209 if (IS_ERR(planes)) { in sun4i_crtc_init() 210 dev_err(drm->dev, "Couldn't create the planes\n"); in sun4i_crtc_init() 214 /* find primary and cursor planes for drm_crtc_init_with_planes */ in sun4i_crtc_init() 215 for (i = 0; planes[i]; i++) { in sun4i_crtc_init() 216 struct drm_plane *plane = planes[i]; in sun4i_crtc_init() 246 /* Set possible_crtcs to this crtc for overlay planes */ in sun4i_crtc_init() 247 for (i = 0; planes[i]; i++) { in sun4i_crtc_init() 249 struct drm_plane *plane = planes[ in sun4i_crtc_init() [all...] |
H A D | sun4i_layer.c | 237 struct drm_plane **planes; in sun4i_layers_init() local 242 planes = devm_kcalloc(drm->dev, SUN4I_BACKEND_NUM_LAYERS + 1, in sun4i_layers_init() 243 sizeof(*planes), GFP_KERNEL); in sun4i_layers_init() 244 if (!planes) in sun4i_layers_init() 258 planes[i] = &layer->plane; in sun4i_layers_init() 261 return planes; in sun4i_layers_init()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_read_image.h | 119 uint32 planes, 127 uint32 planes, 138 uint32 planes, 148 uint32 planes, 170 uint32 planes,
|
H A D | dng_image.h | 140 // Number of image planes. 176 uint32 planes, 213 /// Getter method for number of planes in an image. 283 /// \param planes Number of planes to copy. 289 uint32 planes); 295 /// \param planes Number of planes to copy. 300 uint32 planes) in CopyArea() 303 CopyArea (src, area, plane, plane, planes); in CopyArea() 297 CopyArea(const dng_image &src, const dng_rect &area, uint32 plane, uint32 planes) CopyArea() argument [all...] |
H A D | dng_simple_image.cpp | 26 uint32 planes, in dng_simple_image() 31 planes, in dng_simple_image() 40 ComputeBufferSize (pixelType, bounds.Size (), planes, pad16Bytes); in dng_simple_image() 44 fBuffer = dng_pixel_buffer (bounds, 0, planes, pixelType, pcInterleaved, fMemory->Buffer ()); in dng_simple_image() 25 dng_simple_image(const dng_rect &bounds, uint32 planes, uint32 pixelType, dng_memory_allocator &allocator) dng_simple_image() argument
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_avgblur_vulkan.c | 42 int planes; member 77 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in init_filter() local 84 .elems = planes, in init_filter() 93 .elems = planes, in init_filter() 129 for (int i = 0; i < planes; i++) { in init_filter() 133 if (s->planes & (1 << i)) { in init_filter() 174 for (int i = 0; i < planes; i++) { in init_filter() 178 if (s->planes & (1 << i)) { in init_filter() 219 int planes = av_pix_fmt_count_planes(s->vkctx.output_format); in process_frames() local 225 for (int i = 0; i < planes; in process_frames() [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_dcc_retile.c | 195 unsigned swizzle_mode = image->planes[0].surface.u.gfx9.swizzle_mode; in radv_retile_dcc() 200 radv_device_init_meta_dcc_retile_state(cmd_buffer->device, &image->planes[0].surface); in radv_retile_dcc() 222 .offset = image->planes[0].surface.meta_offset, in radv_retile_dcc() 223 .range = image->planes[0].surface.meta_size, in radv_retile_dcc() 230 .offset = image->planes[0].surface.display_dcc_offset, in radv_retile_dcc() 231 .range = image->planes[0].surface.u.gfx9.color.display_dcc_size, in radv_retile_dcc() 262 unsigned dcc_width = DIV_ROUND_UP(width, image->planes[0].surface.u.gfx9.color.dcc_block_width); in radv_retile_dcc() 264 DIV_ROUND_UP(height, image->planes[0].surface.u.gfx9.color.dcc_block_height); in radv_retile_dcc() 267 image->planes[0].surface.u.gfx9.color.dcc_pitch_max + 1, in radv_retile_dcc() 268 image->planes[ in radv_retile_dcc() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | utvideodec.c | 605 for (i = 0; i < c->planes; i++) { in decode_frame() 618 for (i = 0; i < c->planes; i++) { in decode_frame() 635 for (i = 0; i < c->planes; i++) { in decode_frame() 658 plane_start[c->planes] = gb.buffer; in decode_frame() 660 for (i = 0; i < c->planes; i++) { in decode_frame() 683 plane_start[c->planes] = gb.buffer; in decode_frame() 710 for (i = 0; i < c->planes; i++) { in decode_frame() 747 for (i = 0; i < c->planes; i++) { in decode_frame() 897 c->planes = 3; in decode_init() 901 c->planes in decode_init() [all...] |
H A D | v4l2_buffers.c | 264 *buf = av_buffer_create((char *)in->plane_info[plane].mm_addr + in->planes[plane].data_offset, in v4l2_buf_to_bufref() 289 out->planes[plane].bytesused = bytesused; in v4l2_bufref_to_buf() 290 out->planes[plane].length = length; in v4l2_bufref_to_buf() 461 pkt->size = V4L2_TYPE_IS_MULTIPLANAR(avbuf->buf.type) ? avbuf->buf.m.planes[0].bytesused : avbuf->buf.bytesused; in ff_v4l2_buffer_buf_to_avpkt() 504 avbuf->buf.m.planes = avbuf->planes; in ff_v4l2_buffer_initialize() 515 if (avbuf->buf.m.planes[i].length) in ff_v4l2_buffer_initialize() 528 avbuf->plane_info[i].length = avbuf->buf.m.planes[i].length; in ff_v4l2_buffer_initialize() 529 avbuf->plane_info[i].mm_addr = mmap(NULL, avbuf->buf.m.planes[i].length, in ff_v4l2_buffer_initialize() 531 buf_to_m2mctx(avbuf)->fd, avbuf->buf.m.planes[ in ff_v4l2_buffer_initialize() [all...] |
H A D | utvideoenc.c | 85 c->planes = 3; in utvideo_encode_init() 90 c->planes = 4; in utvideo_encode_init() 101 c->planes = 3; in utvideo_encode_init() 114 c->planes = 3; in utvideo_encode_init() 122 c->planes = 3; in utvideo_encode_init() 174 for (i = 0; i < c->planes; i++) { in utvideo_encode_init() 236 uint8_t *const src[4], int planes, const int stride[4], in mangle_rgb_planes() 248 if (planes == 3) { in mangle_rgb_planes() 395 /* Do prediction / make planes */ in encode_plane() 535 * c->planes in utvideo_encode_frame() 235 mangle_rgb_planes(uint8_t *dst[4], ptrdiff_t dst_stride, uint8_t *const src[4], int planes, const int stride[4], int width, int height) mangle_rgb_planes() argument [all...] |
H A D | libvpxdec.c | 267 uint8_t *planes[4]; in vpx_decode() local 301 planes[0] = img->planes[VPX_PLANE_Y]; in vpx_decode() 302 planes[1] = img->planes[VPX_PLANE_U]; in vpx_decode() 303 planes[2] = img->planes[VPX_PLANE_V]; in vpx_decode() 304 planes[3] = in vpx_decode() 305 ctx->has_alpha_channel ? img_alpha->planes[VPX_PLANE_Y] : NULL; in vpx_decode() 327 picture->data[i] = planes[ in vpx_decode() [all...] |
H A D | magicyuvenc.c | 59 int planes; member 202 s->planes = av_pix_fmt_count_planes(avctx->pix_fmt); in magy_encode_init() 206 for (i = 0; i < s->planes; i++) { in magy_encode_init() 422 s->planes + 256); in magy_encode_frame() 445 for (i = 0; i < s->planes; i++) { in magy_encode_frame() 452 bytestream2_put_byte(&pb, s->planes); in magy_encode_frame() 454 for (i = 0; i < s->planes; i++) { in magy_encode_frame() 483 for (i = 0; i < s->planes; i++) { in magy_encode_frame() 490 for (i = 0; i < s->planes; i++) { in magy_encode_frame() 501 for (i = 0; i < s->planes; in magy_encode_frame() [all...] |
H A D | fraps.c | 119 * and we need to add 0x80 to the first lines of chroma planes in fraps2_decode_plane() 149 const int planes = 3; in decode_frame() local 200 if (AV_RL32(buf) != FPS_TAG || buf_size < planes*1024 + 24) { in decode_frame() 204 for (i = 0; i < planes; i++) { in decode_frame() 211 offs[planes] = buf_size - header_size; in decode_frame() 212 for (i = 0; i < planes; i++) { in decode_frame() 282 * Fraps v2 is Huffman-coded YUV420 planes in decode_frame() 285 for (i = 0; i < planes; i++) { in decode_frame() 300 for (i = 0; i < planes; i++) { in decode_frame()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_sp.c | 463 sp_frame_out->planes.raw.offset = frame_in->planes.raw.offset; in sh_css_copy_frame_to_spframe() 467 sp_frame_out->planes.rgb.offset = frame_in->planes.rgb.offset; in sh_css_copy_frame_to_spframe() 470 sp_frame_out->planes.planar_rgb.r.offset = in sh_css_copy_frame_to_spframe() 471 frame_in->planes.planar_rgb.r.offset; in sh_css_copy_frame_to_spframe() 472 sp_frame_out->planes.planar_rgb.g.offset = in sh_css_copy_frame_to_spframe() 473 frame_in->planes.planar_rgb.g.offset; in sh_css_copy_frame_to_spframe() 474 sp_frame_out->planes.planar_rgb.b.offset = in sh_css_copy_frame_to_spframe() 475 frame_in->planes in sh_css_copy_frame_to_spframe() [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_sp.c | 460 sp_frame_out->planes.raw.offset = frame_in->planes.raw.offset; in sh_css_copy_frame_to_spframe() 464 sp_frame_out->planes.rgb.offset = frame_in->planes.rgb.offset; in sh_css_copy_frame_to_spframe() 467 sp_frame_out->planes.planar_rgb.r.offset = in sh_css_copy_frame_to_spframe() 468 frame_in->planes.planar_rgb.r.offset; in sh_css_copy_frame_to_spframe() 469 sp_frame_out->planes.planar_rgb.g.offset = in sh_css_copy_frame_to_spframe() 470 frame_in->planes.planar_rgb.g.offset; in sh_css_copy_frame_to_spframe() 471 sp_frame_out->planes.planar_rgb.b.offset = in sh_css_copy_frame_to_spframe() 472 frame_in->planes in sh_css_copy_frame_to_spframe() [all...] |
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_formats.c | 52 .planes = { \ 67 .planes = { \ 79 .planes = { \ 91 .planes = { \ 107 .planes = { \ 133 .planes = { \ 441 if (format->planes[0].isl_format == ISL_FORMAT_UNSUPPORTED) in anv_get_format() 452 isl_format_get_layout(anv_format->planes[i].isl_format); in anv_format_has_npot_plane() 485 struct anv_format_plane plane_format = format->planes[plane]; in anv_get_format_plane() 693 if (isl_format_is_yuv(anv_format->planes[ in anv_get_image_format_features2() 894 uint32_t planes = anv_format->n_planes; get_drm_format_modifier_properties_list() local 928 uint32_t planes = anv_format->n_planes; get_drm_format_modifier_properties_list_2() local [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | frame.c | 192 int channels, planes; in get_audio_buffer() local 211 planes = planar ? channels : 1; in get_audio_buffer() 220 if (planes > AV_NUM_DATA_POINTERS) { in get_audio_buffer() 221 frame->extended_data = av_calloc(planes, in get_audio_buffer() 223 frame->extended_buf = av_calloc(planes - AV_NUM_DATA_POINTERS, in get_audio_buffer() 230 frame->nb_extended_buf = planes - AV_NUM_DATA_POINTERS; in get_audio_buffer() 234 for (i = 0; i < FFMIN(planes, AV_NUM_DATA_POINTERS); i++) { in get_audio_buffer() 242 for (i = 0; i < planes - AV_NUM_DATA_POINTERS; i++) { in get_audio_buffer() 604 int planes, i; in av_frame_get_plane_buffer() local 619 planes in av_frame_get_plane_buffer() 699 int i, planes; frame_copy_video() local 725 int planes = planar ? channels : 1; frame_copy_audio() local [all...] |
H A D | hwcontext_vulkan.c | 106 /* Option to allocate all image planes in a single allocation */ 278 int planes = av_pix_fmt_count_planes(p); in pixfmt_is_supported() local 283 for (int i = 0; i < planes; i++) { in pixfmt_is_supported() 1727 int planes = av_pix_fmt_count_planes(cuda_fc->sw_format); in vulkan_free_internal() local 1733 for (int i = 0; i < planes; i++) { in vulkan_free_internal() 1762 int planes = av_pix_fmt_count_planes(hwfc->sw_format); in vulkan_frame_free() local 1770 for (int i = 0; i < planes; i++) { in vulkan_frame_free() 1788 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); in alloc_bind_mem() local 1797 for (int i = 0; i < planes; i++) { in alloc_bind_mem() 1823 av_log(hwfc, AV_LOG_ERROR, "Cannot allocate all planes i in alloc_bind_mem() 1912 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); prepare_frame() local 1995 0, 0, NULL, 0, NULL, planes, img_bar); prepare_frame() local 2029 const int planes = av_pix_fmt_count_planes(format); create_frame() local 2451 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_unmap_frame() local 2489 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_map_frame_to_mem() local 2585 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_unmap_from_drm() local 2667 const int planes = desc->layers[i].nb_planes; vulkan_map_from_drm_frame_desc() local 2855 const int planes = desc->layers[i].nb_planes; vulkan_map_from_drm_frame_desc() local 2983 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_export_to_cuda() local 3160 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_transfer_data_from_cuda() local 3304 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_map_to_drm() local 3698 const int planes = av_pix_fmt_count_planes(pix_fmt); transfer_image_buf() local 3830 const int planes = av_pix_fmt_count_planes(swf->format); vulkan_transfer_data() local 4005 const int planes = av_pix_fmt_count_planes(hwfc->sw_format); vulkan_transfer_data_to_cuda() local [all...] |
/third_party/ffmpeg/libavresample/ |
H A D | audio_data.c | 41 for (p = 0; p < a->planes; p++) { in calc_ptr_alignment() 66 a->planes = a->is_planar ? channels : 1; in ff_audio_data_set_channels() 94 a->planes = a->is_planar ? channels : 1; in ff_audio_data_init() 138 a->planes = a->is_planar ? channels : 1; in ff_audio_data_alloc() 191 for (p = 0; p < a->planes; p++) in ff_audio_data_realloc() 252 for (p = 0; p < src->planes; p++) { in ff_audio_data_copy() 259 for (p = 0; p < src->planes; p++) { in ff_audio_data_copy() 269 for (p = 0; p < src->planes; p++) in ff_audio_data_copy() 319 for (p = 0; p < src->planes; p++) { in ff_audio_data_combine() 344 for (p = 0; p < a->planes; in ff_audio_data_drain() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/ |
H A D | picture.cpp | 192 OH_NativeBuffer_Planes *planes = nullptr; in SetYuvDataInfo() local 193 GSError retVal = sBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in SetYuvDataInfo() 196 if (retVal != OHOS::GSERROR_OK || planes == nullptr || planes->planeCount <= NUM_1) { in SetYuvDataInfo() 199 } else if (planes->planeCount >= NUM_2) { in SetYuvDataInfo() 200 info.yStride = planes->planes[NUM_0].columnStride; in SetYuvDataInfo() 201 info.uvStride = planes->planes[NUM_1].columnStride; in SetYuvDataInfo() 202 info.yOffset = planes in SetYuvDataInfo() [all...] |
/kernel/linux/linux-6.6/include/media/ |
H A D | videobuf2-core.h | 242 * @num_planes: number of planes in the buffer 287 struct vb2_plane planes[VB2_MAX_PLANES]; member 337 * in \*num_buffers, the required number of planes per 346 * describes the requested number of planes and sizes\[\] 459 * enough planes for the buffer. This is called 476 int (*fill_vb2_buffer)(struct vb2_buffer *vb, struct vb2_plane *planes); 779 * #) negotiates number of buffers and planes per buffer with the driver 802 * @requested_planes: number of planes requested. 803 * @requested_sizes: array with the size of the planes. 1177 if (WARN_ON_ONCE(size > vb->planes[plane_n in vb2_set_plane_payload() [all...] |