@@ -28,6 +28,15 @@ typedef struct _vtcapture_backend_state {
28
28
bool quirk_force_capture;
29
29
} vtcapture_backend_state_t ;
30
30
31
+ enum _vtcapture_dump_location {
32
+ SCALER_INPUT,
33
+ SCALER_OUTPUT,
34
+ DISPLAY_OUTPUT,
35
+ BLENDED_OUTPUT,
36
+ OSD_OUTPUT,
37
+ HISTOGRAM_OUTPUT
38
+ };
39
+
31
40
int capture_terminate (void * state);
32
41
33
42
int capture_init (cap_backend_config_t * config, void ** state_p)
@@ -52,7 +61,19 @@ int capture_init(cap_backend_config_t* config, void** state_p)
52
61
53
62
// Sorry, no unlimited fps for you.
54
63
self->props .frm = config->fps == 0 ? 60 : config->fps ;
55
- self->props .dump = HAS_QUIRK (config->quirks , QUIRK_ALTERNATIVE_DUMP_LOCATION) ? 1 : 2 ;
64
+
65
+ self->props .dump = DISPLAY_OUTPUT;
66
+ if (HAS_QUIRK (config->quirks , QUIRK_ALTERNATIVE_DUMP_LOCATION))
67
+ self->props .dump = SCALER_OUTPUT;
68
+ if (HAS_QUIRK (config->quirks , QUIRK_ALTERNATIVE_DUMP_LOCATION_2))
69
+ self->props .dump = SCALER_INPUT;
70
+ if (HAS_QUIRK (config->quirks , QUIRK_ALTERNATIVE_DUMP_LOCATION_3))
71
+ self->props .dump = BLENDED_OUTPUT;
72
+ if (HAS_QUIRK (config->quirks , QUIRK_ALTERNATIVE_DUMP_LOCATION_4))
73
+ self->props .dump = OSD_OUTPUT;
74
+ if (HAS_QUIRK (config->quirks , QUIRK_ALTERNATIVE_DUMP_LOCATION_5))
75
+ self->props .dump = HISTOGRAM_OUTPUT;
76
+
56
77
self->props .loc .x = 0 ;
57
78
self->props .loc .y = 0 ;
58
79
self->props .reg .w = config->resolution_width ;
0 commit comments