NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_image_pyramid.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 - 2019, NVIDIA CORPORATION. All rights reserved. All
3  * information contained herein is proprietary and confidential to NVIDIA
4  * Corporation. Any use, reproduction, or disclosure without the written
5  * permission of NVIDIA Corporation is prohibited.
6  */
7 
16 #ifndef _NVMEDIA_IMAGE_PYRAMID_H
17 #define _NVMEDIA_IMAGE_PYRAMID_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "nvmedia_core.h"
24 #include "nvmedia_image.h"
25 #include "nvmedia_surface.h"
26 
46 #define NVMEDIA_IMAGE_PYRAMID_VERSION_MAJOR 1
47 
48 #define NVMEDIA_IMAGE_PYRAMID_VERSION_MINOR 1
49 
51 #define MAX_PYRAMID_LEVELS (10)
52 
57 
76  NvMediaDevice *device,
77  NvMediaSurfaceType type,
78  NvMediaSurfAllocAttr *attrs,
79  uint32_t numLevels,
80  float scale,
81  uint32_t numAttrs,
82  uint32_t flags
83 );
84 
89 void
91  NvMediaImagePyramid *pyramid
92 );
93 
114  NvMediaImagePyramid *pyramid,
115  uint32_t lockAccessType,
116  NvMediaImageSurfaceMap *surfaceMap
117 );
118 
126 void
128  NvMediaImagePyramid *pyramid
129 );
130 
149  NvMediaImagePyramid *pyramid,
150  uint32_t millisecondWait,
151  NvMediaTaskStatus *status
152 );
153 
160 NvMediaImage *
162  NvMediaImagePyramid * pyramid,
163  uint32_t level
164 );
165 
171 uint32_t
173  NvMediaImagePyramid * pyramid
174 );
175 
181 float
183  NvMediaImagePyramid * pyramid
184 );
185 
186 /*
187  * \defgroup history_nvmedia_image_pyramid History
188  * Provides change history for the NvMedia ImagePyramid API.
189  *
190  * \section history_nvmedia_image_pyramid Version History
191  *
192  * <b> Version 1.0 </b> December 4, 2017
193  * - Initial Release.
194  *
195  * <b> Version 1.1 </b> February 6, 2019
196  * - Added required header includes nvmedia_core.h and nvmedia_surface.h
197  *
198  */
199 
203 #ifdef __cplusplus
204 }; /* extern "C" */
205 #endif
206 
207 #endif /* _NVMEDIA_IMAGE_PYRAMID_H */
Holds a handle representing image objects.
Definition: nvmedia_image.h:69
#define NvMediaSurfaceType
Defines the set of NvMedia surface types.
NVIDIA Media Interface: Surface Handling
NVIDIA Media Interface: Image Processing
uint32_t NvMediaImagePyramidGetNumLevels(NvMediaImagePyramid *pyramid)
Returns the number of levels in a pyramid.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
Definition: nvmedia_core.h:337
void NvMediaImagePyramidDestroy(NvMediaImagePyramid *pyramid)
Destroys an image pyramid created by NvMediaImagePyramidCreate().
Holds status of latest operation for NvMedia managed data structure.
Definition: nvmedia_core.h:209
NVIDIA Media Interface: Core
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:169
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t flags
Holds NvMedia Surface allocation attributes.
void NvMediaImagePyramidUnlock(NvMediaImagePyramid *pyramid)
Unlocks an image pyramid.
NvMediaStatus NvMediaImagePyramidLock(NvMediaImagePyramid *pyramid, uint32_t lockAccessType, NvMediaImageSurfaceMap *surfaceMap)
Locks an image pyramid and returns the associated mapped pointers to the image pyramid surface data...
Holds an image surface map descriptor used by NvMediaImageLock().
struct NvMediaImagePyramid NvMediaImagePyramid
A handle representing an image pyramid object.
NvMediaImage * NvMediaImagePyramidGetImageForLevel(NvMediaImagePyramid *pyramid, uint32_t level)
Gets a pointer to the image for a level.
NvMediaStatus NvMediaImagePyramidGetStatus(NvMediaImagePyramid *pyramid, uint32_t millisecondWait, NvMediaTaskStatus *status)
Gets the status of the current or most recent operation for the image pyramid; optionally waits for t...
NvMediaImagePyramid * NvMediaImagePyramidCreate(NvMediaDevice *device, NvMediaSurfaceType type, NvMediaSurfAllocAttr *attrs, uint32_t numLevels, float scale, uint32_t numAttrs, uint32_t flags)
Allocates an image pyramid.
float NvMediaImagePyramidGetScale(NvMediaImagePyramid *pyramid)
Returns the scale factor of a pyramid.