1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00
mpv/sub
Stefano Pigozzi 37388ebb0e configure: uniform the defines to #define HAVE_xxx (0|1)
The configure followed 5 different convetions of defines because the next guy
always wanted to introduce a new better way to uniform it[1]. For an
hypothetic feature 'hurr' you could have had:

  * #define HAVE_HURR 1   / #undef HAVE_DURR
  * #define HAVE_HURR     / #undef HAVE_DURR
  * #define CONFIG_HURR 1 / #undef CONFIG_DURR
  * #define HAVE_HURR 1   / #define HAVE_DURR 0
  * #define CONFIG_HURR 1 / #define CONFIG_DURR 0

All is now uniform and uses:
  * #define HAVE_HURR 1
  * #define HAVE_DURR 0

We like definining to 0 as opposed to `undef` bcause it can help spot typos
and is very helpful when doing big reorganizations in the code.

[1]: http://xkcd.com/927/ related
2013-11-03 21:59:54 +01:00
..
ass_mp.c osd_libass: add "Default" dummy style 2013-09-26 17:49:54 +02:00
ass_mp.h configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
dec_sub.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
dec_sub.h sd_add: add terrible hack for (xy-)vsfilter compatibility 2013-07-15 02:01:37 +02:00
draw_bmp.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
draw_bmp.h vo_xv, vo_x11: simplify OSD redrawing 2013-01-13 20:04:12 +01:00
find_subfiles.c find_subfiles: fix really dumb bug causing segfaults 2013-09-17 15:41:23 +02:00
find_subfiles.h find_subfiles: some cleanups 2013-09-07 20:34:49 +02:00
img_convert.c Revert "sub: support straight alpha additionally to premultiplied alpha" 2013-08-12 02:49:22 +02:00
img_convert.h Revert "sub: support straight alpha additionally to premultiplied alpha" 2013-08-12 02:49:22 +02:00
osd_dummy.c Add initial Lua scripting support 2013-09-26 01:28:58 +02:00
osd_font.otf osc: rename osd_font, add some glyphs 2013-09-08 03:35:04 +02:00
osd_libass.c osd_libass: add "Default" dummy style 2013-09-26 17:49:54 +02:00
sd_ass.c command: sub_seek: avoid getting stuck 2013-10-07 17:21:53 +02:00
sd_lavc_conv.c sd_lavc_conv: fix build with older ffmpeg/libav 2013-08-24 20:07:05 +02:00
sd_lavc.c sd_lavc: display DVD subs with unknown duration 2013-10-31 18:17:14 +01:00
sd_lavf_srt.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
sd_microdvd.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
sd_movtext.c sd_ass: disable special handling of subtitles with duration 0 2013-06-25 00:11:54 +02:00
sd_spu.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
sd_srt.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
sd.h dec_sub: introduce sub_control(), use it for sub_step 2013-06-29 22:58:14 +02:00
spudec.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
spudec.h sub: add sd_spu.c to wrap spudec, cleanup mplayer.c 2013-05-30 22:40:32 +02:00
sub.c command: add commands for displaying overlays 2013-10-05 22:46:55 +02:00
sub.h command: add commands for displaying overlays 2013-10-05 22:46:55 +02:00