diff options
author | wm4 <wm4@nowhere> | 2017-12-01 05:09:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-01 05:57:41 +0100 |
commit | 7e87feaf15d5ab99473d13856bb247a0ed10e521 (patch) | |
tree | 607b58403ecb07dfbc1c77ea3c6cefc95ce2699a /video/out/gpu/hwdec.h | |
parent | 91586c35924ff8bd54eab549e7326d6cf2868b46 (diff) | |
download | mpv-7e87feaf15d5ab99473d13856bb247a0ed10e521.tar.bz2 mpv-7e87feaf15d5ab99473d13856bb247a0ed10e521.tar.xz |
vo_gpu: hwdec: remove redundant fields
The testing_only field is not referenced anymore with vaglx removed and
the previous commit dropping all uses.
The ra_hwdec_driver.api field became unused with the previous commit,
but all hwdec interop drivers still initialized it.
Since this touches highly OS-specific code, build regressions are
possible (plus the previous commit might break hw decoding at runtime).
At least hwdec_cuda.c still used the .api field, other than initializing
it.
Diffstat (limited to 'video/out/gpu/hwdec.h')
-rw-r--r-- | video/out/gpu/hwdec.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/video/out/gpu/hwdec.h b/video/out/gpu/hwdec.h index 0ff6056bfd..258ab881b6 100644 --- a/video/out/gpu/hwdec.h +++ b/video/out/gpu/hwdec.h @@ -72,17 +72,14 @@ struct ra_hwdec_mapper_driver { }; struct ra_hwdec_driver { - // Name of the interop backend. This is used for informational purposes only. + // Name of the interop backend. This is used for informational purposes and + // for use with debugging options. const char *name; // Used to create ra_hwdec.priv. size_t priv_size; - // Used to explicitly request a specific API. - enum hwdec_type api; // One of the hardware surface IMGFMT_ that must be passed to map_image later. // Terminated with a 0 entry. (Extend the array size as needed.) const int imgfmts[3]; - // Dosn't load this unless requested by name. - bool testing_only; // Create the hwdec device. It must add it to hw->devs, if applicable. int (*init)(struct ra_hwdec *hw); |