git.libav.org Git - libav.git/rss log

Libav master git repository

http://git.libav.org/?p=libav.git;a=summary

Les articles publiés sur le site

  • hwcontext_d3d11va : add option to enable debug mode

    22 juin 2017, par wm4
    hwcontext_d3d11va: add option to enable debug mode
    
    Basically copied from VLC (LGPL):
    
    http://git.videolan.org/?p=vlc.git;a=blob;f=modules/video_output/win32/direct3d11.c;h=e9fcb83dcabfe778f26e63d19f218caf06a7c3ae;hb=HEAD#l1482
    http://git.videolan.org/?p=vlc.git;a=blob;f=modules/codec/avcodec/d3d11va.c;h=85e7d25caebc059a9770da2ef4bb8fe90816d76d;hb=HEAD#l599
    
    Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
    
    • [DBH] configure
    • [DBH] libavutil/hwcontext_d3d11va.c
    • [DBH] libavutil/hwcontext_d3d11va.h
  • dxva : support DXGI_FORMAT_420_OPAQUE decoding

    22 juin 2017, par wm4
    dxva: support DXGI_FORMAT_420_OPAQUE decoding
    
    Some devices (some phones, apparently) will support only this opaque
    format. Of course this won't work with CLI, because copying data
    directly is not supported.
    
    Automatic frame allocation (setting AVCodecContext.hw_device_ctx) does
    not support this mode, even if it's the only supported mode. But since
    opaque surfaces are generally less useful, that's probably ok.
    
    Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
    
    • [DBH] libavcodec/dxva2.c
    • [DBH] libavutil/hwcontext_d3d11va.c
    • [DBH] libavutil/hwcontext_d3d11va.h
  • hwcontext_d3d11va : allocate staging texture lazily

    22 juin 2017, par wm4
    hwcontext_d3d11va: allocate staging texture lazily
    
    Makes dealing with formats that can not be used for staging textures
    easier (DXGI_FORMAT_420_OPAQUE). It also saves memory if the staging
    texture is never needed, so this is a good thing.
    
    Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
    
    • [DBH] libavutil/hwcontext_d3d11va.c
  • hwcontext_d3d11va : fix crash on frames_init failure

    22 juin 2017, par wm4
    hwcontext_d3d11va: fix crash on frames_init failure
    
    It appears in this case, frames_ininit is called twice (once by
    av_hwframe_ctx_init(), and again by unreffing the frames ctx ref).
    
    Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
    
    • [DBH] libavutil/hwcontext_d3d11va.c
  • dxva : fix some warnings

    22 juin 2017, par wm4
    dxva: fix some warnings
    
    Some existed since forever, some are new.
    
    The cast in get_surface() is silly, but unless we change the av_log
    function signature, or all callers of ff_dxva2_get_surface_index(), it's
    needed to remove the const warning.
    
    Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
    
    • [DBH] libavcodec/dxva2.c