![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * Copyright (C) 2010 Texas Instruments Inc 0004 */ 0005 #ifndef _VPBE_TYPES_H 0006 #define _VPBE_TYPES_H 0007 0008 enum vpbe_version { 0009 VPBE_VERSION_1 = 1, 0010 VPBE_VERSION_2, 0011 VPBE_VERSION_3, 0012 }; 0013 0014 /* vpbe_timing_type - Timing types used in vpbe device */ 0015 enum vpbe_enc_timings_type { 0016 VPBE_ENC_STD = 0x1, 0017 VPBE_ENC_DV_TIMINGS = 0x4, 0018 /* Used when set timings through FB device interface */ 0019 VPBE_ENC_TIMINGS_INVALID = 0x8, 0020 }; 0021 0022 /* 0023 * struct vpbe_enc_mode_info 0024 * @name: ptr to name string of the standard, "NTSC", "PAL" etc 0025 * @std: standard or non-standard mode. 1 - standard, 0 - nonstandard 0026 * @interlaced: 1 - interlaced, 0 - non interlaced/progressive 0027 * @xres: x or horizontal resolution of the display 0028 * @yres: y or vertical resolution of the display 0029 * @fps: frame per second 0030 * @left_margin: left margin of the display 0031 * @right_margin: right margin of the display 0032 * @upper_margin: upper margin of the display 0033 * @lower_margin: lower margin of the display 0034 * @hsync_len: h-sync length 0035 * @vsync_len: v-sync length 0036 * @flags: bit field: bit usage is documented below 0037 * 0038 * Description: 0039 * Structure holding timing and resolution information of a standard. 0040 * Used by vpbe_device to set required non-standard timing in the 0041 * venc when lcd controller output is connected to a external encoder. 0042 * A table of timings is maintained in vpbe device to set this in 0043 * venc when external encoder is connected to lcd controller output. 0044 * Encoder may provide a g_dv_timings() API to override these values 0045 * as needed. 0046 * 0047 * Notes 0048 * ------ 0049 * if_type should be used only by encoder manager and encoder. 0050 * flags usage 0051 * b0 (LSB) - hsync polarity, 0 - negative, 1 - positive 0052 * b1 - vsync polarity, 0 - negative, 1 - positive 0053 * b2 - field id polarity, 0 - negative, 1 - positive 0054 */ 0055 struct vpbe_enc_mode_info { 0056 unsigned char *name; 0057 enum vpbe_enc_timings_type timings_type; 0058 v4l2_std_id std_id; 0059 struct v4l2_dv_timings dv_timings; 0060 unsigned int interlaced; 0061 unsigned int xres; 0062 unsigned int yres; 0063 struct v4l2_fract aspect; 0064 struct v4l2_fract fps; 0065 unsigned int left_margin; 0066 unsigned int right_margin; 0067 unsigned int upper_margin; 0068 unsigned int lower_margin; 0069 unsigned int hsync_len; 0070 unsigned int vsync_len; 0071 unsigned int flags; 0072 }; 0073 0074 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |