FFmpeg
libavcodec
v4l2_fmt.h
Go to the documentation of this file.
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 <stdint.h>
28
#include "
libavutil/pixfmt.h
"
29
#include "
codec_id.h
"
30
31
enum
AVPixelFormat
ff_v4l2_format_v4l2_to_avfmt
(uint32_t v4l2_fmt,
enum
AVCodecID
avcodec);
32
uint32_t
ff_v4l2_format_avcodec_to_v4l2
(
enum
AVCodecID
avcodec);
33
uint32_t
ff_v4l2_format_avfmt_to_v4l2
(
enum
AVPixelFormat
avfmt);
34
35
#endif
/* AVCODEC_V4L2_FMT_H*/
AVPixelFormat
AVPixelFormat
Pixel format.
Definition:
pixfmt.h:71
ff_v4l2_format_avcodec_to_v4l2
uint32_t ff_v4l2_format_avcodec_to_v4l2(enum AVCodecID avcodec)
Definition:
v4l2_fmt.c:112
codec_id.h
ff_v4l2_format_v4l2_to_avfmt
enum AVPixelFormat ff_v4l2_format_v4l2_to_avfmt(uint32_t v4l2_fmt, enum AVCodecID avcodec)
Definition:
v4l2_fmt.c:132
AVCodecID
AVCodecID
Identify the syntax and semantics of the bitstream.
Definition:
codec_id.h:49
pixfmt.h
ff_v4l2_format_avfmt_to_v4l2
uint32_t ff_v4l2_format_avfmt_to_v4l2(enum AVPixelFormat avfmt)
Definition:
v4l2_fmt.c:122
Generated on Thu Dec 5 2024 19:22:08 for FFmpeg by
1.8.17