Files
gst-nvcompositor/gst-nvcompositor/gstnvcompositorpad.h
svcmobrel-release 292fc9c9bb Updating prebuilts and/or headers
bbc47b37b941764004a38a0b5572b85beb6c46f0 - gst-nvcompositor/gstnvcompositor.c
c3f21bd4363243ad1bca5b1d434b5896402eec14 - gst-nvcompositor/nvbuf_utils.h
0fc79d8e24b26b0867f2ee0540cadcac55607935 - gst-nvcompositor/gstnvcompositor.h
65c3786caf64e917daf6c4ee3ecad96fb6222e21 - gst-nvcompositor/Makefile
a86cdef2fe7c358debaeb17cf3ac6bca48083915 - gst-nvcompositor/gstnvcompositorpad.h
56e1e36e7b4fc38bc3ca3707d265fe22541686b2 - gst-nvcompositor/3rdpartyheaders.tbz2

Change-Id: I5ee1a891cded2eb7726323a47c97468a9947701e
2023-01-24 11:20:56 -08:00

82 lines
2.9 KiB
C

/*
* Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __GST_NVCOMPOSITOR_PAD_H__
#define __GST_NVCOMPOSITOR_PAD_H__
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideoaggregator.h>
G_BEGIN_DECLS
#define GST_TYPE_NVCOMPOSITOR_PAD (gst_nvcompositor_pad_get_type())
#define GST_NVCOMPOSITOR_PAD(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_NVCOMPOSITOR_PAD, GstNvCompositorPad))
#define GST_NVCOMPOSITOR_PAD_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_NVCOMPOSITOR_PAD, GstNvCompositorPadClass))
#define GST_IS_NVCOMPOSITOR_PAD(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_NVCOMPOSITOR_PAD))
#define GST_IS_NVCOMPOSITOR_PAD_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NVCOMPOSITOR_PAD))
typedef struct _GstNvCompositorPad GstNvCompositorPad;
typedef struct _GstNvCompositorPadClass GstNvCompositorPadClass;
/**
* GstNvCompositorPad:
*/
struct _GstNvCompositorPad
{
GstVideoAggregatorConvertPad parent;
/* nvcompositor pad properties */
gint xpos;
gint ypos;
gint width;
gint height;
gdouble alpha;
gint interpolation_method;
gint input_width;
gint input_height;
GstVideoInfo conversion_info;
NvBufSurfaceColorFormat comppad_pix_fmt;
};
struct _GstNvCompositorPadClass
{
GstVideoAggregatorConvertPadClass parent_class;
};
GType gst_nvcompositor_pad_get_type (void);
G_END_DECLS
#endif /* __GST_NVCOMPOSITOR_PAD_H__ */