Jetson Linux API Reference

39.2 Release
nvbufsurface_nvscibuf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
23 #ifndef _NVBUFSURFACE_NVSCIBUF_H_
24 #define _NVBUFSURFACE_NVSCIBUF_H_
25 
26 #include "nvbufsurface.h"
27 #include "nvscibuf.h"
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
39 #define NVMM_STRUCTURE_PADDING 4
40 
41 typedef struct NvmmImageParams {
43  uint32_t gpuId;
45  uint32_t width;
47  uint32_t height;
59 
69  NvSciBufObj bufObj,
70  NvBufSurface **nvbuf_surf);
71 
81  NvmmImageParams *imgParams,
82  NvSciBufAttrList attrList);
83 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif
91 
NvmmImageParams::displayscanformat
NvBufSurfaceDisplayScanFormat displayscanformat
Holds the display scan format.
Definition: nvbufsurface_nvscibuf.h:53
NvmmImageParams::height
uint32_t height
Holds the height of the buffer.
Definition: nvbufsurface_nvscibuf.h:47
NvmmImageParams::width
uint32_t width
Holds the width of the buffer.
Definition: nvbufsurface_nvscibuf.h:45
NvmmImageParams::gpuId
uint32_t gpuId
Holds the GPU ID.
Definition: nvbufsurface_nvscibuf.h:43
NvmmImageFillNvSciBufAttrList
int NvmmImageFillNvSciBufAttrList(NvmmImageParams *imgParams, NvSciBufAttrList attrList)
Fill NvSciBufAttrList with the attributes of the NvSciBuf object.
NvBufSurfaceDisplayScanFormat
NvBufSurfaceDisplayScanFormat
Defines display scan formats for NvBufSurface video planes.
Definition: nvbufsurface.h:375
NvBufSurface
Holds information about batched buffers.
Definition: nvbufsurface.h:597
NvmmImageParams::_reserved
void * _reserved[NVMM_STRUCTURE_PADDING]
Holds the reserved space for future use.
Definition: nvbufsurface_nvscibuf.h:57
NvmmNvSciBufToNvBufSurface
int NvmmNvSciBufToNvBufSurface(NvSciBufObj bufObj, NvBufSurface **nvbuf_surf)
Convert NvSciBuf to NvBufSurface.
NvmmImageParams::colorFormat
NvBufSurfaceColorFormat colorFormat
Holds the color format of the buffer.
Definition: nvbufsurface_nvscibuf.h:49
NvmmImageParams
Holds image parameters for filling an NvSciBuf attribute list.
Definition: nvbufsurface_nvscibuf.h:41
NvBufSurfaceLayout
NvBufSurfaceLayout
Specifies layout formats for NvBufSurface video planes.
Definition: nvbufsurface.h:339
NvmmImageParams
struct NvmmImageParams NvmmImageParams
Holds image parameters for filling an NvSciBuf attribute list.
NvmmImageParams::isProtected
bool isProtected
Holds the vpr flag.
Definition: nvbufsurface_nvscibuf.h:55
NvmmImageParams::layout
NvBufSurfaceLayout layout
Holds the surface layout.
Definition: nvbufsurface_nvscibuf.h:51
nvbufsurface.h
NVMM_STRUCTURE_PADDING
#define NVMM_STRUCTURE_PADDING
Defines the number of reserved pointer slots in NvmmImageParams.
Definition: nvbufsurface_nvscibuf.h:39
NvBufSurfaceColorFormat
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.
Definition: nvbufsurface.h:105