File: ScreenPreferenceState.h

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (135 lines) | stat: -rw-r--r-- 5,062 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
 *    ScreenPreferenceState.h
 *
 *    AUTHORS:
 *
 *    Allen.Ingling@nyu.edu           awi
 *    mario.kleiner.de@gmail.com      mk
 *
 *    PLATFORMS:
 *
 *        All.
 *
 *    HISTORY:
 *
 *        2/28/04  awi        Created.
 *        5/30/05  mk         New preference setting screenSkipSyncTests: If set to TRUE, self-test and calibration will be as
 *                            short and sloppy as possible and some problematic conditions will not cause an abort.
 *                            One can trade-off correctness and accuracy of stimulus presentation against level of annoyance
 *                            during development/debugging of new experiments.
 *        9/30/05  mk         new setting VisualDebugLevel: Defines how much visual feedback PTB should give about errors and
 *                            state: 0=none, 1=only errors, 2=also warnings, 3=also infos, 4=also blue bootup screen, 5=also visual test sheets.
 *        3/7/06   awi        Added state for new preference flag SuppressAllWarnings.
 *
 *    DESCRIPTION:
 *
 *        This file holds state for the Screen Preference command.
 */

#include "Screen.h"

//begin include once 
#ifndef PSYCH_IS_INCLUDED_ScreenPreferenceState
#define PSYCH_IS_INCLUDED_ScreenPreferenceState

//function prototypes

void PrepareScreenPreferences(void);

// Text matching.  Function definition in MiniBox.c 
psych_bool PsychIsPsychMatchCaseSensitive(void);

//PsychTable preferences
int PsychPrefStateGet_PsychTableVersion(void);
const char *PsychPrefStateGet_PsychTableCreator(void);

//Text and Font preferences
int  PsychPrefStateGet_TextYPositionIsBaseline(void);
void PsychPrefStateSet_TextYPositionIsBaseline(int textPosIsBaseline);

int PsychPrefStateGet_TextAntiAliasing(void);
void PsychPrefStateSet_TextAntiAliasing(int mode);

int PsychPrefStateGet_TextRenderer(void);
void PsychPrefStateSet_TextRenderer(int mode);

void PsychPrefStateGet_DefaultFontName(const char **fontName);
void PsychPrefStateSet_DefaultFontName(const char *newName);

int PsychPrefStateGet_DefaultTextSize(void);
void PsychPrefStateSet_DefaultTextSize(int textSize);

int PsychPrefStateGet_DefaultTextStyle(void);
void PsychPrefStateSet_DefaultTextStyle(int textStyle);

psych_bool PsychPrefStateGet_TextAlphaBlending(void);
void PsychPrefStateSet_TextAlphaBlending(psych_bool enableFlag);

// Screen self-test and calibration preferences.  
int PsychPrefStateGet_SkipSyncTests(void);
void PsychPrefStateSet_SkipSyncTests(int level);

int PsychPrefStateGet_VisualDebugLevel(void);
void PsychPrefStateSet_VisualDebugLevel(int level);

int PsychPrefStateGet_ConserveVRAM(void);
void PsychPrefStateSet_ConserveVRAM(int level);

psych_bool PsychPrefStateGet_EmulateOldPTB(void);
void PsychPrefStateSet_EmulateOldPTB(psych_bool level);

// 3D graphics rendering support:
int PsychPrefStateGet_3DGfx(void);
void PsychPrefStateSet_3DGfx(int level);

//Debug preferences.  
psych_bool PsychPrefStateGet_DebugMakeTexture(void);
void PsychPrefStateSet_DebugMakeTexture(psych_bool setFlag);

// Master switch for debug output:
psych_bool PsychPrefStateGet_SuppressAllWarnings(void);
void PsychPrefStateSet_SuppressAllWarnings(psych_bool setFlag);

// Level of verbosity:
int PsychPrefStateGet_Verbosity(void);
void PsychPrefStateSet_Verbosity(int level);

// Master control for method of flip and vbl timestamping:
int PsychPrefStateGet_VBLTimestampingMode(void);
void PsychPrefStateSet_VBLTimestampingMode(int level);

// Override for display endline aka VTOTAL:
int PsychPrefStateGet_VBLEndlineOverride(void);
void PsychPrefStateSet_VBLEndlineOverride(int level);

// Override for display endline multiplicator, relative to VACTIVE:
double PsychPrefStateGet_VBLEndlineMaxFactor(void);
void PsychPrefStateSet_VBLEndlineMaxFactor(double inputDoubleValue);

// Default for selection of video capture engine:
int PsychPrefStateGet_VideoCaptureEngine(void);
void PsychPrefStateSet_VideoCaptureEngine(int mode);

// Window shielding level for windowed mode:
void PsychPrefStateSet_WindowShieldingLevel(int level);
int PsychPrefStateGet_WindowShieldingLevel(void);

// Correction tweak offset for proper Screen('FrameRect') behaviour:
void PsychPrefStateSet_FrameRectCorrection(double level);
double PsychPrefStateGet_FrameRectCorrection(void);

// Tweakable parameters for VBL sync tests and refresh rate calibration:
void PsychPrefStateSet_SynctestThresholds(double maxStddev, int minSamples, double maxDeviation, double maxDuration);
void PsychPrefStateGet_SynctestThresholds(double* maxStddev, int* minSamples, double* maxDeviation, double* maxDuration);

// Shall GStreamer be used instead of Quicktime on 32-bit Windows or OS/X?
void PsychPrefStateSet_UseGStreamer(int value);
int PsychPrefStateGet_UseGStreamer(void);

// Modify/Get screenid -> gpu head mapping:
void PsychPrefStateSet_ScreenToHead(int screenId, int headId, int crtcId, int rankId);
int PsychPrefStateGet_ScreenToHead(int screenId, int rankId);
int PsychPrefStateGet_ScreenToCrtcId(int screenId, int rankId);

//end include once
#endif