]> git.sesse.net Git - vlc/commit
avcodec: probe acceleration module only once
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 16 Oct 2012 19:41:52 +0000 (22:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 16 Oct 2012 20:05:08 +0000 (23:05 +0300)
commitb667100bcf0cbd916db4fbb6ce6f8a51ff971ad8
tree11932a89310833fe0e3d7a7d7ea49f2c72233e47
parentdfccdf84e19f85a084157fbf77f82b3e8508ae4e
avcodec: probe acceleration module only once

The acceleration plugin now returns the expected pixel format instead
of checking it. That way, the avcodec module can check it directly.

This works as long as each acceleration plugin supports only one pixel
format (otherwise a table would be required).
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/va.h
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vda.c
modules/codec/avcodec/video.c