Linux Kernel
3.7.1
|
#include <media/v4l2-dev.h>
Go to the source code of this file.
Data Structures | |
struct | v4l2_priv_tun_config |
struct | v4l2_routing |
struct | v4l2_discrete_probe |
Enumerations | |
enum | v4l2_i2c_tuner_type { ADDRS_RADIO, ADDRS_DEMOD, ADDRS_TV, ADDRS_TV_WITH_DEMOD } |
#define TUNER_SET_CONFIG _IOW('d', 92, struct v4l2_priv_tun_config) |
Definition at line 186 of file v4l2-common.h.
#define V4L2_CTRL_MENU_IDS_END (0xffffffff) |
Definition at line 92 of file v4l2-common.h.
Definition at line 75 of file v4l2-common.h.
Definition at line 64 of file v4l2-common.h.
Definition at line 70 of file v4l2-common.h.
Definition at line 61 of file v4l2-common.h.
#define v4l2_warn | ( | dev, | |
fmt, | |||
arg... | |||
) | v4l2_printk(KERN_WARNING, dev, fmt , ## arg) |
Definition at line 67 of file v4l2-common.h.
Definition at line 37 of file v4l2-common.h.
Definition at line 52 of file v4l2-common.h.
Definition at line 41 of file v4l2-common.h.
Definition at line 47 of file v4l2-common.h.
#define v4l_printk | ( | level, | |
name, | |||
adapter, | |||
addr, | |||
fmt, | |||
arg... | |||
) | printk(level "%s %d-%04x: " fmt, name, i2c_adapter_id(adapter), addr , ## arg) |
Definition at line 34 of file v4l2-common.h.
#define v4l_warn | ( | client, | |
fmt, | |||
arg... | |||
) | v4l_client_printk(KERN_WARNING, client, fmt , ## arg) |
Definition at line 44 of file v4l2-common.h.
Definition at line 188 of file v4l2-common.h.
enum v4l2_i2c_tuner_type |
Definition at line 142 of file v4l2-common.h.
|
read |
v4l2_calc_aspect_ratio - calculate the aspect ratio based on bytes 0x15 and 0x16 from the EDID. - byte 0x15 from the EDID. - byte 0x16 from the EDID.
Determines the aspect ratio from the EDID. See VESA Enhanced EDID standard, release A, rev 2, section 3.6.2: "Horizontal and Vertical Screen Size or Aspect Ratio"
Definition at line 916 of file v4l2-common.c.
int v4l2_chip_ident_i2c_client | ( | struct i2c_client * | c, |
struct v4l2_dbg_chip_ident * | chip, | ||
u32 | ident, | ||
u32 | revision | ||
) |
int v4l2_chip_match_host | ( | const struct v4l2_dbg_match * | match | ) |
Definition at line 230 of file v4l2-common.c.
int v4l2_chip_match_i2c_client | ( | struct i2c_client * | c, |
const struct v4l2_dbg_match * | match | ||
) |
int v4l2_ctrl_check | ( | struct v4l2_ext_control * | ctrl, |
struct v4l2_queryctrl * | qctrl, | ||
const char *const * | menu_items | ||
) |
Definition at line 87 of file v4l2-common.c.
Definition at line 553 of file v4l2-ctrls.c.
Definition at line 187 of file v4l2-common.c.
Definition at line 115 of file v4l2-common.c.
int v4l2_ctrl_query_menu | ( | struct v4l2_querymenu * | qmenu, |
struct v4l2_queryctrl * | qctrl, | ||
const char *const * | menu_items | ||
) |
Definition at line 139 of file v4l2-common.c.
int v4l2_ctrl_query_menu_valid_items | ( | struct v4l2_querymenu * | qmenu, |
const u32 * | ids | ||
) |
Definition at line 161 of file v4l2-common.c.
bool v4l2_detect_cvt | ( | unsigned | frame_height, |
unsigned | hfreq, | ||
unsigned | vsync, | ||
u32 | polarities, | ||
struct v4l2_dv_timings * | fmt | ||
) |
v4l2_detect_cvt - detect if the given timings follow the CVT standard - the total height of the frame (including blanking) in lines. - the horizontal frequency in Hz. - the height of the vertical sync in lines. - the horizontal and vertical polarities (same as struct v4l2_bt_timings polarities). - the resulting timings.
This function will attempt to detect if the given values correspond to a valid CVT format. If so, then it will return true, and fmt will be filled in with the found CVT timings.
Definition at line 675 of file v4l2-common.c.
bool v4l2_detect_gtf | ( | unsigned | frame_height, |
unsigned | hfreq, | ||
unsigned | vsync, | ||
u32 | polarities, | ||
struct v4l2_fract | aspect, | ||
struct v4l2_dv_timings * | fmt | ||
) |
v4l2_detect_gtf - detect if the given timings follow the GTF standard - the total height of the frame (including blanking) in lines. - the horizontal frequency in Hz. - the height of the vertical sync in lines. - the horizontal and vertical polarities (same as struct v4l2_bt_timings polarities). - preferred aspect ratio. GTF has no method of determining the aspect ratio in order to derive the image width from the image height, so it has to be passed explicitly. Usually the native screen aspect ratio is used for this. If it is not filled in correctly, then 16:9 will be assumed. - the resulting timings.
This function will attempt to detect if the given values correspond to a valid GTF format. If so, then it will return true, and fmt will be filled in with the found GTF timings.
Definition at line 832 of file v4l2-common.c.
|
read |
Definition at line 958 of file v4l2-common.c.
|
read |
|
read |
unsigned short v4l2_i2c_subdev_addr | ( | struct v4l2_subdev * | sd | ) |
void v4l2_i2c_subdev_init | ( | struct v4l2_subdev * | sd, |
struct i2c_client * | client, | ||
const struct v4l2_subdev_ops * | ops | ||
) |
const unsigned short* v4l2_i2c_tuner_addrs | ( | enum v4l2_i2c_tuner_type | type | ) |
void v4l_bound_align_image | ( | unsigned int * | w, |
unsigned int | wmin, | ||
unsigned int | wmax, | ||
unsigned int | walign, | ||
unsigned int * | h, | ||
unsigned int | hmin, | ||
unsigned int | hmax, | ||
unsigned int | halign, | ||
unsigned int | salign | ||
) |
Definition at line 516 of file v4l2-common.c.
int v4l_fill_dv_preset_info | ( | u32 | preset, |
struct v4l2_dv_enum_preset * | info | ||
) |
v4l_fill_dv_preset_info - fill description of a digital video preset - preset value - pointer to struct v4l2_dv_enum_preset
drivers can use this helper function to fill description of dv preset in info.
Definition at line 561 of file v4l2-common.c.
bool v4l_match_dv_timings | ( | const struct v4l2_dv_timings * | t1, |
const struct v4l2_dv_timings * | t2, | ||
unsigned | pclock_delta | ||
) |
v4l_match_dv_timings - check if two timings match - compare this v4l2_dv_timings struct... - with this struct. - the allowed pixelclock deviation.
Compare t1 with t2 with a given margin of error for the pixelclock.
Definition at line 608 of file v4l2-common.c.