[FFmpeg-devel] [FFmpeg-cvslog] lavc: enable hwaccel_flags option
Jun Zhao
mypopydev at gmail.com
Mon Dec 18 02:30:23 EET 2017
On 2017/12/17 0:04, Michael Niedermayer wrote:
> On Mon, Oct 09, 2017 at 10:24:30PM +0000, Jun Zhao wrote:
>> ffmpeg | branch: master | Jun Zhao <mypopydev at gmail.com> | Mon Oct 9 15:49:58 2017 +0800| [71e2ec017a1b51987d50b97d48b6a6114a58507d] | committer: Mark Thompson
>>
>> lavc: enable hwaccel_flags option
>>
>> Enable per-stream hwaccel_flags.
>>
>> Signed-off-by: Jun Zhao <jun.zhao at intel.com>
>> Signed-off-by: Mark Thompson <sw at jkqxz.net>
>>
>>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71e2ec017a1b51987d50b97d48b6a6114a58507d
>> ---
>>
>> libavcodec/options_table.h | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
>> index 12712fb541..2ac37c3ff1 100644
>> --- a/libavcodec/options_table.h
>> +++ b/libavcodec/options_table.h
>> @@ -576,6 +576,10 @@ static const AVOption avcodec_options[] = {
>> {"pixel_format", "set pixel format", OFFSET(pix_fmt), AV_OPT_TYPE_PIXEL_FMT, {.i64=AV_PIX_FMT_NONE}, -1, INT_MAX, 0 },
>> {"video_size", "set video size", OFFSET(width), AV_OPT_TYPE_IMAGE_SIZE, {.str=NULL}, 0, INT_MAX, 0 },
>> {"max_pixels", "Maximum number of pixels", OFFSET(max_pixels), AV_OPT_TYPE_INT64, {.i64 = INT_MAX }, 0, INT_MAX, A|V|S|D|E },
>> +{"hwaccel_flags", NULL, OFFSET(hwaccel_flags), AV_OPT_TYPE_FLAGS, {.i64 = AV_HWACCEL_FLAG_IGNORE_LEVEL }, 0, UINT_MAX, V|D, "hwaccel_flags"},
>> +{"ignore_level", "ignore level even if the codec level used is unknown or higher than the maximum supported level reported by the hardware driver", 0, AV_OPT_TYPE_CONST, { .i64 = AV_HWACCEL_FLAG_IGNORE_LEVEL }, INT_MIN, INT_MAX, V | D, "hwaccel_flags" },
>> +{"allow_high_depth", "allow to output YUV pixel formats with a different chroma sampling than 4:2:0 and/or other than 8 bits per component", 0, AV_OPT_TYPE_CONST, {.i64 = AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH }, INT_MIN, INT_MAX, V | D, "hwaccel_flags"},
>> +{"allow_profile_mismatch", "attempt to decode anyway if HW accelerated decoder's supported profiles do not exactly match the stream", 0, AV_OPT_TYPE_CONST, {.i64 = AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH }, INT_MIN, INT_MAX, V | D, "hwaccel_flags"},
> These flags are not documented in doc/* as other flags are, it seems it
> was forgotten to document them.
Will document the flags with other patch.
>
> [...]
More information about the ffmpeg-devel
mailing list