-
- Downloads
videotoolbox: add hwcontext support
This adds tons of code for no other benefit than making VideoToolbox support conform with the new hwaccel API (using hw_device_ctx and hw_frames_ctx). Since VideoToolbox decoding does not actually require the user to allocate frames, the new code does mostly nothing. One benefit is that ffmpeg_videotoolbox.c can be dropped once generic hwaccel support for ffmpeg.c is merged from Libav. Does not consider VDA or VideoToolbox encoding. Fun fact: the frame transfer functions are copied from vaapi, as the mapping makes copying generic boilerplate. Mapping itself is not exported by the VT code, because I don't know how to test.
Showing
- doc/APIchanges 8 additions, 0 deletionsdoc/APIchanges
- libavcodec/vda_vt_internal.h 7 additions, 0 deletionslibavcodec/vda_vt_internal.h
- libavcodec/version.h 2 additions, 2 deletionslibavcodec/version.h
- libavcodec/videotoolbox.c 170 additions, 10 deletionslibavcodec/videotoolbox.c
- libavutil/Makefile 3 additions, 0 deletionslibavutil/Makefile
- libavutil/hwcontext.c 3 additions, 0 deletionslibavutil/hwcontext.c
- libavutil/hwcontext.h 1 addition, 0 deletionslibavutil/hwcontext.h
- libavutil/hwcontext_internal.h 1 addition, 0 deletionslibavutil/hwcontext_internal.h
- libavutil/hwcontext_videotoolbox.c 243 additions, 0 deletionslibavutil/hwcontext_videotoolbox.c
- libavutil/hwcontext_videotoolbox.h 54 additions, 0 deletionslibavutil/hwcontext_videotoolbox.h
- libavutil/version.h 1 addition, 1 deletionlibavutil/version.h
Loading
Please register or sign in to comment