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

📄 rmhwlibprop.inc

📁 神龙卡开发原代码
💻 INC
📖 第 1 页 / 共 4 页
字号:
    */RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIO_SET, eAudioHwDecMode)    /**     Information valid only in audio decoding Mpeg state.    Mpeg standard states:        0 - no emphasis        1 - 50/15 microsec. emphasis        2 - reserved        3 - CCITT J.17    */RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIO_SET, eAudioHwDecEmphasis)    /**     Information valid only in audio decoding Mpeg state.    */RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIO_SET, eAudioHwDecCopyright)    /** setting for DVD AUDIO parameters:    ChannelAssign        HwLib default eaDvdAudio33_LfRfCLfeLsRs    GR1BitsPerSample     HwLib default 24    GR2BitsPerSample     HwLib default 16    GR1SampleRate        HwLib default 96000Hz    GR2SampleRate        HwLib default 48000Hz    */RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIO_SET, eaDvdAudioConf)RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIO_SET, eaMax)/*****************************************************/    /**     etimPcrInfo (set/get) uses PCR_INFO structure        Name              Default    Comments/Unit        -----------------------------------------------------------------------------        PcrEnable              0    // 0/1 disables/enables Pcr mode;        RecoveryTime          16    // log2 ( RecoveryTime / 200us )                                    // e.g. For 16 -> RecoveryTime = 2^16 =13.1072sec        PcrIntrPeriodUs    20000    // microsecond;    e.g 200000 = 200ms ->5 intr/sec                                    // It can be changed to 20000=20ms->50 intr/sec,                                    // for a smoother control of the voltage control        TimeResolution     90000    // 90K unit;    e.g. 90000 = 1sec - specifies                                       the unit for the PCR_time        DeltaPCR_SCR_Max    9000    // Max. accepted diff. between incoming PCR and board's clock SCR                                    // 90K unit;    e.g. 9000 = 100ms        DeltaSCR_APTS_Max    180    // Max. accepted diff. between SCR and the incoming AudioPTS                                    // 90K unit;    e.g. 180 = 2ms        HwVcxo                 5    // Galaxy2 Siemens use PIO 5 for Vcxo        PpmRange             150    // +/- 150ppm    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimPcrInfo)    /**     etimPcrTime uses etimSystemTimeClock_type structure, where    dwTimeResolution = 90000 for 90k pts unit, 1000 for ms unit    dwlTime          = time stamp    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimPcrTime)    /**     Replaces IDecodeBoard_ReadSCR/WriteSCR.    Without setting etimSystemTimeClock, after VideoHwStop or AudioHwStop the first    Pts received in SendVideoPayload or    SendAudioPayload will be used to update    the decoder's reference    clock.    If etimSystemTimeClock is set after VideoHwStop or AudioHwStop and before sending    data and Pts the Pts from data will be disregarded.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimSystemTimeClock)    /**     Returns the timestamp of the last decoded video frame (displayed or not).    Replaces IDecoderBoard_ReadHwPts45k.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimLastDecodedVideoFrameTime)    /**     Returns the timestamp of the last decoded audio frame.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimLastDecodedAudioFrameTime)    /**     etimVOPTimeIncrRes - only for Mpeg4.    Should be set before starting play with the value from DSI info.    Returns the previously set:     - fixed VOP time increment resolution if the playback has forced rate, else     - VOP time increment resolution,    HwLib default 30.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimVOPTimeIncrRes)    /**     etimVideoCTSTimeScale - only for Mpeg4.    It should be set by mp4 parser.    HwLib default 1000.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimVideoCTSTimeScale)    /**     etimAudioCTSTimeScale - only for Mpeg4.    It should be set by mp4 parser.    HwLib default 1000.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimAudioCTSTimeScale)    /**         Returns the timestamp of the last displayed video frame.    */RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimVideoFrameDisplayedTime)RM_DEFINE_FULL_PROPERTY(HWLIB, TIME_SET, etimMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, SUBPICTURE_SET, eSubpictureCmd)RM_DEFINE_FULL_PROPERTY(HWLIB, SUBPICTURE_SET, eSubpictureUpdatePalette)RM_DEFINE_FULL_PROPERTY(HWLIB, SUBPICTURE_SET, eSubpictureUpdateButton)RM_DEFINE_FULL_PROPERTY(HWLIB, SUBPICTURE_SET, eSubpictureMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEO_DECODER_SET, evdAccessRegister)RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEO_DECODER_SET, evdTvStandard)RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEO_DECODER_SET, evdAudioClock)RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEO_DECODER_SET, evdInputSource)RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEO_DECODER_SET, evdMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, MPEG_ENCODER_SET, emeAccessRegister)RM_DEFINE_FULL_PROPERTY(HWLIB, MPEG_ENCODER_SET, emeXferUcodeParameters)RM_DEFINE_FULL_PROPERTY(HWLIB, MPEG_ENCODER_SET, emeMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, DVI_TRANSMITTER_SET, edtAccessRegister)RM_DEFINE_FULL_PROPERTY(HWLIB, DVI_TRANSMITTER_SET, edtOutputEnable)RM_DEFINE_FULL_PROPERTY(HWLIB, DVI_TRANSMITTER_SET, edtMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecAudioInOutConfig)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecAudioDacBitsPerSample)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecVideoStd)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecOsdFlicker)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecPciBurst)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecForceFixedVOPRate)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecAccessRegister)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecCSSChlg)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecCSSKey1)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecCSSChlg2)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecCSSKey2)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecCSSDiscKey)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecCSSTitleKey)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecStatus)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecDataFifo)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecPacketsFifo)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecErrorCode)RM_DEFINE_FULL_PROPERTY(HWLIB, DECODER_SET, edecMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, TVENCODER_SET, etvNtscPedestal)RM_DEFINE_FULL_PROPERTY(HWLIB, TVENCODER_SET, etvLumaFilter)RM_DEFINE_FULL_PROPERTY(HWLIB, TVENCODER_SET, etvChromaFilter)RM_DEFINE_FULL_PROPERTY(HWLIB, TVENCODER_SET, etvColorBars)RM_DEFINE_FULL_PROPERTY(HWLIB, TVENCODER_SET, etvMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, TVTUNER_SET, eTvTunerChannel)RM_DEFINE_FULL_PROPERTY(HWLIB, TVTUNER_SET, eTvTunerMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, OSD_SET, eOsdCommand)RM_DEFINE_FULL_PROPERTY(HWLIB, OSD_SET, eOsdHiLiWindow)RM_DEFINE_FULL_PROPERTY(HWLIB, OSD_SET, eOsdDestinationWindow)RM_DEFINE_FULL_PROPERTY(HWLIB, OSD_SET, eOsdMax)/*****************************************************/RM_DEFINE_FULL_PROPERTY(HWLIB, I2C_SET, eI2cInit)RM_DEFINE_FULL_PROPERTY(HWLIB, I2C_SET, eI2cAccess)RM_DEFINE_FULL_PROPERTY(HWLIB, I2C_SET, eI2cMax)/*****************************************************/    /** eviCommand     */RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEOIN_SET, eviCommand)    /** eviParams property is applied to the hardware:          - immediately when eviCommand_InitCapture property is send          - at first VSync after SetProperty if decoder is in StartCapture state already        The x,y,w,h, members define the captured window relative to VSync/HSync        for 601 or embedded syncs for 656.        In 601 mode:           the beginning of a line is set by the hsync pulse;           the beginning of a field/frame is set by the vsync pulse.           Therefore, cropping is necessary to remove the horizontal and vertical blankings.        In 656 mode:           The active video is directly extracted from the data flow using the protocol embedded flags.           There is no blanking to remove.        x specifies how many pixels will be skipped at the beginning of each line.        y specifies how many lines will be skipped at the beginning of each frame.           If the content is progressive y lines will be skipped at every VSync. If the           content is interlaced only y/2 lines will be skipped at every VSync(per field).        w specifies the pixel width of the picture to be captured - it should           be multiple of 8 for packed option and multiple of 2 for unpacked option        h specifies the height of the picture (frame) to be captured. It should be even.        OutputLineLength specifies the horizontal size of the image sent to DRAM - it should           be smaller or equal than width w, otherwise the SetProperty will return failure.           By default should be equal with w and no scaling will be used.           If it is smaller then width, horizontal downscale is done by VideoIn block        Ccir;            // CCIR_656 or CCIR_601        ChromaDownScale; // YUV420 or YUV422 format        YuvPacked;       // 1 for luma & chroma captured packed        InterlacedSource;// 1 if the video source is interlaced, 0 for progressive        InvertField;     // CCIR_NON_INVERT_FIELD or CCIR_INVERT_FIELD        BitsPerClock;    // 8 or 16 bits        Vip20;           // 1 for VIP2.0; 0 for VIP1.x        HSyncPolarity;   // 0 for active low; 1 for active high        VSyncPolarity;   // 0 for active low; 1 for active high        VSyncActiveEdge; // 0 for trailing edge; 1 for leading edge        Here is an example for 601 (eviHSyncPolarity active low, eviVSyncPolarity active low, eviVSyncActiveEdge leading edge).        O is the origin for capture.        HSync  ---------+ +-----------------------------+ +--                        v |                             v |                        +-+                             +-+        VSync  +<-+     O-------------------------------+               |        |        ^                      |               +--+     |        |                      |                  |     |        | y                    |    x = 108                  |     |        v                      |    y =  20                  |     |     +---------------------+ ^ |    w = 720                  |     |<-x->|                     | | |    h = 480                  |     |     |                     | | |    OutputLineLength = 720                  |     |     |                     | | |                  |     |     |                     | h |                  |     |     |                     | | |                  |     |     |                     | | |                  |     |     +---------------------+ v |                  |     |     <----------w---------->   |               <--+     +-------------------------------+    */RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEOIN_SET, eviParams)RM_DEFINE_FULL_PROPERTY(HWLIB, VIDEOIN_SET, eviMax)/*****************************************************/    /** ehwTestMpegDecoderInitialize does the minimum required to    initialize testing    */RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestMpegDecoderInitialize)    /** ehwTestMpegDecoderRegisters test registers read/write     */RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestMpegDecoderRegisters)    /** ehwTestMpegDecoderProgramMemory test internal program memory    */RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestMpegDecoderProgramMemory)    /** ehwTestMpegDecoderDataMemory test internal data memory    */RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestMpegDecoderDataMemory)    /** ehwTestDramSlave test entire Dram using slave channel    */RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestDramSlave)    /** ehwTestDramMaster test entire Dram using master channel    */RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestDramMaster)RM_DEFINE_FULL_PROPERTY(HWLIB, HARDWARE_TEST_SET, ehwTestMax)/*****************************************************/    /** eAudioInCommand can be one of eAudioInCommand_StartCapture and    eAudioInCommand_StopCapture.    */RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIOIN_SET, eAudioInCommand)    /** eAudioInParams property should be called before eAudioInCommand    to set the parameters of the input.    For digital connection the input parameters should be equal with the    parameters of the digital output connected.    For analog connection the input parameters should be equal with the    ADC (analog-digital converter) parameters.    */RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIOIN_SET, eAudioInParams)RM_DEFINE_FULL_PROPERTY(HWLIB, AUDIOIN_SET, eAudioInMax)/*****************************************************/

⌨️ 快捷键说明

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