⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmdline_options.h

📁 Sample code for use on smp 863x processor.
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************** Copyright © 2001-2003   Sigma Designs, Inc. All Rights Reserved Proprietary and Confidential *****************************************//**  @file   cmdline_options.h  @brief    Structs, init and parse functions for the options given  to the sample apps.    @author Oriol Prieto  @date   2005-03-16*/#ifndef __CMDLINE_OPTIONS_H__#define __CMDLINE_OPTIONS_H__#ifndef ALLOW_OS_CODE#define ALLOW_OS_CODE#endif #include "rmdef/rmdef.h"RM_EXTERN_C_BLOCKSTARTenum disk_control_state {	DISK_CONTROL_STATE_DISABLE,	DISK_CONTROL_STATE_SLEEPING,	DISK_CONTROL_STATE_RUNNING};enum disk_control_action {	DISK_CONTROL_ACTION_SLEEP,	DISK_CONTROL_ACTION_RUN,	DISK_CONTROL_ACTION_RUN_NOWAIT};typedef RMstatus (*RMDiskControl)(const enum disk_control_action action);struct osd_picture_info{	RMbool enable;	RMbool alpha_merge;	RMascii *filename;	RMascii *alpha_filename;	RMuint32 dramblock;	RMuint32 alpha;	RMbool zoom;	enum EMhwlibColorSpace color_space;	RMuint32 scaler;	enum DCCRoute route;	struct EMhwlibDisplayWindow source_window;	struct EMhwlibDisplayWindow output_window;	enum PictureOrientation orientation;	struct EMhwlibNonLinearScalingMode nonlinearmode;	struct EMhwlibBlackStripMode blackstrip;	struct EMhwlibCutStripMode cutstrip;	RMuint32 lock_scaler;};// For ActiveFormat calculations:struct active_format_context {	RMuint32 MixerModuleID;  // module ID of the route's mixer	struct EMhwlibActiveFormatDescription MixerAFD;  // active format description of the outputs connected to MixerModuleID	RMbool MixerVariableAR; 	RMuint32 HDSDModuleID;  // module ID of the HD->SD downconverter, if active, otherwise 0	struct EMhwlibActiveFormatDescription HDSDAFD;  // active format description of the outputs connected to HDSDModuleID	RMbool HDSDVariableAR;};struct display_cmdline {	RMbool configure_outports;	RMuint32 video_scaler;	RMuint32 video_alpha;	enum EMhwlibTVStandard standard;	enum EMhwlibTVStandard sd_standard;	enum EMhwlibTVStandard sd_standard_50Hz;	enum EMhwlibTVStandard sd_standard_60Hz;	RMbool use_hdsd_conversion;	RMbool allow_otf;	RMbool allow_buf;	RMbool sd_component;	RMbool sd_autodetect;	RMbool sd_cav_1080p;  // allow 1080p on component out	RMascii vidmode_filename[2048];	enum EMhwlibTVStandard vga_standard;	enum DCCVideoConnector connector;	enum EMhwlibComponentMode component;	enum EMhwlibColorSpace color_space;  // output color space	enum EMhwlibColorSpace mixer_color_space;	RMuint32 bus_size;	RMuint32 ar_x;	RMuint32 ar_y;	RMbool active_format_valid;	enum EMhwlibActiveFormat active_format;	RMuint32 sd_ar_x;	RMuint32 sd_ar_y;	RMbool sd_active_format_valid;	enum EMhwlibActiveFormat sd_active_format;	RMuint32 target_ar_x;	RMuint32 target_ar_y;	struct active_format_context afd_info;	struct EMhwlibDisplayWindow source_window;	struct EMhwlibDisplayWindow output_window;	struct osd_picture_info osd_pictures[2];	RMuint32 agc_level;          /* macrovision pulses 0, 1, 2, 3. Usually is same value as aps. */	RMuint32 agc_version;        /* one of AGC_VERSION_0_CONSTANT_BPP or AGC_VERSION_1_ALTERNATE_BPP  */	RMuint32 aps_level;          /* analog protection system */	RMuint32 cgmsa;              /* copy generation management system 0, 1, 2, 3 */	RMuint32 rcd;                /* redistribution control descriptor */	RMuint32 asb;                /* analog source bit */	RMascii *dump_osd_dir;	enum EMhwlibComponentOrder component_order;	enum EMhwlibScalerFieldSelection field_selection;	enum DH_device_state dvi_hdmi_state;	enum DH_vendor_parts dvi_hdmi_part;	RMbool dvi_hdmi_hdcp;	RMbool dvi_hdmi_display_edid;	RMuint32 dvi_hdmi_edid_vfreq;  // preferred vsync frequency (50, 59, 60 etc.)	RMuint32 dvi_hdmi_edid_hsize;  // preferred horizontal active size	RMuint32 dvi_hdmi_edid_vsize;  // preferred vertical active size	RMbool dvi_hdmi_edid_intl;     // preferred interlaced (TRUE) / progressive (FALSE) mode	RMuint64 edid_exclude_mask;    // which VICs to exclude	RMuint64 edid_exclude_mask_vfreq;	RMuint64 edid_exclude_mask_asp;	RMuint64 edid_force_mask;      // which VICs to prefer	RMuint64 edid_force_mask_vfreq;	RMuint64 edid_force_mask_asp;	RMuint32 edid_max_pixclk;      // minimal pixel clock of the source, 0 = disable limit	RMuint32 edid_min_pixclk;      // maximum pixel clock of the source, 0 = disable limit	RMuint32 edid_max_hfreq;       // minimal horizontal frequency of the source, 0 = disable limit	RMuint32 edid_min_hfreq;       // maximum horizontal frequency of the source, 0 = disable limit	RMuint32 edid_max_vfreq;       // minimal vertical frequency of the source, 0 = disable limit	RMuint32 edid_min_vfreq;       // maximum vertical frequency of the source, 0 = disable limit	RMbool hdmi_monitor;  // TRUE: HDMI monitor/TV, FALSE: DVI monitor (no AVI frames, no audio)	RMbool hdmi_force;  // TRUE: force hdmi_monitor state, FALSE: determine hdmi_monitor state from monitor EDID	enum DH_EDID_select edid_sel;	enum DH_EDID_select vga_edid_sel;	RMuint32 dvi_hdmi_edid_descriptor; // 0: use default descr., 1 or higher: use specific short descriptor from EDID	RMbool dvi_hdmi_edid_write;     // program content of a file into display's EDID EEPROM	RMbool dvi_hdmi_edid_read;      // read display's EDID into a file	RMbool dvi_hdmi_edid_override;  // use content of a file instead of display's EDID	RMascii *dvi_hdmi_edid_file;    // file name for previous three settings	struct EMhwlibNonLinearScalingMode nonlinearmode;	struct EMhwlibBlackStripMode blackstrip;	struct EMhwlibCutStripMode cutstrip;	enum EMhwlibScalingMode scalingmode;	enum EMhwlibDeinterlacingMode deinterlacingmode;	struct DispMainVideoScaler_DeinterlacingMotionConfig_type deinterlacing_motion_config;	struct DispMainVideoScaler_DeinterlacingProportion_type deinterlacing_proportion;	struct EMhwlibLumaKeying luma_key;	RMuint32 lock_scaler;	RMbool do_pulldown;	RMuint32 color_degradation_boundary;	RMbool show_hwc;	enum DCCInitMode init_mode;	enum EMhwlibDigitalTimingSignal dig_protocol;	RMbool dig_force_doublerate;	RMbool dig_doublerate;	RMbool dig_clk_normal;	RMbool dig_ddr;	RMbool dig_inv_cap_clk;	RMuint32 dig_delay;	RMbool dig_force_delay;	RMbool dig_vsync_delay;	RMbool dig_trailing_edge;	RMbool chroma_sync;	RMbool scart_enable;	RMuint32 scart_en_pio;	RMbool scart_widescreen;	RMuint32 scart_ws_pio;	struct dh_context *dh_info;	RMbool dh_first_run;	RMuint32 i2c_module;	RMuint32 i2c_speed;	RMbool i2c_ddc_on_tx;	RMuint32 dvi_reset_gpio;	RMbool hdmi_de;	RMbool hdmi_active_format_valid;	enum DH_active_format_aspect_ratio hdmi_active_format;	RMuint32 hdmi_bar_top;	RMuint32 hdmi_bar_bottom;	RMuint32 hdmi_bar_left;	RMuint32 hdmi_bar_right;	enum EMhwlibScanInfo hdmi_scan;	RMascii *hdmi_spd_vendor;	RMascii *hdmi_spd_product;	enum DH_source_dev_info hdmi_spd_class;	RMuint32 tmds_threshold;	enum GPIOId_type tmds_gpio;	enum GPIOId_type filter_gpio_start;	RMuint32 filter_gpio_num;	RMuint32 filter_gpio_val;	RMbool force_route;	enum DCCRoute route;	RMuint32 genlock_input;  // Input ModuleID of sync source	RMuint8 genlock_min;  // min phase	RMuint8 genlock_max;  // max phase	RMuint32 input;	struct DCCVideoSource *input_videosource;	enum EMhwlibTVStandard input_mode;	enum EMhwlibDigitalTimingSignal input_timingsignal;	RMbool input_vvld;	RMuint32 input_bussize;	RMbool input_invv;	RMbool input_invh;	RMbool input_usev2;	RMbool input_interlaced;	struct EMhwlibDisplayTimeInterval time_interval;	RMbool force_DACCompDisable;	RMbool DACCompDisable;	RMbool force_DACDisable;	struct EMhwlibDACDisable DACDisable;	RMbool force_LumaChromaDelay;	enum EMhwlibLumaChromaDelay LumaChromaDelay;	RMbool force_TripleCVBS;	RMbool TripleCVBS;	RMbool force_LineCrop;	struct EMhwlibLineCrop LineCrop;	RMuint32 gamma_table;	RMbool disable_pixel_timer;	RMbool hdmi_convert;	enum EMhwlibColorSpace hdmi_color_space;	enum EMhwlibSamplingMode hdmi_sampling_mode;	RMuint32 hdmi_component_depth;	struct EMhwlibDownScalingMode downscalingmode;	struct DispMainVideoScaler_FilterSelection_type filtermode;};struct capture_cmdline {	enum EMhwlibTVStandard TVStandard;	RMbool guess;  // guess the TV standard	RMuint32 dram;  // number of the DRAM bank to use	enum EMhwlibColorSpace InputColorSpace;	enum EMhwlibColorSpace SurfaceColorSpace;	enum EMhwlibSamplingMode SamplingMode;	enum EMhwlibColorMode ColorMode;	enum EMhwlibInputColorFormat InputColorFormat;	RMuint32 InputModuleID;	enum EMhwlibDigitalTimingSignal DigitalTimingSignal;	RMbool UseVideoValid;	RMuint32 bussize;	RMbool DualEdge;	RMbool DualEdgeWidth;	RMbool DualEdgeInvert;	RMbool InvertVSync;	RMbool InvertHSync;	RMint32 over_pos_x;  // shifting of the capture frame on the input field	RMint32 over_pos_y;	RMuint32 over_width;  // how much to add for overscan capture	RMuint32 over_height;	// intermediate params to calc over_xxx	RMint32 shift_x;  // shifting of the capture frame on the input field	RMint32 shift_y;	RMuint32 ov_top;  // how much to add for overscan capture	RMuint32 ov_bot;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -