1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 04:51:52 +00:00
mpv/video/decode
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
..
dec_video.c video: handle video output levels with mp_image_params 2013-08-24 19:40:18 +02:00
dec_video.h dec_video: remove unused declaration of a former global variable 2013-10-31 18:17:13 +01:00
lavc_dr1.c vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00
lavc.h video: check profiles with hardware decoding 2013-11-01 17:33:33 +01:00
vaapi.c video: check profiles with hardware decoding 2013-11-01 17:33:33 +01:00
vd_lavc.c configure: uniform the defines to #define HAVE_xxx (0|1) 2013-11-03 21:59:54 +01:00
vd.c video: let sh_video->disp_w/h always be container size 2013-09-26 17:33:57 +02:00
vd.h cosmetics: replace "CTRL" defines by enums 2013-10-02 21:19:16 +02:00
vda.c video: add vda decode support (with hwaccel) and direct rendering 2013-08-22 12:13:30 +02:00
vdpau_old.c vdpau_old: restore hardware decoding with old API 2013-10-19 20:57:43 +02:00
vdpau.c video: check profiles with hardware decoding 2013-11-01 17:33:33 +01:00