On 07/09/17 21:47, wm4 wrote:
> On Thu,  7 Sep 2017 20:49:04 +0100
> Mark Thompson <[email protected]> wrote:
> 
>> ---
>> (Also version bump.)
>>
>> Written intending to also be useful for encoders, but there won't actually 
>> be any implementations.
>>
>>
>>  doc/APIchanges       |  3 +++
>>  libavcodec/avcodec.h | 69 
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 72 insertions(+)
>> ...
>> +
>> +typedef struct AVCodecHWConfig {
>> +    /**
>> +     * A hardware pixel format which the codec can use.
>> +     */
>> +    enum AVPixelFormat pix_fmt;
>> +    /**
>> +     * Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible
>> +     * setup methods which can be used with this configuration.
>> +     */
>> +    int methods;
>> +    /**
>> +     * Set if this configuration is for a decoder which uses AVHWAccel.
>> +     */
>> +    int hwaccel;
> 
> So a bool, i.e. 1 or 0?

Yes.  I considered it being another flag in methods, but I think that would 
make that field less clear.  I'm not sure that the user really wants to see 
this flag, but there isn't really anywhere else to sensibly put it.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to