hwdec: remove numbers from enum

They don't actually mean anything.

Just HWDEC_NONE should remain 0, because it's the default init value for
structs etc.
This commit is contained in:
wm4 2016-04-27 13:37:55 +02:00
parent d3a26272cd
commit cf9b415173
1 changed files with 10 additions and 10 deletions

View File

@ -7,17 +7,17 @@ struct mp_image_pool;
// keep in sync with --hwdec option (see mp_hwdec_names) // keep in sync with --hwdec option (see mp_hwdec_names)
enum hwdec_type { enum hwdec_type {
HWDEC_AUTO = -1,
HWDEC_NONE = 0, HWDEC_NONE = 0,
HWDEC_VDPAU = 1, HWDEC_AUTO,
HWDEC_VIDEOTOOLBOX = 3, HWDEC_VDPAU,
HWDEC_VAAPI = 4, HWDEC_VIDEOTOOLBOX,
HWDEC_VAAPI_COPY = 5, HWDEC_VAAPI,
HWDEC_DXVA2 = 6, HWDEC_VAAPI_COPY,
HWDEC_DXVA2_COPY = 7, HWDEC_DXVA2,
HWDEC_D3D11VA_COPY = 8, HWDEC_DXVA2_COPY,
HWDEC_RPI = 9, HWDEC_D3D11VA_COPY,
HWDEC_MEDIACODEC = 10, HWDEC_RPI,
HWDEC_MEDIACODEC,
}; };
// hwdec_type names (options.c) // hwdec_type names (options.c)