beautypg.com

Software, Introduction, Functions description – Sundance SMT319 User Manual

Page 35: Sundance graphical interface, Initlib, Closelib, Acquire, Introduction functions description

background image

Version 1.0.7

Page 35 of 45

SMT319 User Manual

Software

Introduction

SMT319 is comes with a software package, providing a basic example (loopback.c)
decoding a PAL, B, D, G, H, I input video stream and displaying it to a screen. This
example doesn’t claim to be real time.
This example makes use of 3 libraries:

• VidEnc.lib: provides functions to set-up video encoder chip.
• VidDec.lib: provides functions to set-up video decoder chip.
• SndGrInt.lib: Sundance Graphical Interface. Provides basic functions to

acquire and display images. This library makes use of 3L real time operating
system, Diamond.

Functions description

Sundance Graphical Interface

InitLib

Initialises the SndGrInt library. Applications must call this function before using any
other feature of he library.

Prototype

int InitLibrary(int bufsize)

Parameters

Count: number of frames to store

Bufsize: size of a frame

Return value

This function returns OK if successful or MEMNOTALLOC if memory for

buffers could not been allocated.

CloseLib

Close SndGrInt library. Free SndGrInt memory.

Prototype

void CloseLib(void)

Acquire

This function acquires the video stream connected to video input component.

Prototype

void Acquire(void*)