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