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);
unsigned int lengthV
Holds the V buffer length.
unsigned char * pV
Holds the V surface pointer.
Indicates a an out-of-memory condition.
NvScrncaptBool enabled
Holds a flag indicating if this window is enabled.
unsigned int strideUV
Holds the U/V surface stride.
int numWins
Holds the number of windows assigned to this head.
Indicates a catch-all error, used when no other error code applies.
Holds the representation of a window's current state.
int height
Holds the height.
NvScrncaptStatus NvScrncaptInit(NvScrncaptResult **pResult)
Initializes data structures required for screen capture.
Indicates an incompatible version.
unsigned int resolutionH
Holds the horizaontal display resolution.
int numHeads
Holds the number of active heads.
NvScrncaptColorFormat pixelFormat
Holds the pixel color format.
unsigned int lengthU
Holds the U buffer length.
NvScrncaptColorFormat
Defines the set of pixel color formats, which must be kept in sync with the kernel defines...
NvScrncaptStatus NvScrncaptCapture(NvScrncaptResult *result, unsigned int headMask)
Conducts screen capture on heads selected by input bitmask.
unsigned int winDepth
Holds the window depth.
NvScrncaptAperture outputAperture
Holds the output aperture.
#define NVSCRNCAPT_MAX_HEADS
Max # of Display Heads.
Holds the representation of a display aperture.
Holds statistics for a single capture.
Holds planes within the frame buffer.
Holds a head's current state.
unsigned int windowIdx
Holds the hardware window index whith which this handle is associated.
unsigned int resolutionV
Holds the vertical display resolution.
void * reserved
Holds the reserved for library use: do not manipulate.
NvScrncaptBlend
Defines the set of blend modes possible for a window.
The operation completed successfully; no error.
NvScrncaptBlend blendMode
Holds the blend mode.
unsigned char * userAddress
Holds the user-provided address of pre-allocated memory.
unsigned int alpha
Holds the global alpha value for window.
int width
Holds the width.
int startX
Holds the X-coordinate of start position.
#define NVSCRNCAPT_MAX_WINS
Max # of Windows.
NvScrncaptBool enabled
Holds the a flag indicating whether this head is enabled.
NvScrncaptStatistics stats
Holds the capture statistics.
unsigned char alpha
Holds the alpha pixel value.
unsigned int memSize
Holds the size of memory allocated for this capture in bytes.
NvScrncaptSurfaceMap surfaceMap
Holds the handle to the associated frame buffer surface map.
int NvScrncaptBool
A boolean value, holding NVSCRNCAPT_TRUE or NVSCRNCAPT_FALSE.
NvScrncaptAperture fbAperture
Holds the framebuffer aperture.
unsigned int userDataSize
Holds the size of user-allocated memory.
NvScrncaptSurfaceLayout surfaceLayout
Holds the surface layout.
Holds the screen capture result.
NvScrncaptSurfaceLayout
Defines the set of frame buffer memory layout types.
int startY
Holds the Y-coordinate of start position.
NvScrncaptBool invertV
Holds the vertical inversion.
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...
NvScrncaptBool invertH
Holds the horizontal inversion.
Indicates a operation timed out.
NvScrncaptStatus
Defines the set of all possible error codes.
unsigned int captureTimeUsec
Holds the uSec taken for capture.
Indicates not initialized.
unsigned char blockHeight
Holds the block Height.
unsigned char * pU
Holds the U surface pointer.
Indicates a bad parameter was passed.
unsigned int headIdx
Holds the index of this display head.
Indicates a the resource is busy.
NvScrncaptStatus NvScrncaptCleanup(NvScrncaptResult *result)
Cleans up associated data structures and releases exclusive hold on screen capture functionality...