summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-09-13 17:16:18 +0200
committerwm4 <wm4@nowhere>2019-09-13 17:32:19 +0200
commitb30e85508a305d668db8419556d295a65ab08707 (patch)
treefa48444a183c97fd5081aa0206c5adece43eaf32 /stream/stream.h
parent162e0f5ad92116d1a4fb740d087da2a152686b73 (diff)
downloadmpv-b30e85508a305d668db8419556d295a65ab08707.tar.bz2
mpv-b30e85508a305d668db8419556d295a65ab08707.tar.xz
Remove classic Linux analog TV support, and DVB runtime controls
Linux analog TV support (via tv://) was excessively complex, and whenever I attempted to use it (cameras or loopback devices), it didn't work well, or would have required some major work to update it. It's very much stuck in the analog past (my favorite are the frequency tables in frequencies.c for analog TV channels which don't exist anymore). Especially cameras and such work fine with libavdevice and better than tv://, for example: mpv av://v4l2:/dev/video0 (adding --profile=low-latency --untimed even makes it mostly realtime) Adding a new input layer that targets such "modern" uses would be acceptable, if anyone is interested in it. The old TV code is just too focused on actual analog TV. DVB is rather obscure, but has an active maintainer, so don't remove it. However, the demux/stream ctrl layer must go, so remove controls for channel switching. Most of these could be reimplemented by using the normal method for option runtime changes.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/stream/stream.h b/stream/stream.h
index e6a352917a..baa26c76de 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -65,24 +65,6 @@ enum stream_ctrl {
// Garbage compatibility for obnoxious users
STREAM_CTRL_OPTICAL_CRAP_HACK1,
STREAM_CTRL_OPTICAL_CRAP_HACK2,
-
- // TV
- STREAM_CTRL_TV_SET_SCAN,
- STREAM_CTRL_SET_TV_FREQ,
- STREAM_CTRL_GET_TV_FREQ,
- STREAM_CTRL_SET_TV_COLORS,
- STREAM_CTRL_GET_TV_COLORS,
- STREAM_CTRL_TV_SET_NORM,
- STREAM_CTRL_TV_STEP_NORM,
- STREAM_CTRL_TV_SET_CHAN,
- STREAM_CTRL_TV_GET_CHAN,
- STREAM_CTRL_TV_STEP_CHAN,
- STREAM_CTRL_TV_LAST_CHAN,
- STREAM_CTRL_DVB_SET_CHANNEL,
- STREAM_CTRL_DVB_SET_CHANNEL_NAME,
- STREAM_CTRL_DVB_GET_CHANNEL_NAME,
- STREAM_CTRL_DVB_STEP_CHANNEL,
-
};
struct stream_lang_req {
@@ -96,12 +78,6 @@ struct stream_dvd_info_req {
int num_subs;
};
-// for STREAM_CTRL_SET_TV_COLORS
-#define TV_COLOR_BRIGHTNESS 1
-#define TV_COLOR_HUE 2
-#define TV_COLOR_SATURATION 3
-#define TV_COLOR_CONTRAST 4
-
// for STREAM_CTRL_AVSEEK
struct stream_avseek {
int stream_index;