[FFmpeg-devel] [PATCH-v2] avcodec: add new Videotoolbox hwaccel.

Sebastien Zwickert dilaroga at gmail.com
Sat Jul 11 18:38:47 CEST 2015


> On 05 Jul 2015, at 16:41, Sebastien Zwickert <dilaroga at gmail.com> wrote:
> 
> As VDA is a wrapper of VideoToolbox framework, the changes base vda implementation
> upon the videotoolbox implementation to factorize common part of code.
> 
> The changes allow the user to request a custom pixel format to the decoder
> via a CLI option called videotoolbox_pixfmt.
> 
> ---
> Changelog                                        |   1 +
> MAINTAINERS                                      |   1 +
> Makefile                                         |   5 +-
> configure                                        |  19 +-
> ffmpeg.h                                         |   3 +
> ffmpeg_opt.c                                     |   8 +-
> ffmpeg_vda.c                                     | 136 -----
> ffmpeg_videotoolbox.c                            | 187 ++++++
> libavcodec/Makefile                              |  12 +-
> libavcodec/allcodecs.c                           |   5 +
> libavcodec/h263dec.c                             |   3 +
> libavcodec/h264_slice.c                          |   4 +
> libavcodec/mpeg12dec.c                           |   3 +
> libavcodec/vda.c                                 |   2 +-
> libavcodec/vda_h264.c                            | 154 +----
> libavcodec/{vda_internal.h => vda_vt_internal.h} |  32 +-
> libavcodec/version.h                             |   2 +-
> libavcodec/videotoolbox.c                        | 690 +++++++++++++++++++++++
> libavcodec/videotoolbox.h                        | 126 +++++
> libavutil/pixdesc.c                              |   4 +
> libavutil/pixfmt.h                               |   2 +
> 21 files changed, 1112 insertions(+), 287 deletions(-)
> delete mode 100644 ffmpeg_vda.c
> create mode 100644 ffmpeg_videotoolbox.c
> rename libavcodec/{vda_internal.h => vda_vt_internal.h} (50%)
> create mode 100644 libavcodec/videotoolbox.c
> create mode 100644 libavcodec/videotoolbox.h

If no objection I’ll push this patch rebased in a few days.

> [...]

—
Sebastien Zwickert


More information about the ffmpeg-devel mailing list