Home
last modified time | relevance | path

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

/third_party/gstreamer/gstplugins_base/tests/check/libs/
Dvideo.c3487 gsize plane_size[GST_VIDEO_MAX_PLANES]; in GST_START_TEST() local
3499 g_assert (gst_video_info_align_full (&info, &align, plane_size)); in GST_START_TEST()
3501 g_assert_cmpuint (plane_size[0], ==, 1920 * 1080); in GST_START_TEST()
3502 g_assert_cmpuint (plane_size[1], ==, 1920 * 1080 / 2); in GST_START_TEST()
3503 g_assert_cmpuint (plane_size[2], ==, 0); in GST_START_TEST()
3504 g_assert_cmpuint (plane_size[3], ==, 0); in GST_START_TEST()
3510 g_assert_cmpuint (GST_VIDEO_INFO_PLANE_HEIGHT (&info, 0, plane_size), ==, in GST_START_TEST()
3512 g_assert_cmpuint (GST_VIDEO_INFO_PLANE_HEIGHT (&info, 1, plane_size), ==, in GST_START_TEST()
3514 g_assert_cmpuint (GST_VIDEO_INFO_PLANE_HEIGHT (&info, 2, plane_size), ==, 0); in GST_START_TEST()
3515 g_assert_cmpuint (GST_VIDEO_INFO_PLANE_HEIGHT (&info, 3, plane_size), ==, 0); in GST_START_TEST()
[all …]
Daudio.c1356 gsize plane_size; member
1438 td[i].plane_size); in GST_START_TEST()
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Drawvideoparse.c72 guint plane_size; member
84 pixels[ctx->plane_size * i + ofs] = in set_pixel()
96 ((guint32) (pixels[ctx->plane_size * i + ofs])) << ((NUM_TEST_PLANES - in get_pixel()
111 memset (pixels, 0, ctx->plane_size * NUM_TEST_PLANES); in fill_test_pattern()
170 properties_ctx.plane_size = PROP_CTX_PLANE_SIZE; in setup_rawvideoparse()
174 sinkcaps_ctx.plane_size = TEST_WIDTH * TEST_HEIGHT; in setup_rawvideoparse()
188 g_value_set_int (&val, properties_ctx.plane_size * i); in setup_rawvideoparse()
226 plane_offsets[0] = properties_ctx.plane_size * 0; in setup_rawvideoparse()
227 plane_offsets[1] = properties_ctx.plane_size * 1; in setup_rawvideoparse()
228 plane_offsets[2] = properties_ctx.plane_size * 2; in setup_rawvideoparse()
[all …]
/third_party/ffmpeg/libavresample/
Daudio_data.c73 int ff_audio_data_init(AudioData *a, uint8_t * const *src, int plane_size, in ff_audio_data_init() argument
114 a->samples_align = plane_size / a->stride; in ff_audio_data_init()
164 int ret, new_buf_size, plane_size, p; in ff_audio_data_realloc() local
174 new_buf_size = av_samples_get_buffer_size(&plane_size, in ff_audio_data_realloc()
186 ret = av_samples_alloc(new_data, &plane_size, a->allocated_channels, in ff_audio_data_realloc()
202 ret = av_samples_fill_arrays(a->data, &plane_size, a->buffer, in ff_audio_data_realloc()
212 a->samples_align = plane_size / a->stride; in ff_audio_data_realloc()
Daudio_data.h79 int ff_audio_data_init(AudioData *a, uint8_t * const *src, int plane_size,
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudiometa.c392 gsize plane_size; in gst_buffer_add_audio_meta() local
407 plane_size = samples * info->finfo->width / 8; in gst_buffer_add_audio_meta()
426 if (i != j && !(offsets[j] + plane_size <= offsets[i] in gst_buffer_add_audio_meta()
427 || offsets[i] + plane_size <= offsets[j])) { in gst_buffer_add_audio_meta()
431 offsets[i], i, offsets[j], j, plane_size); in gst_buffer_add_audio_meta()
441 meta->offsets[i] = i * plane_size; in gst_buffer_add_audio_meta()
448 if (max_offset + plane_size > gst_buffer_get_size (buffer)) { in gst_buffer_add_audio_meta()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_image.cpp202 uint32_t plane_size = 0; in GetPlaneCoordSize() local
207 plane_size = 1; in GetPlaneCoordSize()
212 plane_size = 2; in GetPlaneCoordSize()
217 plane_size = 3; in GetPlaneCoordSize()
224 return plane_size; in GetPlaneCoordSize()
382 const uint32_t plane_size = GetPlaneCoordSize(info); in ValidateImageOperands() local
385 if (plane_size != dx_size) { in ValidateImageOperands()
387 << "Expected Image Operand Grad dx to have " << plane_size in ValidateImageOperands()
391 if (plane_size != dy_size) { in ValidateImageOperands()
393 << "Expected Image Operand Grad dy to have " << plane_size in ValidateImageOperands()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_image.cpp202 uint32_t plane_size = 0; in GetPlaneCoordSize() local
207 plane_size = 1; in GetPlaneCoordSize()
212 plane_size = 2; in GetPlaneCoordSize()
217 plane_size = 3; in GetPlaneCoordSize()
224 return plane_size; in GetPlaneCoordSize()
382 const uint32_t plane_size = GetPlaneCoordSize(info); in ValidateImageOperands() local
385 if (plane_size != dx_size) { in ValidateImageOperands()
387 << "Expected Image Operand Grad dx to have " << plane_size in ValidateImageOperands()
391 if (plane_size != dy_size) { in ValidateImageOperands()
393 << "Expected Image Operand Grad dy to have " << plane_size in ValidateImageOperands()
[all …]
/third_party/ffmpeg/libavfilter/
Daf_amix.c355 int planes, plane_size, p; in output_frame() local
361 plane_size = nb_samples * (s->planar ? 1 : s->nb_channels); in output_frame()
362 plane_size = FFALIGN(plane_size, 16); in output_frame()
369 s->input_scale[i], plane_size); in output_frame()
375 s->input_scale[i], plane_size); in output_frame()
/third_party/spirv-tools/source/val/
Dvalidate_image.cpp204 uint32_t plane_size = 0; in GetPlaneCoordSize() local
209 plane_size = 1; in GetPlaneCoordSize()
214 plane_size = 2; in GetPlaneCoordSize()
219 plane_size = 3; in GetPlaneCoordSize()
226 return plane_size; in GetPlaneCoordSize()
385 const uint32_t plane_size = GetPlaneCoordSize(info); in ValidateImageOperands() local
388 if (plane_size != dx_size) { in ValidateImageOperands()
390 << "Expected Image Operand Grad dx to have " << plane_size in ValidateImageOperands()
394 if (plane_size != dy_size) { in ValidateImageOperands()
396 << "Expected Image Operand Grad dy to have " << plane_size in ValidateImageOperands()
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dgstvideometa.c399 gsize plane_size[GST_VIDEO_MAX_PLANES]) in gst_video_meta_validate_alignment()
407 if (!gst_video_info_align_full (&info, &meta->alignment, plane_size)) { in gst_video_meta_validate_alignment()
475 gsize plane_size[GST_VIDEO_MAX_PLANES]) in gst_video_meta_get_plane_size()
478 g_return_val_if_fail (plane_size, FALSE); in gst_video_meta_get_plane_size()
480 return gst_video_meta_validate_alignment (meta, plane_size); in gst_video_meta_get_plane_size()
503 gsize plane_size[GST_VIDEO_MAX_PLANES]; in gst_video_meta_get_plane_height() local
514 if (!gst_video_meta_get_plane_size (meta, plane_size)) in gst_video_meta_get_plane_height()
521 plane_height[i] = plane_size[i] / meta->stride[i]; in gst_video_meta_get_plane_height()
Dvideo-info.c116 gsize plane_size[GST_VIDEO_MAX_PLANES]);
786 fill_planes (GstVideoInfo * info, gsize plane_size[GST_VIDEO_MAX_PLANES]) in fill_planes()
1211 if (plane_size) { in fill_planes()
1222 plane_size[i] = plane_height * GST_VIDEO_INFO_PLANE_STRIDE (info, i); in fill_planes()
1224 plane_size[i] = 0; in fill_planes()
1381 gsize plane_size[GST_VIDEO_MAX_PLANES]) in gst_video_info_align_full()
1436 if (!fill_planes (info, plane_size)) in gst_video_info_align_full()
Dgstvideometa.h133 gboolean gst_video_meta_get_plane_size (GstVideoMeta * meta, gsize plane_size[GST_VIDEO_MAX_P…
Dvideo-info.h477 …nfo_align_full (GstVideoInfo * info, GstVideoAlignment * align, gsize plane_size[GST_VIDEO_MAX_PL…
/third_party/ffmpeg/libavcodec/
Domx.c202 int stride, plane_size; member
468 s->plane_size = avctx->height; in omx_component_init()
472 in_port_params.format.video.nSliceHeight = s->plane_size; in omx_component_init()
485 s->plane_size = in_port_params.format.video.nSliceHeight; in omx_component_init()
747 … av_image_fill_arrays(dst, linesize, buffer->pBuffer, avctx->pix_fmt, s->stride, s->plane_size, 1); in omx_encode_frame()
752 …_image_fill_arrays(src, src_linesize, frame->data[0], avctx->pix_fmt, s->stride, s->plane_size, 1); in omx_encode_frame()
776 … int image_buffer_size = av_image_get_buffer_size(avctx->pix_fmt, s->stride, s->plane_size, 1); in omx_encode_frame()
789 … av_image_fill_arrays(dst, linesize, buffer->pBuffer, avctx->pix_fmt, s->stride, s->plane_size, 1); in omx_encode_frame()
Dutvideodec.c568 int plane_size, max_slice_size = 0, slice_start, slice_end, slice_size; in decode_frame() local
655 plane_size = slice_end; in decode_frame()
656 bytestream2_skipu(&gb, plane_size); in decode_frame()
681 plane_size = slice_end; in decode_frame()
682 bytestream2_skipu(&gb, plane_size); in decode_frame()
/third_party/ffmpeg/doc/examples/
Dfilter_audio.c221 int plane_size = bps * frame->nb_samples * (planar ? 1 : channels); in process_output() local
228 av_md5_sum(checksum, frame->extended_data[i], plane_size); in process_output()
/third_party/gstreamer/gstplugins_bad/ext/directfb/
Ddfbvideosink.c316 gsize plane_size[GST_VIDEO_MAX_PLANES] = { 0 }; in gst_dfb_buffer_pool_alloc_buffer() local
396 plane_size[0] = offset[1]; in gst_dfb_buffer_pool_alloc_buffer()
397 plane_size[1] = plane_size[2] = plane_size[0] / 4; in gst_dfb_buffer_pool_alloc_buffer()
398 max_size = plane_size[0] * 3 / 2; in gst_dfb_buffer_pool_alloc_buffer()
405 plane_size[0] = offset[1]; in gst_dfb_buffer_pool_alloc_buffer()
406 plane_size[1] = pitch * meta->height / 2; in gst_dfb_buffer_pool_alloc_buffer()
407 max_size = plane_size[0] * 3 / 2; in gst_dfb_buffer_pool_alloc_buffer()
412 plane_size[0] = max_size = pitch * meta->height; in gst_dfb_buffer_pool_alloc_buffer()
419 gst_memory_new_wrapped (0, data, max_size, offset[i], plane_size[i], in gst_dfb_buffer_pool_alloc_buffer()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglutils.c618 gsize plane_size; in gst_gl_get_plane_data_size() local
630 plane_size = GST_VIDEO_INFO_PLANE_STRIDE (info, plane) * padded_height; in gst_gl_get_plane_data_size()
632 return plane_size; in gst_gl_get_plane_data_size()
Dgstglupload.c695 guint plane_size; in _dma_buf_upload_accept() local
700 plane_size = gst_gl_get_plane_data_size (in_info, NULL, i); in _dma_buf_upload_accept()
702 if (!gst_buffer_find_memory (buffer, in_info->offset[i], plane_size, in _dma_buf_upload_accept()
/third_party/gstreamer/gstplugins_bad/sys/va/
Dgstvabasetransform.c670 guint plane_size; in _try_import_dmabuf_unlocked() local
675 plane_size = _get_plane_data_size (&in_info, i); in _try_import_dmabuf_unlocked()
677 if (!gst_buffer_find_memory (inbuf, in_info.offset[i], plane_size, in _try_import_dmabuf_unlocked()
/third_party/ffmpeg/libswresample/tests/
Dswresample.c132 int plane_size= av_get_bytes_per_sample(format&0xFF)*samples; in setup_array() local
135 out[i]= in + i*plane_size; in setup_array()
/third_party/gstreamer/gstplugins_bad/ext/vulkan/
Dvkupload.c306 gsize plane_size; in _raw_to_buffer_perform() local
319 plane_size = in _raw_to_buffer_perform()
322 g_assert (plane_size < map_info.size); in _raw_to_buffer_perform()
323 memcpy (map_info.data, v_frame.data[i], plane_size); in _raw_to_buffer_perform()
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dgstv4l2object.c4792 gsize plane_size[GST_VIDEO_MAX_PLANES]; in gst_v4l2_object_match_buffer_layout_from_struct() local
4817 if (!gst_video_info_align_full (&info, &align, plane_size)) { in gst_v4l2_object_match_buffer_layout_from_struct()
4834 GST_VIDEO_INFO_PLANE_HEIGHT (&info, 0, plane_size)); in gst_v4l2_object_match_buffer_layout_from_struct()
/third_party/gstreamer/gstplugins_base/
DChangeLog11224 Ideally we'd add a plane_size field to GstVideoInfo but the remaining