CStillSource Class Reference

#include <StillSource.h>

Inheritance diagram for CStillSource:

Inheritance graph
[legend]
Collaboration diagram for CStillSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CStillSource (LPCSTR IniSection)
void CreateSettings (LPCSTR IniSection)
void Start ()
 start capturing. Perform any initilization here

void Stop ()
 start capturing. Perform any clean-up here

void Reset ()
 Reset to known state.

void GetNextField (TDeinterlaceInfo *pInfo, BOOL AccurateTiming)
BOOL HandleWindowsCommands (HWND hWnd, UINT wParam, LONG lParam)
 Returns TRUE is we process the command.

LPCSTR GetStatus ()
 Returns a string to be displayed in the UI.

ISettingGetVolume ()
 returns NULL if there is no control over this value

ISettingGetBalance ()
 returns NULL if there is no control over this value

void Mute ()
 Turn off any sound.

void UnMute ()
 Turn back on the sound.

ISettingGetBrightness ()
 returns NULL if there is no control over this value

ISettingGetContrast ()
 returns NULL if there is no control over this value

ISettingGetHue ()
 returns NULL if there is no control over this value

ISettingGetSaturation ()
 returns NULL if there is no control over this value

ISettingGetSaturationU ()
 returns NULL if there is no control over this value

ISettingGetSaturationV ()
 returns NULL if there is no control over this value

ISettingGetAnalogueBlanking ()
 returns NULL if there is no control over this value

ISettingGetTopOverscan ()
 returns NULL if there is no control over this value

ISettingGetBottomOverscan ()
 returns NULL if there is no control over this value

ISettingGetLeftOverscan ()
 returns NULL if there is no control over this value

ISettingGetRightOverscan ()
 returns NULL if there is no control over this value

ISettingGetHDelay ()
 returns NULL if there is no control over this value

ISettingGetVDelay ()
 returns NULL if there is no control over this value

CTreeSettingsPageGetTreeSettingsPage ()
 returns NULL if there is no tree settings page

eVideoFormat GetFormat ()
 Get the original video format e.g. PAL, NTSC.

BOOL IsInTunerMode ()
 Are we currently showing the output from the tuner.

int GetInitialWidth ()
 Gets the initial width of each picture in pixels.

int GetInitialHeight ()
 Gets the initial height of each picture in pixels, for interlaced this is FieldHeight.

int GetWidth ()
 Gets the width of each picture in pixels.

int GetHeight ()
 Gets the height of each frame in pixels, for interlaced this is x2 FieldHeight.

void SetWidth (int w)
 Sets the width of each picture in pixels.

void UpdateMenu ()
 Update the content of the menu.

void SetMenu (HMENU hMenu)
 Update the menu with any settings.

void HandleTimerMessages (int TimerId)
 Handle any timers that you control.

void SetFormat (eVideoFormat NewFormat)
BOOL SetTunerFrequency (long FrequencyId, eVideoFormat VideoFormat)
 Tune into channel.

BOOL IsVideoPresent ()
 Are we capturing a proper video signal.

void DecodeVBI (TDeinterlaceInfo *pInfo)
 If VBI data is being captured, decode it.

LPCSTR GetMenuLabel ()
 Get string to display in source menu.

BOOL ReadNextFrameInFile ()
BOOL LoadPlayList (LPCSTR FileName)
void SaveSnapshotInFile (int FrameHeight, int FrameWidth, BYTE *pFrameBuffer, LONG LinePitch)
void SaveSnapshotInMemory (int FrameHeight, int FrameWidth, BYTE *pAllocBuffer, LONG LinePitch)
void SaveInFile (int pos)
BOOL OpenMediaFile (LPCSTR FileName, BOOL NewPlayList)
 Open the following file, return TRUE if you understand the file.

BOOL IsAccessAllowed ()
void SetAspectRatioData ()
BOOL HasSquarePixels ()
void ChangeSettingsBasedOnHW (int ProcessorSpeed, int TradeOff)
LPCSTR IDString ()
void SetNavigOnly (BOOL NavigOnly)
BOOL IsNavigOnly ()
int NumInputs (eSourceInputType InputType)
BOOL SetInput (eSourceInputType InputType, int Nr)
int GetInput (eSourceInputType InputType)
const char * GetInputName (eSourceInputType InputType, int Nr)
BOOL InputHasTuner (eSourceInputType InputType, int Nr)
ITunerGetTuner ()
int GetPlaylistPosition ()
int CountMemoryUsage ()

Protected Member Functions

void ChangeDefaultsForVideoFormat (BOOL bDontSetValue)
void ChangeDefaultsForVideoInput (BOOL bDontSetValue)
void ChangeDefaultsForAudioInput (BOOL bDontSetValue)

Protected Attributes

int m_InitialWidth
int m_InitialHeight
int m_Width
int m_Height
BYTE * m_StillFrameBuffer
TPicture m_StillFrame
BYTE * m_OriginalFrameBuffer
TPicture m_OriginalFrame
vector< CPlayListItem * > m_PlayList
int m_Position
BOOL m_IsPictureRead
BOOL m_SquarePixels
BOOL m_NavigOnly
int m_LinePitch
std::string m_IDString

Friends

class CTiffHelper
class CJpegHelper
class CPatternHelper

Detailed Description

Source class that can read files and playlists and display then as faked video


Member Function Documentation

void CStillSource::GetNextField TDeinterlaceInfo *  pInfo,
BOOL  AccurateTiming
[virtual]
 

Fill the TDeinteralceInfo structure with the most recent data and update the history. The Accuarate timing flag is used by JudderTermonator to tell the code to time the input Frequency exactly.

Implements CSource.

void CStillSource::SetFormat eVideoFormat  NewFormat  )  [inline, virtual]
 

Set the video format e.g. PAL, NTSC Will get called by auto forfat detect in the processing thread so do not stop the processing to habdle this command Normal processing is to post message to yourself using API

Implements CSource.


The documentation for this class was generated from the following files:
Generated on Mon Oct 27 09:54:56 2003 for DScaler by doxygen 1.3.4