diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-03-11 19:21:04 +0300 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-07-08 18:02:37 +0300 |
commit | 0f2654c9a3eac1fd856a393047aacc4575620ecd (patch) | |
tree | 1da25de6aaae1c88db472fe3879b6de2ca2d2e85 /libavutil | |
parent | 83a940e7fb9640954d631870e2ec6e8b3fc528ed (diff) |
lavc: add mediacodec hwaccel support
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/pixdesc.c | 4 | ||||
-rw-r--r-- | libavutil/pixfmt.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 0dffa4dbdb..d88aaf7701 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -1974,6 +1974,10 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { .name = "qsv", .flags = AV_PIX_FMT_FLAG_HWACCEL, }, + [AV_PIX_FMT_MEDIACODEC] = { + .name = "mediacodec", + .flags = AV_PIX_FMT_FLAG_HWACCEL, + }, [AV_PIX_FMT_MMAL] = { .name = "mmal", .flags = AV_PIX_FMT_FLAG_HWACCEL, diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 0ed01c4844..6f71ac0483 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -303,6 +303,8 @@ enum AVPixelFormat { AV_PIX_FMT_GBRAP10BE, ///< planar GBR 4:4:4:4 40bpp, big-endian AV_PIX_FMT_GBRAP10LE, ///< planar GBR 4:4:4:4 40bpp, little-endian + AV_PIX_FMT_MEDIACODEC, ///< hardware decoding through MediaCodec + AV_PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions }; |