1 /* 2 * V4L2 format helper functions 3 * 4 * Copyright (C) 2017 Alexis Ballier <aballier@gentoo.org> 5 * Copyright (C) 2017 Jorge Ramirez <jorge.ramirez-ortiz@linaro.org> 6 * 7 * This file is part of FFmpeg. 8 * 9 * FFmpeg is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * FFmpeg is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with FFmpeg; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 */ 23 24 #ifndef AVCODEC_V4L2_FMT_H 25 #define AVCODEC_V4L2_FMT_H 26 27 #include "libavcodec/avcodec.h" 28 #include "libavutil/pixfmt.h" 29 30 enum AVPixelFormat ff_v4l2_format_v4l2_to_avfmt(uint32_t v4l2_fmt, enum AVCodecID avcodec); 31 uint32_t ff_v4l2_format_avcodec_to_v4l2(enum AVCodecID avcodec); 32 uint32_t ff_v4l2_format_avfmt_to_v4l2(enum AVPixelFormat avfmt); 33 34 #endif /* AVCODEC_V4L2_FMT_H*/ 35