Doxygen Book
gsttensor_converter_media_info_video.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
16 #ifndef __GST_TENSOR_CONVERTER_MEDIA_INFO_VIDEO_H__
17 #define __GST_TENSOR_CONVERTER_MEDIA_INFO_VIDEO_H__
18 
19 #ifdef NO_VIDEO
20 #error This header is not supported if NO_VIDEO is defined
21 #endif
22 
23 #include <gst/video/video-info.h>
24 
28 #if GST_CHECK_VERSION(1, 20, 0)
29 #define NNS_VIDEO_FORMAT "{ RGB, BGR, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, GRAY8, GRAY16_BE, GRAY16_LE, RGBP, BGRP }"
30 #else
31 #define NNS_VIDEO_FORMAT "{ RGB, BGR, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, GRAY8, GRAY16_BE, GRAY16_LE }"
32 #endif
33 
34 #define VIDEO_CAPS_STR \
35  GST_VIDEO_CAPS_MAKE (NNS_VIDEO_FORMAT) \
36  ", interlace-mode = (string) progressive"
37 
38 #define append_video_caps_template(caps) \
39  gst_caps_append (caps, gst_caps_from_string (VIDEO_CAPS_STR))
40 
41 #define is_video_supported(...) TRUE
42 #endif /* __GST_TENSOR_CONVERTER_MEDIA_INFO_VIDEO_H__ */