Home
last modified time | relevance | path

Searched refs:n_planes (Results 1 – 25 of 62) sorted by relevance

123

/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Daudio-buffer.c36 g_slice_free1 (buffer->n_planes * sizeof (gpointer), buffer->planes); in gst_audio_buffer_unmap_internal()
38 g_slice_free1 (buffer->n_planes * sizeof (GstMapInfo), buffer->map_infos); in gst_audio_buffer_unmap_internal()
53 gst_audio_buffer_unmap_internal (buffer, buffer->n_planes); in gst_audio_buffer_unmap()
136 buffer->n_planes = 1; in gst_audio_buffer_map()
146 buffer->n_planes = GST_AUDIO_BUFFER_CHANNELS (buffer); in gst_audio_buffer_map()
148 if (G_UNLIKELY (buffer->n_planes > 8)) { in gst_audio_buffer_map()
149 buffer->planes = g_slice_alloc (buffer->n_planes * sizeof (gpointer)); in gst_audio_buffer_map()
151 g_slice_alloc (buffer->n_planes * sizeof (GstMapInfo)); in gst_audio_buffer_map()
159 buffer->n_planes * sizeof (buffer->map_infos[0])); in gst_audio_buffer_map()
160 memset (buffer->planes, 0, buffer->n_planes * sizeof (buffer->planes[0])); in gst_audio_buffer_map()
[all …]
Daudio-buffer.h54 gint n_planes; member
88 #define GST_AUDIO_BUFFER_N_PLANES(b) ((b)->n_planes)
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-frame.c94 g_return_val_if_fail (info->finfo->n_planes == meta->n_planes, FALSE); in gst_video_frame_map_id()
102 for (i = 0; i < meta->n_planes; i++) { in gst_video_frame_map_id()
125 for (i = 0; i < info->finfo->n_planes; i++) { in gst_video_frame_map_id()
270 for (i = 0; i < frame->info.finfo->n_planes; i++) { in gst_video_frame_unmap()
318 g_return_val_if_fail (finfo->n_planes > plane, FALSE); in gst_video_frame_copy_plane()
409 guint i, n_planes; in gst_video_frame_copy() local
423 n_planes = dinfo->finfo->n_planes; in gst_video_frame_copy()
425 for (i = 0; i < n_planes; i++) in gst_video_frame_copy()
Dgstvideometa.c64 emeta->width = emeta->height = emeta->n_planes = 0; in gst_video_meta_init()
104 dmeta->n_planes = smeta->n_planes; in gst_video_meta_transform()
105 for (i = 0; i < dmeta->n_planes; i++) { in gst_video_meta_transform()
290 height, info.finfo->n_planes, info.offset, info.stride); in gst_buffer_add_video_meta()
313 guint height, guint n_planes, gsize offset[GST_VIDEO_MAX_PLANES], in gst_buffer_add_video_meta_full() argument
332 meta->n_planes = n_planes; in gst_buffer_add_video_meta_full()
333 for (i = 0; i < n_planes; i++) { in gst_buffer_add_video_meta_full()
365 g_return_val_if_fail (plane < meta->n_planes, FALSE); in gst_video_meta_map()
391 g_return_val_if_fail (plane < meta->n_planes, FALSE); in gst_video_meta_unmap()
517 for (i = 0; i < meta->n_planes; i++) { in gst_video_meta_get_plane_height()
Dgstvideometa.h89 guint n_planes; member
119 guint n_planes, gsize offset[GST_VIDEO_MAX_PLANES],
Dvideo-info.c642 for (i = 0; i < info->finfo->n_planes; i++) { in gst_video_info_is_equal()
1386 gint i, n_planes; in gst_video_info_align_full() local
1395 n_planes = GST_VIDEO_INFO_N_PLANES (info); in gst_video_info_align_full()
1398 n_planes--; in gst_video_info_align_full()
1404 for (i = 0; i < n_planes; i++) { in gst_video_info_align_full()
1441 for (i = 0; i < n_planes; i++) { in gst_video_info_align_full()
1459 for (i = 0; i < n_planes; i++) { in gst_video_info_align_full()
Dvideo-format.h574 guint n_planes; member
637 #define GST_VIDEO_FORMAT_INFO_N_PLANES(info) ((info)->n_planes)
/third_party/gstreamer/gstplugins_base/gst/rawparse/
Dgstrawvideoparse.c507 guint n_planes; in gst_raw_video_parse_set_property() local
523 n_planes = GST_VIDEO_INFO_N_PLANES (&(props_cfg->info)); in gst_raw_video_parse_set_property()
526 if (gst_value_array_get_size (value) < n_planes) { in gst_raw_video_parse_set_property()
529 ("expected: %u, got: %u", n_planes, in gst_raw_video_parse_set_property()
536 for (i = 0; i < n_planes; ++i) { in gst_raw_video_parse_set_property()
558 guint n_planes; in gst_raw_video_parse_set_property() local
574 n_planes = GST_VIDEO_INFO_N_PLANES (&(props_cfg->info)); in gst_raw_video_parse_set_property()
577 if (gst_value_array_get_size (value) < n_planes) { in gst_raw_video_parse_set_property()
580 ("expected: %u, got: %u", n_planes, in gst_raw_video_parse_set_property()
587 for (i = 0; i < n_planes; ++i) { in gst_raw_video_parse_set_property()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/applemedia/
Dcorevideobuffer.c145 guint n_planes; in gst_core_video_wrap_pixel_buffer() local
164 n_planes = CVPixelBufferGetPlaneCount (pixel_buf); in gst_core_video_wrap_pixel_buffer()
165 for (i = 0; i < n_planes; i++) { in gst_core_video_wrap_pixel_buffer()
188 n_planes = 1; in gst_core_video_wrap_pixel_buffer()
210 GST_VIDEO_INFO_FORMAT (info), info->width, info->height, n_planes, in gst_core_video_wrap_pixel_buffer()
/third_party/mesa3d/src/intel/vulkan/
Danv_formats.c59 .n_planes = 1, \
74 .n_planes = 1, \
86 .n_planes = 1, \
102 .n_planes = 2, \
137 .n_planes = __n_planes, \
450 for (uint32_t i = 0; i < anv_format->n_planes; ++i) { in anv_format_has_npot_plane()
484 assert(plane < format->n_planes); in anv_get_format_plane()
699 for (unsigned p = 0; p < anv_format->n_planes; p++) { in anv_get_image_format_features2()
707 if (anv_format->n_planes > 1) in anv_get_image_format_features2()
764 if (anv_format->n_planes > 1) { in anv_get_image_format_features2()
[all …]
Danv_image.c605 if (image->n_planes != 1) { in add_aux_surface_if_supported()
873 for (uint32_t p = 0; p < image->n_planes; ++p) { in check_memory_bindings()
983 for (int i = 0; i < image->n_planes; ++i) { in check_drm_format_mod()
1122 if (image->n_planes == 1) in add_all_surfaces_explicit_layout()
1128 assert(image->n_planes == 1 && mod_plane_count == 2); in add_all_surfaces_explicit_layout()
1130 assert(image->n_planes == mod_plane_count); in add_all_surfaces_explicit_layout()
1306 image->n_planes = anv_get_format_planes(image->vk.format); in anv_image_init()
1313 image->disjoint = image->n_planes > 1 && in anv_image_init()
1362 assert(image->n_planes == 1); in anv_image_finish()
1575 image->n_planes = anv_get_format_planes(image->vk.format); in resolve_ahw_image()
[all …]
DgenX_state.c713 sampler->n_planes = 1; in genX()
750 sampler->n_planes = conversion->format->n_planes; in genX()
803 sampler->n_planes * 32, 32); in genX()
806 for (unsigned p = 0; p < sampler->n_planes; p++) { in genX()
/third_party/weston/libweston/
Dlinux-dmabuf.c43 for (i = 0; i < buffer->attributes.n_planes; i++) { in linux_dmabuf_buffer_destroy()
48 buffer->attributes.n_planes = 0; in linux_dmabuf_buffer_destroy()
126 buffer->attributes.n_planes++; in params_add()
233 if (!buffer->attributes.n_planes) { in params_create_common()
241 for (i = 0; i < buffer->attributes.n_planes; i++) { in params_create_common()
262 for (i = 0; i < buffer->attributes.n_planes; i++) { in params_create_common()
Dlinux-dmabuf.h51 int n_planes; member
/third_party/ffmpeg/libavformat/
Davisynth.c88 int n_planes; member
482 avs->n_planes = 4; in avisynth_create_stream_video()
486 avs->n_planes = 4; in avisynth_create_stream_video()
490 avs->n_planes = 3; in avisynth_create_stream_video()
494 avs->n_planes = 1; in avisynth_create_stream_video()
498 avs->n_planes = 3; in avisynth_create_stream_video()
502 avs->n_planes = 1; in avisynth_create_stream_video()
693 for (i = 0; i < avs->n_planes; i++) { in avisynth_read_packet_video()
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvabasetransform.c641 guint i, n_mem, n_planes; in _try_import_dmabuf_unlocked() local
645 n_planes = GST_VIDEO_INFO_N_PLANES (&in_info); in _try_import_dmabuf_unlocked()
654 if (n_mem > n_planes) in _try_import_dmabuf_unlocked()
662 for (i = 0; i < meta->n_planes; i++) { in _try_import_dmabuf_unlocked()
669 for (i = 0; i < n_planes; i++) { in _try_import_dmabuf_unlocked()
696 return gst_va_dmabuf_memories_setup (btrans->display, &in_info, n_planes, in _try_import_dmabuf_unlocked()
Dgstvaallocator.h50 guint n_planes,
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/
Dgstvkformat.h116 guint n_planes; member
/third_party/gstreamer/gstplugins_bad/sys/kms/
Dgstkmsallocator.c519 gint n_planes, gsize offsets[GST_VIDEO_MAX_PLANES], GstVideoInfo * vinfo) in gst_kms_allocator_dmabuf_import() argument
526 g_return_val_if_fail (n_planes <= GST_VIDEO_MAX_PLANES, FALSE); in gst_kms_allocator_dmabuf_import()
537 for (i = 0; i < n_planes; i++) { in gst_kms_allocator_dmabuf_import()
547 for (i = 0; i < n_planes; i++) { in gst_kms_allocator_dmabuf_import()
Dgstkmsallocator.h85 gint n_planes,
Dgstkmssink.c1342 guint i, n_mem, n_planes; in gst_kms_sink_import_dmabuf() local
1355 n_planes = GST_VIDEO_INFO_N_PLANES (&self->vinfo); in gst_kms_sink_import_dmabuf()
1360 n_planes, n_mem); in gst_kms_sink_import_dmabuf()
1363 if (n_mem > n_planes) in gst_kms_sink_import_dmabuf()
1365 g_assert (n_planes != 0); in gst_kms_sink_import_dmabuf()
1372 for (i = 0; i < meta->n_planes; i++) { in gst_kms_sink_import_dmabuf()
1379 for (i = 0; i < n_planes; i++) { in gst_kms_sink_import_dmabuf()
1407 for (i = 0; i < n_planes; i++) in gst_kms_sink_import_dmabuf()
1414 prime_fds, n_planes, mems_skip, &self->vinfo); in gst_kms_sink_import_dmabuf()
/third_party/weston/libweston/backend-drm/
Dfb.c246 .num_fds = dmabuf->attributes.n_planes, in drm_fb_get_from_dmabuf()
302 dmabuf->attributes.n_planes > 1 || in drm_fb_get_from_dmabuf()
359 fb->num_planes = dmabuf->attributes.n_planes; in drm_fb_get_from_dmabuf()
360 for (i = 0; i < dmabuf->attributes.n_planes; i++) { in drm_fb_get_from_dmabuf()
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Daudio.c149 fail_unless_equals_int (abuf.n_planes, 1); in GST_START_TEST()
234 fail_unless_equals_int (abuf.n_planes, 2); in GST_START_TEST()
320 fail_unless_equals_int (abuf.n_planes, 2); in GST_START_TEST()
527 fail_unless_equals_int (abuf.n_planes, 2); in GST_START_TEST()
933 fail_unless_equals_int (abuf.n_planes, tests[i].channels); in GST_START_TEST()
936 for (j = 0; j < abuf.n_planes; j++) { in GST_START_TEST()
1428 fail_unless_equals_int (buffer.n_planes, td[i].channels); in GST_START_TEST()
1433 fail_unless_equals_int (buffer.n_planes, 1); in GST_START_TEST()
1440 if (buffer.n_planes <= 8) { in GST_START_TEST()
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglstereosplit.c638 gint i, n_planes; in stereosplit_chain() local
640 n_planes = GST_VIDEO_INFO_N_PLANES (&split->viewconvert->out_info); in stereosplit_chain()
678 for (i = 0; i < n_planes; i++) { in stereosplit_chain()
697 for (i = n_planes; i < n_planes * 2; i++) { in stereosplit_chain()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/egl/
Dgsteglimage.c867 guint n_planes = GST_VIDEO_INFO_N_PLANES (in_info); in gst_egl_image_from_dmabuf_direct_target() local
889 if (G_UNLIKELY (n_planes > 3)) in gst_egl_image_from_dmabuf_direct_target()
916 if (n_planes >= 2) { in gst_egl_image_from_dmabuf_direct_target()
932 if (n_planes == 3) { in gst_egl_image_from_dmabuf_direct_target()

123