[FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

Jorge Ramirez jorge.ramirez-ortiz at linaro.org
Mon Aug 7 22:28:33 EEST 2017


On 08/03/2017 01:53 AM, Mark Thompson wrote:
>> +        AV_OPT_TYPE_INT,\
>> +        {.i64 = V4L2_MEMORY_MMAP},\
>> +        0, INT_MAX, FLAGS },\
>> +    { "output_memory",\
>> +        "Output memory model: See V4L2_MEMORY_* in videodev2.h. This depends on the HW but default should work with most.",\
>> +        OFFSET(capture_pool.memory),\
>> +        AV_OPT_TYPE_INT,\
>> +        {.i64 = V4L2_MEMORY_MMAP},\
>> +        0, INT_MAX, FLAGS },\
>> +    { "num_output_pool_buffers",\
>> +        "Number of buffers in the output pool",\
>> +        OFFSET(output_pool.num_buffers),\
>> +        AV_OPT_TYPE_INT,\
>> +        { .i64 = 16 },\
>> +        4, INT_MAX, FLAGS }
> Can we attempt to set this automatically based on the codec?  16 won't be enough for worst-case H.264/H.265.
>

please could you suggest some defaults so I can prepare the table?


More information about the ffmpeg-devel mailing list