Technical Manual
© 2006-2010 by HIKVISION. All rights reserved. 18
4.2.16. int StartVideoPreview(int hChannelHandle, PREVIEWCONFIG* pPreviewConf,, UINT
useSyncSem);
Parameter:
int channelHandle channel handle;
PREVIEWCONFIG* pPreviewConf the struct refer to struct RECT
UINT useSyncSem 1 means use the semaphore to synchronize the
preview.The application initialize a semaphore,
then provide it to sdk by pPreviewConf-〉SyncSem.
And the sdk will post this semaphore after a new
frame is ready.
0 means use the timer to synchronize the preview
Explanation:
Start video preview. Please create the sdl surface by returned pPreviewConf->w
and pPreviewConf->h. Then you could copy video data from pPreviewConf->dataAddr.
Return value:
0—success; -1 – failed;
4.2.17. int StopVideoPreview(int channelHandle);
Parameter:
int channelInfo channel handle;
Explanation:
Stop video preview;
Return value:
0—success; -1 – failed;
4.2.18. int SetVideoPara(int channelHandle, int Brightness, int Contrast, int Saturation, int Hue);
Parameter:
int channelHandle channel handle;
int Brightness value of brightness (0--255);
int Contrast value of Contrast (0--127);
int Saturation value of Saturation (0--127);
int Hue value of Hue (0--255);
Explanation:
set video parameters;
Return value:
0—success; -1 – failed;
4.2.19. int GetVideoPara(int channelHandle, VideoStandard_t *VideoStandard, int *Brightness, int
*Contrast, int *Saturation, int *Hue);
Parameter:
int channelHandle window handle;
VideoStandard_t *VideoStandard video format (refer to section 2.3);
int *Brightness pointer of Brightness value (0--255);