15.08.2013 Views

Manual Inspecta Software

Manual Inspecta Software

Manual Inspecta Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.4.6.3 mfg_sync ()<br />

mfg_sync () is the processing part of the MVFG interrupt service routine. The interrupt service<br />

routine just calls mfg_sync, reenables the interrupt and returns from interrupt.<br />

mfg_sync does everything that has to be done when a VSYNC is encountered:<br />

- looking for the odd field of an interlaced video.<br />

- check for new camera & mode selection and the A/D converter levels within a sequence.<br />

- flip frame-memory if the flag _fgtv_valid == 0<br />

- call the application progrmme if mvfg_IntCallback is activated.<br />

<strong>Software</strong><br />

mfg_sync must be called every HSYNC ( if this is the source of the interrupt ) or every VSYNC. If<br />

an application programme has ist own service routine for the MVFG interrupt, mfg_sync has to be<br />

called first.<br />

mfg_sync checks & changes the following counters & pointers:<br />

dword int_cnt increments with every interrupt.<br />

dword frm_cnt increments mod frame_nr with every full-frame if rotating recording<br />

is selected ( req_frm = -1 ), shows otherwise the actual image<br />

position in frame-memory.<br />

dword odd_flag =1 if the just recorded field was an odd field.<br />

dword frm_beg offset within frame-memry points to the first pixel of the just<br />

recorded frame.<br />

dword _fgtv_valid =1 if frame-memory was just flipped.<br />

dword integ_count counter for integration time mod full-frames.<br />

dword integration requested number of full-frames to integrate.<br />

dword stop_start =1 if recording is not stopped.<br />

INSPECTA <strong>Software</strong> Rev. 1.47 Page 57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!