diff options
author | Linjie Fu <linjie.fu@intel.com> | 2020-01-15 15:01:42 +0800 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-24 00:09:51 +0000 |
commit | 85cc7bcd4cf1e1963c22c1ea1594160a33da4fee (patch) | |
tree | 659ccca840187fcf4c16458c3970bb3499593b9d /libavcodec/vaapi_hevc.h | |
parent | 0d83fcc07b31c528c4fb95528b8e50c440eefc87 (diff) | |
download | ffmpeg-85cc7bcd4cf1e1963c22c1ea1594160a33da4fee.tar.gz |
lavc/vaapi_hevc: add function to find exact va_profile for REXT
Add vaapi_parse_rext_profile and use profile constraint flags to
determine the exact va_profile for HEVC_REXT.
If profile mismatch is allowed, select Main profile by default.
Add build object in Makefile for h265_profile_level dependency.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'libavcodec/vaapi_hevc.h')
-rw-r--r-- | libavcodec/vaapi_hevc.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libavcodec/vaapi_hevc.h b/libavcodec/vaapi_hevc.h new file mode 100644 index 0000000000..b3b0e6fc1e --- /dev/null +++ b/libavcodec/vaapi_hevc.h @@ -0,0 +1,27 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_VAAPI_HEVC_H +#define AVCODEC_VAAPI_HEVC_H + +#include <va/va.h> +#include "avcodec.h" + +VAProfile ff_vaapi_parse_hevc_rext_profile(AVCodecContext *avctx); + +#endif /* AVCODEC_VAAPI_HEVC_H */ |