|
112 | 112 |
|
113 | 113 | /* Formats definition */ |
114 | 114 | #define TIOVX_PYRAMID_SUPPORTED_FORMATS "{NV12, GRAY8, GRAY16_LE}" |
115 | | -#define TIOVX_PYRAMID_SUPPORTED_WIDTH "[1 , 1920]" |
116 | | -#define TIOVX_PYRAMID_SUPPORTED_HEIGHT "[1 , 1088]" |
| 115 | +#define TIOVX_PYRAMID_SUPPORTED_WIDTH "[1 , 2592]" |
| 116 | +#define TIOVX_PYRAMID_SUPPORTED_HEIGHT "[1 , 1952]" |
117 | 117 | #define TIOVX_PYRAMID_SUPPORTED_LEVELS "[1 , 8]" |
118 | 118 | #define TIOVX_PYRAMID_SUPPORTED_SCALE "[0.25 , 1.0]" |
119 | 119 | #define TIOVX_PYRAMID_SUPPORTED_CHANNELS "[1 , 16]" |
@@ -418,13 +418,25 @@ gst_tiovx_pyramid_transform_caps (GstBaseTransform * |
418 | 418 | format_name = g_value_get_string (value); |
419 | 419 | format = gst_video_format_from_string (format_name); |
420 | 420 | if ((GST_VIDEO_FORMAT_NV12 == format && GST_PAD_SINK == direction) || |
421 | | - (GST_VIDEO_FORMAT_GRAY8 == format && GST_PAD_SRC == direction)) { |
| 421 | + (GST_VIDEO_FORMAT_GRAY8 == format && GST_PAD_SRC == direction) || |
| 422 | + (GST_VIDEO_FORMAT_GRAY16_LE == format && GST_PAD_SRC == direction)) { |
422 | 423 | GValue out_value = G_VALUE_INIT; |
423 | 424 | g_value_init (&out_value, G_TYPE_STRING); |
424 | 425 | g_value_set_string (&out_value, "NV12"); |
425 | 426 | gst_value_list_append_value (&output_formats, &out_value); |
426 | 427 | g_value_set_string (&out_value, "GRAY8"); |
427 | 428 | gst_value_list_append_value (&output_formats, &out_value); |
| 429 | + g_value_set_string (&out_value, "GRAY16_LE"); |
| 430 | + gst_value_list_append_value (&output_formats, &out_value); |
| 431 | + g_value_unset (&out_value); |
| 432 | + } else if ((GST_VIDEO_FORMAT_GRAY8 == format && GST_PAD_SINK == direction) |
| 433 | + || (GST_VIDEO_FORMAT_GRAY16_LE == format && GST_PAD_SINK == direction)) { |
| 434 | + GValue out_value = G_VALUE_INIT; |
| 435 | + g_value_init (&out_value, G_TYPE_STRING); |
| 436 | + g_value_set_string (&out_value, "GRAY8"); |
| 437 | + gst_value_list_append_value (&output_formats, &out_value); |
| 438 | + g_value_set_string (&out_value, "GRAY16_LE"); |
| 439 | + gst_value_list_append_value (&output_formats, &out_value); |
428 | 440 | g_value_unset (&out_value); |
429 | 441 | } else { |
430 | 442 | gst_value_list_append_value (&output_formats, value); |
@@ -526,9 +538,9 @@ gst_tiovx_pyramid_fixate_caps (GstBaseTransform * base, |
526 | 538 | } |
527 | 539 |
|
528 | 540 | static void |
529 | | -gst_tiovx_pyramid_set_max_levels (GstTIOVXPyramid * self, const GValue * vwidth, |
530 | | - const GValue * vheight, const GValue * vscale, const GValue * vout_formats, |
531 | | - GValue * vlevels) |
| 541 | +gst_tiovx_pyramid_set_max_levels (GstTIOVXPyramid * self, |
| 542 | + const GValue * vwidth, const GValue * vheight, const GValue * vscale, |
| 543 | + const GValue * vout_formats, GValue * vlevels) |
532 | 544 | { |
533 | 545 | guint i = 0; |
534 | 546 | gdouble max_scale = 0; |
@@ -699,8 +711,8 @@ gst_tiovx_pyramid_deinit_module (GstTIOVXSiso * trans, vx_context context) |
699 | 711 |
|
700 | 712 | static gboolean |
701 | 713 | gst_tiovx_pyramid_get_node_info (GstTIOVXSiso * trans, |
702 | | - vx_object_array * input, vx_object_array * output, vx_reference * input_ref, |
703 | | - vx_reference * output_ref, vx_node * node, |
| 714 | + vx_object_array * input, vx_object_array * output, |
| 715 | + vx_reference * input_ref, vx_reference * output_ref, vx_node * node, |
704 | 716 | guint * input_param_index, guint * output_param_index) |
705 | 717 | { |
706 | 718 | GstTIOVXPyramid *self = NULL; |
|
0 commit comments