diff options
author | Simon Rettberg | 2019-02-18 11:55:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-18 11:55:58 +0100 |
commit | aa7530630e595b80d5db54655fd827b61edc0fd7 (patch) | |
tree | 048cb74072450c7592f254c3537ac8f252d09d73 /hacks/analogtv.h | |
parent | Forgot one DPMS killing instance (diff) | |
parent | Update to 5.42 (diff) | |
download | xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.gz xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.xz xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.zip |
Merge branch 'master' into openslxv23
Diffstat (limited to 'hacks/analogtv.h')
-rw-r--r-- | hacks/analogtv.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/hacks/analogtv.h b/hacks/analogtv.h index e3170f1..4b11b58 100644 --- a/hacks/analogtv.h +++ b/hacks/analogtv.h @@ -19,21 +19,29 @@ # define HAVE_MOBILE #endif +/* To simulate an NTSC CRT monitor with way more scanlines, and thus + apply an ahistorical tv-like effect to a larger image, increase + this resolution multiplier. + */ +#ifndef ANALOGTV_SCALE +# define ANALOGTV_SCALE 1 +#endif + /* You'll need these to generate standard NTSC TV signals */ enum { /* We don't handle interlace here */ - ANALOGTV_V=262, - ANALOGTV_TOP=30, - ANALOGTV_VISLINES=200, + ANALOGTV_V=262*ANALOGTV_SCALE, + ANALOGTV_TOP=30*ANALOGTV_SCALE, + ANALOGTV_VISLINES=200*ANALOGTV_SCALE, ANALOGTV_BOT=ANALOGTV_TOP + ANALOGTV_VISLINES, /* This really defines our sampling rate, 4x the colorburst frequency. Handily equal to the Apple II's dot clock. You could also make a case for using 3x the colorburst freq, but 4x isn't hard to deal with. */ - ANALOGTV_H=912, + ANALOGTV_H=912*ANALOGTV_SCALE, /* Each line is 63500 nS long. The sync pulse is 4700 nS long, etc. Define sync, back porch, colorburst, picture, and front porch @@ -54,7 +62,7 @@ enum { ANALOGTV_VIS_END=ANALOGTV_PIC_START + (ANALOGTV_PIC_LEN*7/8), ANALOGTV_VIS_LEN=ANALOGTV_VIS_END-ANALOGTV_VIS_START, - ANALOGTV_HASHNOISE_LEN=6, + ANALOGTV_HASHNOISE_LEN=6*ANALOGTV_SCALE, ANALOGTV_GHOSTFIR_LEN=4, |