NVIDIA DeepStream SDK API Reference

9.2 Release
sources/gst-plugins/gst-nvvideoconvert/nvc_helper.h File Reference

Go to the source code of this file.

Functions

G_BEGIN_DECLS GST_DEBUG_CATEGORY_EXTERN (gst_nvvideoconvert_debug)
 
GstElement * find_peer_element (GstPad *pad, GstElement **caps_filter)
 find_peer_element: @pad: The pad to find the peer element for @caps_filter: Pointer to store a capsfilter element if found More...
 
gboolean get_format_from_peer_srcpad (GstPad *pad, gchar **format)
 get_format_from_peer_srcpad: @pad: The pad whose peer element's source pad format to check @format: Pointer to a string pointer that will be set to the format string if found More...
 
gboolean check_capsfilter_has_format_field (GstElement *capsfilter, gchar **format)
 check_capsfilter_has_format_field: @capsfilter: The capsfilter element to check @format: Pointer to a string pointer that will be set to the format string if found More...
 
GstCaps * remove_format_from_caps (GstBaseTransform *btrans, GstCaps *caps, const gchar *format_to_remove)
 remove_format_from_caps: @btrans: The GstBaseTransform element @caps: The caps to modify @format_to_remove: The format string to remove More...
 
gboolean is_format_bgra64_or_uyvp (const gchar *format)
 is_format_bgra64_or_uyvp: @format: The format string to check More...
 
gboolean is_format_bgra64 (const gchar *format)
 is_format_bgra64: @format: The format string to check More...
 
gchar * get_format_from_src_pad_capsfilter (GstBaseTransform *btrans)
 get_format_from_src_pad_caps: @btrans: The GstBaseTransform element More...
 
GstCaps * inspect_caps (GstBaseTransform *btrans, GstPadDirection direction, GstCaps *caps)
 inspect_caps: @btrans: The GstBaseTransform element @direction: The pad direction (sink or src) @caps: The caps to inspect More...
 

Function Documentation

◆ check_capsfilter_has_format_field()

gboolean check_capsfilter_has_format_field ( GstElement *  capsfilter,
gchar **  format 
)

check_capsfilter_has_format_field: @capsfilter: The capsfilter element to check @format: Pointer to a string pointer that will be set to the format string if found

Checks if the capsfilter has a format field specified and returns the format. The caller is responsible for freeing the returned format string with g_free().

Returns: TRUE if format field is found, FALSE otherwise

◆ find_peer_element()

GstElement* find_peer_element ( GstPad *  pad,
GstElement **  caps_filter 
)

find_peer_element: @pad: The pad to find the peer element for @caps_filter: Pointer to store a capsfilter element if found

Finds the peer element connected to the given pad, recursively looking through capsfilters.

Returns: The peer element if found, NULL otherwise

◆ get_format_from_peer_srcpad()

gboolean get_format_from_peer_srcpad ( GstPad *  pad,
gchar **  format 
)

get_format_from_peer_srcpad: @pad: The pad whose peer element's source pad format to check @format: Pointer to a string pointer that will be set to the format string if found

Gets the format from the source pad of the peer element connected to the given pad. The caller is responsible for freeing the returned format string with g_free().

Returns: TRUE if format is found, FALSE otherwise

◆ get_format_from_src_pad_capsfilter()

gchar* get_format_from_src_pad_capsfilter ( GstBaseTransform *  btrans)

get_format_from_src_pad_caps: @btrans: The GstBaseTransform element

Retrieves the format from the source pad capsfilter.

Returns: The format string if found, NULL otherwise

◆ GST_DEBUG_CATEGORY_EXTERN()

G_BEGIN_DECLS GST_DEBUG_CATEGORY_EXTERN ( gst_nvvideoconvert_debug  )

◆ inspect_caps()

GstCaps* inspect_caps ( GstBaseTransform *  btrans,
GstPadDirection  direction,
GstCaps *  caps 
)

inspect_caps: @btrans: The GstBaseTransform element @direction: The pad direction (sink or src) @caps: The caps to inspect

Inspects the caps and modifies them based on the presence of BGRA64_LE format.

Returns: Modified caps

◆ is_format_bgra64()

gboolean is_format_bgra64 ( const gchar *  format)

is_format_bgra64: @format: The format string to check

Checks if the format is BGRA64_LE.

Returns: TRUE if the format is BGRA64_LE, FALSE otherwise

◆ is_format_bgra64_or_uyvp()

gboolean is_format_bgra64_or_uyvp ( const gchar *  format)

is_format_bgra64_or_uyvp: @format: The format string to check

Checks if the format is either BGRA64_LE or UYVP.

Returns: TRUE if the format is BGRA64_LE or UYVP, FALSE otherwise

◆ remove_format_from_caps()

GstCaps* remove_format_from_caps ( GstBaseTransform *  btrans,
GstCaps *  caps,
const gchar *  format_to_remove 
)

remove_format_from_caps: @btrans: The GstBaseTransform element @caps: The caps to modify @format_to_remove: The format string to remove

Creates a new caps structure with the specified format removed.

Returns: A new caps structure with the format removed