/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtphdrext-colorspace.c | 54 GstVideoColorimetry colorimetry; member 117 if (self->colorimetry.matrix == GST_VIDEO_COLOR_MATRIX_UNKNOWN && in gst_rtp_header_extension_colorspace_write() 118 self->colorimetry.primaries == GST_VIDEO_COLOR_PRIMARIES_UNKNOWN && in gst_rtp_header_extension_colorspace_write() 119 self->colorimetry.range == GST_VIDEO_COLOR_RANGE_UNKNOWN && in gst_rtp_header_extension_colorspace_write() 120 self->colorimetry.transfer == GST_VIDEO_TRANSFER_UNKNOWN) { in gst_rtp_header_extension_colorspace_write() 134 *ptr++ = gst_video_color_primaries_to_iso (self->colorimetry.primaries); in gst_rtp_header_extension_colorspace_write() 135 *ptr++ = gst_video_transfer_function_to_iso (self->colorimetry.transfer); in gst_rtp_header_extension_colorspace_write() 136 *ptr++ = gst_video_color_matrix_to_iso (self->colorimetry.matrix); in gst_rtp_header_extension_colorspace_write() 138 switch (self->colorimetry.range) { in gst_rtp_header_extension_colorspace_write() 199 parse_colorspace (GstByteReader * reader, GstVideoColorimetry * colorimetry, in parse_colorspace() argument [all …]
|
D | gstrtpvrawpay.c | 154 if (gst_video_colorimetry_matches (&info.colorimetry, in gst_rtp_vraw_pay_setcaps() 157 } else if (gst_video_colorimetry_matches (&info.colorimetry, in gst_rtp_vraw_pay_setcaps() 160 } else if (gst_video_colorimetry_matches (&info.colorimetry, in gst_rtp_vraw_pay_setcaps()
|
/third_party/gstreamer/gstplugins_bad/sys/mediafoundation/ |
D | gstmfutils.cpp | 135 GstVideoColorimetry colorimetry; in gst_mf_media_type_to_video_caps() local 191 colorimetry.range = GST_VIDEO_COLOR_RANGE_UNKNOWN; in gst_mf_media_type_to_video_caps() 192 colorimetry.matrix = GST_VIDEO_COLOR_MATRIX_UNKNOWN; in gst_mf_media_type_to_video_caps() 193 colorimetry.transfer = GST_VIDEO_TRANSFER_UNKNOWN; in gst_mf_media_type_to_video_caps() 194 colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN; in gst_mf_media_type_to_video_caps() 200 colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255; in gst_mf_media_type_to_video_caps() 203 colorimetry.range = GST_VIDEO_COLOR_RANGE_16_235; in gst_mf_media_type_to_video_caps() 214 colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT709; in gst_mf_media_type_to_video_caps() 217 colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT470M; in gst_mf_media_type_to_video_caps() 220 colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT470BG; in gst_mf_media_type_to_video_caps() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/va/ |
D | gstvafilter.c | 1210 _gst_video_colorimetry_to_va (const GstVideoColorimetry * const colorimetry) in _gst_video_colorimetry_to_va() argument 1212 if (!colorimetry in _gst_video_colorimetry_to_va() 1213 || colorimetry->primaries == GST_VIDEO_COLOR_PRIMARIES_UNKNOWN) in _gst_video_colorimetry_to_va() 1216 if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_BT709)) in _gst_video_colorimetry_to_va() 1221 if (gst_video_colorimetry_matches (colorimetry, in _gst_video_colorimetry_to_va() 1223 gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_BT2020)) in _gst_video_colorimetry_to_va() 1226 if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_BT601)) in _gst_video_colorimetry_to_va() 1229 if (gst_video_colorimetry_matches (colorimetry, in _gst_video_colorimetry_to_va() 1233 if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_SRGB)) in _gst_video_colorimetry_to_va() 1244 GstVideoColorimetry colorimetry = GST_VIDEO_INFO_COLORIMETRY (info); in _config_color_properties() local [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | rtphdrext-colorspace.c | 66 GstVideoColorimetry colorimetry; in GST_START_TEST() local 113 gst_video_colorimetry_from_string (&colorimetry, str); in GST_START_TEST() 114 fail_unless (gst_video_colorimetry_is_equal (&colorimetry, in GST_START_TEST() 154 GstVideoColorimetry colorimetry; in GST_START_TEST() local 207 gst_video_colorimetry_from_string (&colorimetry, str); in GST_START_TEST() 208 fail_unless (gst_video_colorimetry_is_equal (&colorimetry, in GST_START_TEST()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | video-color.c | 66 static const ColorimetryInfo colorimetry[] = { variable 79 #define DEFAULT_UNKNOWN (G_N_ELEMENTS(colorimetry)-1) 86 for (i = 0; colorimetry[i].name; i++) { in gst_video_get_colorimetry() 87 if (g_str_equal (colorimetry[i].name, s)) in gst_video_get_colorimetry() 88 return &colorimetry[i]; in gst_video_get_colorimetry() 100 #define IS_UNKNOWN(ci) (IS_EQUAL (&colorimetry[DEFAULT_UNKNOWN], ci)) 120 *cinfo = colorimetry[DEFAULT_UNKNOWN].color; in gst_video_colorimetry_from_string() 153 for (i = 0; colorimetry[i].name; i++) { in gst_video_colorimetry_to_string() 154 if (IS_EQUAL (&colorimetry[i], cinfo)) { in gst_video_colorimetry_to_string() 155 return g_strdup (colorimetry[i].name); in gst_video_colorimetry_to_string()
|
D | video-info.c | 170 info->colorimetry = default_color[DEFAULT_YUV_HD]; in set_default_colorimetry() 173 info->colorimetry = default_color[DEFAULT_YUV_SD]; in set_default_colorimetry() 176 info->colorimetry = default_color[DEFAULT_GRAY]; in set_default_colorimetry() 178 info->colorimetry = default_color[DEFAULT_RGB]; in set_default_colorimetry() 180 info->colorimetry = default_color[DEFAULT_UNKNOWN]; in set_default_colorimetry() 190 info->colorimetry.matrix == GST_VIDEO_COLOR_MATRIX_RGB) { in validate_colorimetry() 198 info->colorimetry.matrix == GST_VIDEO_COLOR_MATRIX_UNKNOWN) { in validate_colorimetry() 511 if (!gst_video_colorimetry_from_string (&info->colorimetry, s)) { in gst_video_info_from_caps() 520 info->colorimetry.matrix != GST_VIDEO_COLOR_MATRIX_RGB) { in gst_video_info_from_caps() 522 info->colorimetry.matrix); in gst_video_info_from_caps() [all …]
|
D | video-info.h | 324 GstVideoColorimetry colorimetry; member 384 #define GST_VIDEO_INFO_COLORIMETRY(i) ((i)->colorimetry)
|
/third_party/gstreamer/gstplugins_base/gst/videoconvert/ |
D | gstvideoconvert.c | 416 out_info.colorimetry.primaries = in_info.colorimetry.primaries; in transfer_colorimetry_from_input() 417 out_info.colorimetry.transfer = in_info.colorimetry.transfer; in transfer_colorimetry_from_input() 420 gst_video_colorimetry_to_string (&out_info.colorimetry); in transfer_colorimetry_from_input() 571 tmp_info.colorimetry.transfer = out_info->colorimetry.transfer; in gst_video_convert_set_info() 574 colorimetry.transfer, in_info->finfo->bits, in gst_video_convert_set_info() 575 out_info->colorimetry.transfer, out_info->finfo->bits)) { in gst_video_convert_set_info()
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11window.cpp | 620 window->render_info.colorimetry.primaries = in gst_d3d11_window_prepare_default() 621 window->info.colorimetry.primaries; in gst_d3d11_window_prepare_default() 622 window->render_info.colorimetry.transfer = window->info.colorimetry.transfer; in gst_d3d11_window_prepare_default() 626 window->render_info.colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255; in gst_d3d11_window_prepare_default() 653 window->render_info.colorimetry.primaries = in gst_d3d11_window_prepare_default() 655 window->render_info.colorimetry.transfer = in gst_d3d11_window_prepare_default() 657 window->render_info.colorimetry.range = chosen_colorspace->range; in gst_d3d11_window_prepare_default() 658 window->render_info.colorimetry.matrix = chosen_colorspace->matrix; in gst_d3d11_window_prepare_default() 669 window->render_info.colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT709; in gst_d3d11_window_prepare_default() 670 window->render_info.colorimetry.transfer = GST_VIDEO_TRANSFER_BT709; in gst_d3d11_window_prepare_default() [all …]
|
D | gstd3d11window_dummy.cpp | 111 window->render_info.colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT709; in gst_d3d11_window_dummy_prepare() 112 window->render_info.colorimetry.transfer = GST_VIDEO_TRANSFER_BT709; in gst_d3d11_window_dummy_prepare() 113 window->render_info.colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255; in gst_d3d11_window_dummy_prepare()
|
/third_party/gstreamer/gstplugins_bad/ext/vulkan/ |
D | vkcolorconvert.c | 289 gst_video_color_range_offsets (info->colorimetry.range, uinfo, offset, in convert_to_RGB() 306 if (gst_video_color_matrix_get_Kr_Kb (info->colorimetry.matrix, &Kr, &Kb)) in convert_to_RGB() 353 if (gst_video_color_matrix_get_Kr_Kb (info->colorimetry.matrix, &Kr, &Kb)) in convert_to_YUV() 367 gst_video_color_range_offsets (info->colorimetry.range, uinfo, offset, in convert_to_YUV() 433 conv->in_info.colorimetry.matrix == conv->out_info.colorimetry.matrix; 435 conv->in_info.colorimetry.primaries == 436 conv->out_info.colorimetry.primaries; 438 GST_DEBUG ("matrix %d -> %d (%d)", conv->in_info.colorimetry.matrix, 439 conv->out_info.colorimetry.matrix, same_matrix); 440 GST_DEBUG ("primaries %d -> %d (%d)", conv->in_info.colorimetry.primaries, [all …]
|
/third_party/gstreamer/gstplugins_good/gst/matroska/ |
D | matroska-ids.c | 69 video_context->colorimetry.range = GST_VIDEO_COLOR_RANGE_UNKNOWN; in gst_matroska_track_init_video_context() 70 video_context->colorimetry.matrix = GST_VIDEO_COLOR_MATRIX_UNKNOWN; in gst_matroska_track_init_video_context() 71 video_context->colorimetry.transfer = GST_VIDEO_TRANSFER_UNKNOWN; in gst_matroska_track_init_video_context() 72 video_context->colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN; in gst_matroska_track_init_video_context()
|
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/ |
D | gstav1parse.c | 110 gchar *colorimetry; member 304 g_clear_pointer (&self->colorimetry, g_free); in gst_av1_parse_reset() 681 if (self->colorimetry == NULL || in gst_av1_parse_update_src_caps() 682 (g_strcmp0 (self->colorimetry, GST_VIDEO_COLORIMETRY_SRGB) != 0)) { in gst_av1_parse_update_src_caps() 707 if (self->colorimetry && (!s || !gst_structure_has_field (s, "colorimetry"))) in gst_av1_parse_update_src_caps() 709 "colorimetry", G_TYPE_STRING, self->colorimetry, NULL); in gst_av1_parse_update_src_caps() 1180 gchar *colorimetry = NULL; in gst_av1_parse_handle_sequence_obu() local 1194 colorimetry = gst_video_colorimetry_to_string (&cinfo); in gst_av1_parse_handle_sequence_obu() 1196 if (g_strcmp0 (colorimetry, self->colorimetry) != 0) { in gst_av1_parse_handle_sequence_obu() 1197 g_free (self->colorimetry); in gst_av1_parse_handle_sequence_obu() [all …]
|
D | gstvp9parse.c | 534 gchar *colorimetry = NULL; in gst_vp9_parse_update_src_caps() local 631 colorimetry = gst_video_colorimetry_to_string (&cinfo); in gst_vp9_parse_update_src_caps() 673 if (colorimetry && (!s || !gst_structure_has_field (s, "colorimetry"))) { in gst_vp9_parse_update_src_caps() 675 "colorimetry", G_TYPE_STRING, colorimetry, NULL); in gst_vp9_parse_update_src_caps() 678 g_free (colorimetry); in gst_vp9_parse_update_src_caps()
|
/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2object.c | 2344 GValue colorimetry = G_VALUE_INIT; in gst_v4l2_object_fill_colorimetry_list() local 2349 g_value_init (&colorimetry, G_TYPE_STRING); in gst_v4l2_object_fill_colorimetry_list() 2350 g_value_take_string (&colorimetry, gst_video_colorimetry_to_string (cinfo)); in gst_v4l2_object_fill_colorimetry_list() 2358 if (gst_value_compare (&colorimetry, tmp) == GST_VALUE_EQUAL) { in gst_v4l2_object_fill_colorimetry_list() 2365 gst_value_list_append_and_take_value (list, &colorimetry); in gst_v4l2_object_fill_colorimetry_list() 2367 g_value_unset (&colorimetry); in gst_v4l2_object_fill_colorimetry_list() 3436 if (info.colorimetry.primaries == GST_VIDEO_COLOR_PRIMARIES_UNKNOWN) in gst_v4l2_video_colorimetry_matches() 3437 info.colorimetry.primaries = cinfo->primaries; in gst_v4l2_video_colorimetry_matches() 3438 if (info.colorimetry.range == GST_VIDEO_COLOR_RANGE_UNKNOWN) in gst_v4l2_video_colorimetry_matches() 3439 info.colorimetry.range = cinfo->range; in gst_v4l2_video_colorimetry_matches() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstnvdec.c | 446 GstVideoColorimetry colorimetry = { 0, }; in parser_sequence_callback() local 449 colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255; in parser_sequence_callback() 451 colorimetry.range = GST_VIDEO_COLOR_RANGE_16_235; in parser_sequence_callback() 453 colorimetry.primaries = in parser_sequence_callback() 457 colorimetry.transfer = in parser_sequence_callback() 461 colorimetry.matrix = in parser_sequence_callback() 469 if (colorimetry.primaries != GST_VIDEO_COLOR_PRIMARIES_UNKNOWN || in parser_sequence_callback() 470 colorimetry.transfer != GST_VIDEO_TRANSFER_UNKNOWN || in parser_sequence_callback() 471 colorimetry.matrix != GST_VIDEO_COLOR_MATRIX_UNKNOWN) { in parser_sequence_callback() 474 out_info->colorimetry = colorimetry; in parser_sequence_callback() [all …]
|
D | gstnvh264enc.c | 527 if (info->colorimetry.range == GST_VIDEO_COLOR_RANGE_0_255) { in gst_nv_h264_enc_set_encoder_config() 534 vui->colourMatrix = gst_video_color_matrix_to_iso (info->colorimetry.matrix); in gst_nv_h264_enc_set_encoder_config() 536 gst_video_color_primaries_to_iso (info->colorimetry.primaries); in gst_nv_h264_enc_set_encoder_config() 538 gst_video_transfer_function_to_iso (info->colorimetry.transfer); in gst_nv_h264_enc_set_encoder_config()
|
D | cuda-converter.c | 1622 gst_video_color_range_offsets (info->colorimetry.range, info->finfo, offset, in compute_matrix_to_RGB() 1631 if (gst_video_color_matrix_get_Kr_Kb (info->colorimetry.matrix, &Kr, &Kb)) in compute_matrix_to_RGB() 1646 if (gst_video_color_matrix_get_Kr_Kb (info->colorimetry.matrix, &Kr, &Kb)) in compute_matrix_to_YUV() 1651 gst_video_color_range_offsets (info->colorimetry.range, info->finfo, offset, in compute_matrix_to_YUV() 1672 same_matrix = in_info->colorimetry.matrix == out_info->colorimetry.matrix; in cuda_converter_get_matrix() 1674 GST_DEBUG ("matrix %d -> %d (%d)", in_info->colorimetry.matrix, in cuda_converter_get_matrix() 1675 out_info->colorimetry.matrix, same_matrix); in cuda_converter_get_matrix()
|
D | gstnvh265enc.c | 591 if (info->colorimetry.range == GST_VIDEO_COLOR_RANGE_0_255) { in gst_nv_h265_enc_set_encoder_config() 598 vui->colourMatrix = gst_video_color_matrix_to_iso (info->colorimetry.matrix); in gst_nv_h265_enc_set_encoder_config() 600 gst_video_color_primaries_to_iso (info->colorimetry.primaries); in gst_nv_h265_enc_set_encoder_config() 602 gst_video_transfer_function_to_iso (info->colorimetry.transfer); in gst_nv_h265_enc_set_encoder_config()
|
/third_party/gstreamer/gstplugins_base/ext/theora/ |
D | gsttheoradec.c | 511 state->info.colorimetry.range = GST_VIDEO_COLOR_RANGE_16_235; in theora_handle_type_packet() 512 state->info.colorimetry.matrix = GST_VIDEO_COLOR_MATRIX_BT601; in theora_handle_type_packet() 513 state->info.colorimetry.transfer = GST_VIDEO_TRANSFER_BT709; in theora_handle_type_packet() 516 state->info.colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT470M; in theora_handle_type_packet() 519 state->info.colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_BT470BG; in theora_handle_type_packet() 522 state->info.colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN; in theora_handle_type_packet()
|
/third_party/gstreamer/gstplugins_base/gst/rawparse/ |
D | gstrawvideoparse.h | 55 GstVideoColorimetry colorimetry; member
|
/third_party/gstreamer/gstplugins_base/tests/validate/videorate/rate_0_5_with_decoder/flow-expectations/ |
D | log-videorate-sink-expected | 2 event caps: video/x-raw, chroma-site=(string)jpeg, colorimetry=(string)2:4:5:0, format=(string)I420…
|
/third_party/gstreamer/gstplugins_base/tests/validate/videorate/rate_2_0_with_decoder/flow-expectations/ |
D | log-videorate-sink-expected | 2 event caps: video/x-raw, chroma-site=(string)jpeg, colorimetry=(string)2:4:5:0, format=(string)I420…
|
/third_party/gstreamer/gst_libav/ext/libav/ |
D | gstavviddec.c | 1389 || in_info->colorimetry.primaries == GST_VIDEO_COLOR_PRIMARIES_UNKNOWN) { in gst_ffmpegviddec_negotiate() 1390 out_info->colorimetry.primaries = in gst_ffmpegviddec_negotiate() 1395 || in_info->colorimetry.transfer == GST_VIDEO_TRANSFER_UNKNOWN) { in gst_ffmpegviddec_negotiate() 1396 out_info->colorimetry.transfer = in gst_ffmpegviddec_negotiate() 1401 || in_info->colorimetry.matrix == GST_VIDEO_COLOR_MATRIX_UNKNOWN) { in gst_ffmpegviddec_negotiate() 1402 out_info->colorimetry.matrix = in gst_ffmpegviddec_negotiate() 1407 || in_info->colorimetry.range == GST_VIDEO_COLOR_RANGE_UNKNOWN) { in gst_ffmpegviddec_negotiate() 1409 out_info->colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255; in gst_ffmpegviddec_negotiate() 1411 out_info->colorimetry.range = GST_VIDEO_COLOR_RANGE_16_235; in gst_ffmpegviddec_negotiate() 1413 out_info->colorimetry.range = GST_VIDEO_COLOR_RANGE_UNKNOWN; in gst_ffmpegviddec_negotiate()
|