[vlc-devel] [PATCH] vdpau: VDPAU hardware decoding with avcodec
Rafaël Carré
funman at videolan.org
Sat Jan 12 15:42:16 CET 2013
Le 12/01/2013 15:05, Rémi Denis-Courmont a écrit :
> This requires libavcodec patches.
> ---
> configure.ac | 38 ++++
> modules/codec/Modules.am | 10 ++
> modules/codec/avcodec/vdpau.c | 387 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 435 insertions(+)
> create mode 100644 modules/codec/avcodec/vdpau.c
>
> +static int Init (vlc_va_t *va, void **ctxp, vlc_fourcc_t *chromap,
> + int width, int height)
> +{
> + vlc_va_sys_t *sys = va->sys;
> + VdpStatus err;
> +
> + width = (width + 3) & ~3;
> + height = (height + 3) & ~3;
What happens if width % 4 == 1 ?
Do we end up with the 3 rightmost columns filled with random pixel data?
More information about the vlc-devel
mailing list