Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
media
soc_mediabus.h
Go to the documentation of this file.
1
/*
2
* SoC-camera Media Bus API extensions
3
*
4
* Copyright (C) 2009, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
9
*/
10
11
#ifndef SOC_MEDIABUS_H
12
#define SOC_MEDIABUS_H
13
14
#include <linux/videodev2.h>
15
#include <
linux/v4l2-mediabus.h
>
16
30
enum
soc_mbus_packing
{
31
SOC_MBUS_PACKING_NONE
,
32
SOC_MBUS_PACKING_2X8_PADHI
,
33
SOC_MBUS_PACKING_2X8_PADLO
,
34
SOC_MBUS_PACKING_EXTEND16
,
35
SOC_MBUS_PACKING_VARIABLE
,
36
SOC_MBUS_PACKING_1_5X8
,
37
};
38
44
enum
soc_mbus_order
{
45
SOC_MBUS_ORDER_LE
,
46
SOC_MBUS_ORDER_BE
,
47
};
48
60
enum
soc_mbus_layout
{
61
SOC_MBUS_LAYOUT_PACKED
= 0,
62
SOC_MBUS_LAYOUT_PLANAR_2Y_U_V
,
63
SOC_MBUS_LAYOUT_PLANAR_2Y_C
,
64
SOC_MBUS_LAYOUT_PLANAR_Y_C
,
65
};
66
76
struct
soc_mbus_pixelfmt
{
77
const
char
*
name
;
78
u32
fourcc
;
79
enum
soc_mbus_packing
packing
;
80
enum
soc_mbus_order
order
;
81
enum
soc_mbus_layout
layout
;
82
u8
bits_per_sample
;
83
};
84
90
struct
soc_mbus_lookup {
91
enum
v4l2_mbus_pixelcode
code
;
92
struct
soc_mbus_pixelfmt
fmt;
93
};
94
95
const
struct
soc_mbus_pixelfmt
*
soc_mbus_find_fmtdesc
(
96
enum
v4l2_mbus_pixelcode
code
,
97
const
struct
soc_mbus_lookup *
lookup
,
98
int
n
);
99
const
struct
soc_mbus_pixelfmt
*
soc_mbus_get_fmtdesc
(
100
enum
v4l2_mbus_pixelcode
code
);
101
s32
soc_mbus_bytes_per_line
(
u32
width
,
const
struct
soc_mbus_pixelfmt
*mf);
102
s32
soc_mbus_image_size
(
const
struct
soc_mbus_pixelfmt
*mf,
103
u32
bytes_per_line,
u32
height
);
104
int
soc_mbus_samples_per_pixel
(
const
struct
soc_mbus_pixelfmt
*mf,
105
unsigned
int
*numerator,
unsigned
int
*denominator);
106
unsigned
int
soc_mbus_config_compatible
(
const
struct
v4l2_mbus_config
*
cfg
,
107
unsigned
int
flags
);
108
109
#endif
Generated on Thu Jan 10 2013 14:52:55 for Linux Kernel by
1.8.2