GEV_STATUS GevGetImageParameters

(GEV_CAMERA_HANDLE handle, PUINT32 width,
 PUINT32 height, PUINT32 x_offset,
 PUINT32 y_offset, PUINT32 format);

GEV_STATUS GevSetImageParameters

(GEV_CAMERA_HANDLE handle, UINT32 width,
 UINT32 height, UINT32 x_offset, UINT32 y_offset,
 UINT32 format);

Description

Gets/sets image parameters from the camera. The current height, width, x/y origin, and image data format can be manipulated with these functions. (Note : Some cameras allow the format of the image data to be changed whereas others do not.)

Parameters

width

Image width setting (in pixels).

height

Image height setting (in lines).

x_offset

Image X (pixel) origin (in pixels).

y_offset

Image Y (line) origin (in lines).

format

Enumerated value for image format. The value depend on the camera model. Possible values are:    

 

fmtMono8

0x01080001

8 Bit Monochrome Unsigned

 

fmtMono8Signed

0x01080002

8 Bit Monochrome Signed

 

fmtMono10

0x01100003

10 Bit Monochrome Unsigned

 

fmtMono10Packed

0x010C0004

10 Bit Monochrome Packed 

 

fmtMono12

0x01100005

12 Bit Monochrome Unsigned

 

fmtMono12Packed

0x010C0006

8 Bit Monochrome Packed

 

fmtMono14

0x01100025

14 Bit Monochrome Unsigned

 

fmtMono16

0x01100007

16 Bit Monochrome Unsigned

 

fMtBayerGR8

0x01080008

8-bit Bayer           

 

fMtBayerRG8

0x01080009

8-bit Bayer           

 

fMtBayerGB8

0x0108000A

8-bit Bayer           

 

fMtBayerBG8

0x0108000B

8-bit Bayer           

 

fMtBayerGR10

0x0110000C

10-bit Bayer          

 

fMtBayerRG10

0x0110000D

10-bit Bayer          

 

fMtBayerGB10

0x0110000E

10-bit Bayer          

 

fMtBayerBG10

0x0110000F

10-bit Bayer          

 

fMtBayerGR12

0x01100010

12-bit Bayer          

 

fMtBayerRG12

0x01100011

12-bit Bayer          

 

fMtBayerGB12

0x01100012

12-bit Bayer          

 

fMtBayerBG12

0x01100013

12-bit Bayer          

 

fmtRGB8Packed

0x02180014

8 Bit RGB Unsigned in 24bits

 

fmtBGR8Packed

0x02180015

8 Bit BGR Unsigned in 24bits

 

fmtRGBA8Packed

0x02200016

8 Bit RGB Unsigned    

 

fmtBGRA8Packed

0x02200017

8 Bit BGR Unsigned    

 

fmtRGB10Packed

0x02300018

10 Bit RGB Unsigned   

 

fmtBGR10Packed

0x02300019

10 Bit BGR Unsigned   

 

fmtRGB12Packed

0x0230001A

12 Bit RGB Unsigned   

 

fmtBGR12Packed

0x0230001B

12 Bit BGR Unsigned   

 

fmtRGB10V1Packed

0x0220001C

10 Bit RGB custom V1 (32bits)

 

fmtRGB10V2Packed

0x0220001D

10 Bit RGB custom V2 (32bits)

 

fmtYUV411packed

0x020C001E

YUV411 (composite color)

 

fmtYUV422packed

0x0210001F

YUV422 (composite color)

 

fmtYUV444packed

0x02180020

YUV444 (composite color)

 

fmtRGB8Planar

0x02180021

RGB8 Planar buffers

 

fmtRGB10Planar

0x02300022

RGB10 Planar buffers 

 

fmtRGB12Planar

0x02300023

RGB12 Planar buffers 

 

fmtRGB16Planar

0x02300024

RGB16 Planar buffers 

Return Value

GEV_STATUS

Possible values are:

GEVLIB_OK
GEVLIB_ERROR_INVALID_HANDLE
GEVLIB_ERROR_PARAMETER_INVALID
(GEV_REGISTER struct is not for an Integer register)
GEVLIB_ERROR_ARG_INVALID    (GEV_REGISTER definition is invalid)
GEVLIB_ERROR_SOFTWARE
(GEV_REGISTER struct defines an unsupported register type)

Replacement Function

GevGetPayloadParameters

Related Topics

Appendix D: Legacy Functions