Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 <[email protected]>
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 
37 };
38 
47 };
48 
65 };
66 
77  const char *name;
83 };
84 
90 struct soc_mbus_lookup {
92  struct soc_mbus_pixelfmt fmt;
93 };
94 
97  const struct soc_mbus_lookup *lookup,
98  int n);
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