aboutsummaryrefslogtreecommitdiffstats
path: root/src/tv/bas.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tv/bas.h')
-rw-r--r--src/tv/bas.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tv/bas.h b/src/tv/bas.h
index 42090a6..7a0074e 100644
--- a/src/tv/bas.h
+++ b/src/tv/bas.h
@@ -1,6 +1,9 @@
enum bas_type {
BAS_FUBK,
+ BAS_CONVERGENCE,
+ BAS_RED,
+ BAS_EBU,
BAS_VCR,
BAS_IMAGE,
};
@@ -13,6 +16,7 @@ typedef struct bas {
int color_bar; /* show only color bar on all lines */
int grid_only; /* show only the grid */
const char *station_id; /* text to display as station id */
+ int grid_width; /* width of the grid (convergence test) */
double color_phase; /* current phase of color carrier */
int v_polarity; /* polarity of V color vector */
unsigned short *img; /* image data, if it should be used */
@@ -20,6 +24,6 @@ typedef struct bas {
iir_filter_t lp_y, lp_u, lp_v; /* low pass filters */
} bas_t;
-void bas_init(bas_t *bas, double samplerate, enum bas_type type, int fbas, double circle_radius, int color_bar, int grid_only, const char *station_id, unsigned short *img, int width, int height);
+void bas_init(bas_t *bas, double samplerate, enum bas_type type, int fbas, double circle_radius, int color_bar, int grid_only, const char *station_id, int grid_width, unsigned short *img, int width, int height);
int bas_generate(bas_t *bas, sample_t *sample);