[FFmpeg-devel] [PATCHv6 1/4] Move lavd/v4l2-common.* to lavc

Jorge Ramirez jorge.ramirez-ortiz at linaro.org
Fri Aug 25 22:01:43 EEST 2017


On 08/25/2017 02:50 PM, Paul B Mahol wrote:
> On 8/25/17, Jorge Ramirez-Ortiz <jorge.ramirez-ortiz at linaro.org> wrote:
>> From: Alexis Ballier <aballier at gentoo.org>
>>
>> In preparation to support the integation of the V4L2 API for encoding
>> and decoding, move v4l2 related files to libavcodec.
>>
>> v4l2-common was renamed to v4l2_fmt for clarity (v4l2-common.h belongs
>> to the V4L2 API)
>>
>> Signed-off-by: Alexis Ballier <aballier at gentoo.org>
>> Reviewed-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz at linaro.org>
>> ---
>>   configure                 |   6 ++-
>>   libavcodec/Makefile       |   1 +
>>   libavcodec/v4l2_fmt.c     | 105
>> ++++++++++++++++++++++++++++++++++++++++++++++
>>   libavcodec/v4l2_fmt.h     |  57 +++++++++++++++++++++++++
>>   libavdevice/Makefile      |   6 +--
>>   libavdevice/v4l2-common.c | 105
>> ----------------------------------------------
>>   libavdevice/v4l2-common.h |  61 ---------------------------
>>   libavdevice/v4l2.c        |  40 ++++++++++++------
>>   libavdevice/v4l2enc.c     |  12 +++++-
>>   9 files changed, 206 insertions(+), 187 deletions(-)
>>   create mode 100644 libavcodec/v4l2_fmt.c
>>   create mode 100644 libavcodec/v4l2_fmt.h
>>   delete mode 100644 libavdevice/v4l2-common.c
>>   delete mode 100644 libavdevice/v4l2-common.h
>>
> Does lavd stuff now depends on lavc?

um yes, v4l2 in/out devices (lavd) do use a common file now present in 
lavc (ie: v4l2_fmt.c).

see libavcodec/Makefile:

OBJS-$(CONFIG_V4L2)                    += v4l2_fmt.o
OBJS-$(CONFIG_V4L2_M2M)                += v4l2_m2m.o v4l2_buffers.o

also note that the common file doesn't depend on the new V4L2_M2M 
decoders/encoders being available (only on V4L2)






More information about the ffmpeg-devel mailing list