|
NVIDIA DRIVE OS Linux SDK API Reference
|
5.2.6 Release For Test and Development only
|
Go to the documentation of this file.
102 #ifndef _NVSCRNCAPT_H
103 #define _NVSCRNCAPT_H
110 #define NVSCRNCAPT_VERSION_MAJOR 1
112 #define NVSCRNCAPT_VERSION_MINOR 0
115 #define NVSCRNCAPT_TRUE (0 == 0)
117 #define NVSCRNCAPT_FALSE (0 == 1)
120 #define NVSCRNCAPT_MAX_HEADS 4
122 #define NVSCRNCAPT_MAX_WINS 6
482 unsigned int y,
unsigned int stride,
unsigned int blockHeight);
int startX
Holds the X-coordinate of start position.
int numWins
Holds the number of windows assigned to this head.
NvScrncaptStatus NvScrncaptCleanup(NvScrncaptResult *result)
Cleans up associated data structures and releases exclusive hold on screen capture functionality.
@ NvScrncaptColorFormat_XB5G5R5
NvScrncaptBlend blendMode
Holds the blend mode.
@ NvScrncaptColorFormat_YUV444SP
@ NvScrncaptColorFormat_B4G4R4A4
@ NvScrncaptColorFormat_YCbCr420SP
@ NvScrncaptColorFormat_RGB_AUTO
@ NvScrncaptColorFormat_R5G5B5A
unsigned int alpha
Holds the global alpha value for window.
@ NVSCRNCAPT_STATUS_ERROR
Indicates a catch-all error, used when no other error code applies.
@ NvScrncaptBlend_Premult
@ NvScrncaptColorFormat_YCbCr444SP
unsigned int lengthV
Holds the V buffer length.
unsigned char * pV
Holds the V surface pointer.
@ NVSCRNCAPT_STATUS_BAD_PARAMETER
Indicates a bad parameter was passed.
@ NvScrncaptColorFormat_YCbCr422RA
unsigned int resolutionH
Holds the horizaontal display resolution.
@ NvScrncaptColorFormat_YUV422SP
NvScrncaptSurfaceMap surfaceMap
Holds the handle to the associated frame buffer surface map.
@ NvScrncaptSurfaceLayout_PitchLinear
@ NvScrncaptColorFormat_YVU444SP
@ NvScrncaptColorFormat_YCrCb420SP
@ NvScrncaptColorFormat_AR5G5B5
NvScrncaptAperture fbAperture
Holds the framebuffer aperture.
int height
Holds the height.
NvScrncaptStatus NvScrncaptInit(NvScrncaptResult **pResult)
Initializes data structures required for screen capture.
int width
Holds the width.
@ NvScrncaptColorFormat_YUV420P
@ NvScrncaptColorFormat_YUV422SPR
NvScrncaptBool invertV
Holds the vertical inversion.
NvScrncaptColorFormat pixelFormat
Holds the pixel color format.
@ NVSCRNCAPT_STATUS_TIMED_OUT
Indicates a operation timed out.
int numHeads
Holds the number of active heads.
NvScrncaptBool invertH
Holds the horizontal inversion.
@ NVSCRNCAPT_STATUS_OK
The operation completed successfully; no error.
NvScrncaptSurfaceLayout surfaceLayout
Holds the surface layout.
unsigned char * pU
Holds the U surface pointer.
NvScrncaptColorFormat
Defines the set of pixel color formats, which must be kept in sync with the kernel defines.
NvScrncaptBool enabled
Holds the a flag indicating whether this head is enabled.
#define NVSCRNCAPT_MAX_HEADS
Max # of Display Heads.
@ NvScrncaptColorFormat_B5G6R5
@ NVSCRNCAPT_STATUS_INVALID_SIZE
Indicates invalid size.
NvScrncaptStatus NvScrncaptCapture(NvScrncaptResult *result, unsigned int headMask)
Conducts screen capture on heads selected by input bitmask.
unsigned int lengthU
Holds the U buffer length.
@ NvScrncaptColorFormat_R8G8B8A8
Holds statistics for a single capture.
@ NVSCRNCAPT_STATUS_OUT_OF_MEMORY
Indicates a an out-of-memory condition.
@ NvScrncaptColorFormat_R8G8B8X8
@ NvScrncaptColorFormat_YCrCb422SPR
unsigned char alpha
Holds the alpha pixel value.
@ NvScrncaptColorFormat_YVU422SPR
@ NvScrncaptColorFormat_R6x2G6x2B6x2A8
@ NvScrncaptColorFormat_YCrCb422SP
@ NvScrncaptColorFormat_YUV422R
void * reserved
Holds the reserved for library use: do not manipulate.
@ NvScrncaptColorFormat_YUV422P
Holds the representation of a window's current state.
unsigned char * userAddress
Holds the user-provided address of pre-allocated memory.
@ NvScrncaptColorFormat_YCbCr422R
NvScrncaptBlend
Defines the set of blend modes possible for a window.
@ NvScrncaptColorFormat_YUV420SP
#define NVSCRNCAPT_MAX_WINS
Max # of Windows.
unsigned char blockHeight
Holds the block Height.
unsigned int strideUV
Holds the U/V surface stride.
@ NVSCRNCAPT_STATUS_NOT_SUPPORTED
Indicates not supported.
@ NvScrncaptSurfaceLayout_Tiled
@ NvScrncaptColorFormat_B5G5R5A
@ NvScrncaptColorFormat_YCbCr420P
@ NvScrncaptColorFormat_R5G5B5X
@ NvScrncaptColorFormat_YCbCr422
NvScrncaptBool enabled
Holds a flag indicating if this window is enabled.
NvScrncaptStatistics stats
Holds the capture statistics.
@ NVSCRNCAPT_STATUS_INCOMPATIBLE_VERSION
Indicates an incompatible version.
@ NvScrncaptColorFormat_B5G5R5X
@ NvScrncaptColorFormat_YVU420SP
@ NvScrncaptColorFormat_XR5G5B5
unsigned int userDataSize
Holds the size of user-allocated memory.
@ NvScrncaptColorFormat_R4G4B4A4
Holds planes within the frame buffer.
NvScrncaptSurfaceLayout
Defines the set of frame buffer memory layout types.
@ NVSCRNCAPT_STATUS_BUSY
Indicates a the resource is busy.
@ NvScrncaptColorFormat_P8
int NvScrncaptBool
A boolean value, holding NVSCRNCAPT_TRUE or NVSCRNCAPT_FALSE.
Holds the representation of a display aperture.
@ NvScrncaptColorFormat_AB5G5R5
@ NvScrncaptColorFormat_YCrCb444SP
unsigned int memSize
Holds the size of memory allocated for this capture in bytes.
@ NVSCRNCAPT_STATUS_NOT_INITIALIZED
Indicates not initialized.
@ NvScrncaptColorFormat_A8B8G8R8
@ NvScrncaptColorFormat_YCbCr444P
Holds the screen capture result.
@ NvScrncaptColorFormat_R5G6B5
unsigned int resolutionV
Holds the vertical display resolution.
@ NvScrncaptColorFormat_B8G8R8X8
@ NvScrncaptColorFormat_YCbCr422SPR
@ NvScrncaptColorFormat_YCbCr422P
@ NvScrncaptColorFormat_YUV422
NvScrncaptAperture outputAperture
Holds the output aperture.
unsigned int winDepth
Holds the window depth.
Holds a head's current state.
unsigned int NvScrncaptGetBlocklinearOffset(unsigned int x, unsigned int y, unsigned int stride, unsigned int blockHeight)
Auxiliary function to calculate byte offset for a pixel for NvScrncaptSurfaceLayout_BlockLinear surfa...
@ NvScrncaptColorFormat_YVU422SP
@ NvScrncaptBlend_Colorkey
int startY
Holds the Y-coordinate of start position.
@ NvScrncaptColorFormat_YUV444P
@ NvScrncaptColorFormat_B8G8R8A8
@ NvScrncaptColorFormat_YUV422RA
@ NvScrncaptBlend_Coverage
@ NvScrncaptColorFormat_YCbCr422SP
unsigned int headIdx
Holds the index of this display head.
NvScrncaptStatus
Defines the set of all possible error codes.
unsigned int captureTimeUsec
Holds the uSec taken for capture.
@ NvScrncaptSurfaceLayout_BlockLinear
@ NvScrncaptColorFormat_B6x2G6x2R6x2A8
unsigned int windowIdx
Holds the hardware window index whith which this handle is associated.