h264_encoder_dm365_userguide

合集下载

MDVR-H264说明书(中文版)

MDVR-H264说明书(中文版)

车载DVR 使用说明书注意:产品安装前必读目录1 注意事项---------------------------------------------------------------------------32 产品规格---------------------------------------------------------------------------43 I/O 报警输入输出说明--------------------------------------------------------44 遥控器使用说明-----------------------------------------------------------------54.1 遥控器按键说明--------------------------------------------------------54.2 软键盘输入说明--------------------------------------------------------65 录像机使用操作说明----------------------------------------------------------65.1 用户登录-----------------------------------------------------------------85.2 预览界面-----------------------------------------------------------------85.3 录像检索---------------------------------------------------------------95.3.1 详细文件及备份说明--------------------------------------105.4 录像设置------------------------------------------------------------------115.4.1 帧率动态配置等说明--------------------------------------115.4.2 小码流配置-----------------------------------------------------125.5 功能设置------------------------------------------------------------------135.5.1 时间设置-------------------------------------------------------145.5.2存储设备管理-------------------------------------------------145.5.3 设备维护,系统升级说明--------------------------------155.5.4 系统设置-------------------------------------------------------165.6 系统信息------------------------------------------------------------------165.7 车辆信息------------------------------------------------------------------165.7.1 开关机设置-----------------------------------------------------175.8 显示设置------------------------------------------------------------------185.9 密码管理------------------------------------------------------------------196 3G联网及平台使用---------------------------------------------------------1921、注意事项一、航空头接头的定义:1 红色:+12V正极2 黑色:公共GND3 白色:音频4 黄色:视频二、电源线的定义:红色:DC12V或24V输入黑色:接地GND黄色:点火线ACC三、机器要能正常启动,一定要按以下操作:1、一定要把钥匙锁上(锁也是机器开关);2、电源线的红色要接电瓶的正极,黑色线接电瓶的负极,黄色线接车钥匙的点火线,也就是ACC;或电源线的红色和黄色线并在一起做正极,黑色做负极。

视频网络高清编码器产品使用说明书

视频网络高清编码器产品使用说明书

H.265/H.264 HDMI编码器产品使用说明书目录一、产品概述1.产品概述2.应用场景3.产品参数二、浏览器使用说明1.系统登录2.预览界面3.编码器设置3.1 系统设置3.2 网络设置3.3 音视频设置3.4 安全设置三、VLC播放器设置前言感谢您使用本公司网络高清编码器产品,该产品是针对安防视频监控、IPTV网络直播、远程教学、远程医疗、庆典典礼、远程视频会议、自媒体直播应用的HDMI网络高清编码器。

采用高性能、单片SOC 芯片实现集音视频采集、压缩、传输于一体的媒体处理器,标准的H.265和H.264 Baseline 以及 Mainprofile 编码算法确保了更清晰、更流畅的视频传输效果。

内嵌 Web Server 允许用户通过 IE 浏览器方便地实现对前端视频的实时监看和远程控制。

该产品实际测试乐视云、百度云、目睹、Youtube和Wowza等服务媒体服务器,兼容海康威视H.265的NVR产品,支持TS流、RTMP、HTTP、RTSP和ONVIF等视频协议;支持AAC、G.711U和G.711A等音频编码。

以及需要运用到远程网络视频传输及直播的各种场合,本产品易于安装,操作简便。

声明:我们保留随时更改产品和规格,恕不另行通知。

这些信息不会被任何暗示或其他任何专利或其它权利转让任何许可。

读者对象:本手册主要适用于以下工程师:系统规化人员现场技术支持与维护人员负责系统安装、配置和维护的管理员进行产品功能业务操作的用户型号:TS-H264-B一、产品概述1.产品概述,该产品采用华为最先进的H.265网络高清数字音视频芯片压缩技术,具有稳定可靠、高清晰、低码率、低延时等技术特点。

该产品输入为高清HDMI视频信号,经过主芯片视频压缩编码处理,通过网络输出标准的TS流和RTMP视频流。

该产品的推出填补了行业内空白,直接取代了传统的视频采集卡,使用嵌入式操作系统保证产品更加稳定。

采用工业级铝合金外壳设计,体积小,方便安装。

【知识点】H264,H265硬件编解码基础及码流分析

【知识点】H264,H265硬件编解码基础及码流分析

【知识点】H264,H265硬件编解码基础及码流分析前⾔⾳视频开发需要你懂得⾳视频中⼀些基本概念,针对编解码⽽⾔,我们必须提前懂得编解码器的⼀些特性,码流的结构,码流中⼀些重要信息如sps,pps,vps,start code以及基本的⼯作原理,⽽⼤多同学都只是⼀知半解,所以导致代码中的部分内容虽可以简单理解却不知其意,所以,在这⾥总结出了当前主流的H.264,H.265编码相关的原理,以供学习.1. 概览1.1. 为什么要编码众所周知,视频数据原始体积是巨⼤的,以720P 30fps的视频为例,⼀个像素⼤约3个字节,如下所得,每秒钟产⽣87MB,这样计算可得⼀分钟就将产⽣5.22GB。

数据量/每秒=1280*720*33*3/1024/1024=87MB因此,像这样体积重⼤的视频是⽆法在⽹络中直接传输的.⽽视频编码技术也就因运⽽⽣.关于视频编码原理的技术可以参考本⼈其他⽂章,这⾥不做过多描述.1.2. 编码技术经过很多年的开发迭代,已经有很多⼤⽜实现了视频编码技术,其中最主流的有H.264编码,以及新⼀代的H.265编码,⾕歌也开发了VP8,VP9编码技术.对移动端⽽⾔,苹果内部已经实现了如H.264,H.265编码,我们需要使⽤苹果提供的VideoToolbox框架来实现它.1.3. 编码分类软件编码(简称软编):使⽤CPU进⾏编码。

硬件编码(简称硬编):不使⽤CPU进⾏编码,使⽤显卡GPU,专⽤的DSP、FPGA、ASIC芯⽚等硬件进⾏编码。

优缺点软编:实现直接、简单,参数调整⽅便,升级易,但CPU负载重,性能较硬编码低,低码率下质量通常⽐硬编码要好⼀点。

硬编:性能⾼,低码率下通常质量低于硬编码器,但部分产品在GPU硬件平台移植了优秀的软编码算法(如X264)的,质量基本等同于软编码。

iOS系统中的硬编码苹果在iOS 8.0系统之前,没有开放系统的硬件编码解码功能,不过Mac OS系统⼀直有,被称为Video ToolBox的框架来处理硬件的编码和解码,终于在iOS 8.0后,苹果将该框架引⼊iOS系统。

图形处理器 DM365 的 JPEG 解码器 (v01.00.00) 产品介绍说明书

图形处理器 DM365 的 JPEG 解码器 (v01.00.00) 产品介绍说明书

PRODUCTPREVIEW SPRS547B–DECEMBER2009Sequential JPEG Decoder(v01.00.00)on DM365FEATURES•Frame pitch greater than picture width,specified as display width parameter •eXpressDSP™Digital Media(XDM1.0supportedIIMGDEC1)interface and IRES interfacecompliant•Rotation and decode area supportedindividually,but does not support both•Validated on DM365EVM using Monta Vista®togetherLinux®5.0•Ring buffer configuration of bit-stream buffer •Baseline sequential process supported withfor reducing buffer size requirement the following limitations:supported.Ring buffer size should be multiple –Cannot support non-interleaved scansof4096bytes.–Only supports1and3components•Rotation of90,180,and270degree supported –Huffman tables and quantization tables for•Multi-instance of JPEG Decoder,and U and V components must be the samesingle/multi instance of JPEG Decoder with •Maximum of four(two tables each)for AC and other DM365codecs supported DC DCT coefficients supported•This decoder does not support the following:•YUV4:2:2interleaved data as an output–Extended DCT-based process supported–Lossless process•YUV4:2:0semi-planar(NV12format,that is,Y–Hierarchical processplanar,Cb Cr interleaved)data as an outputsupported–Progressive scan•YUV4:2:0,YUV4:2:2,YUV4:4:4,gray level(with–Input format of YUV4:1:1,gray level with 8x8pixels MCU)input format supported16x16pixels MCU•8-bit quantization tables supported–Decoded image width less than64pixelsfor YUV4:2:0/4:2:2and32pixels for•Frame level decoding of images supportedYUV4:4:4•Images with resolutions up to(Horizontal MCU–Decoded height less than32pixels size*1024)*(Vertical MCU size*1024)pixelscan be decoded.This is the theoretical–Source images of12-bits per samplemaximum.However,only images up to64Mpixels have been tested.If the codec memory DESCRIPTIONand I/O buffer requirements exceed the DDR This sequential JPEG decoder accepts YUV4:2:0, memory availability for frame based decoding,YUV4:2:2,YUV4:4:4planar,YUV4:2:2interleaved use ring buffer and slice mode decoding to and Gray(with8x8pixels MCU)images.Output decode higher resolution images.format is YUV4:2:2interleaved or YUV4:2:0semi-planar.This JPEG Decoder is validated on •JPEG File Interchange Format(JFIF)header isDM365EVM with Monta Vista Linux5.0.skipped•Frame level re-entrance supported•Resizing by various factors from1/8to7/8supportedPlease be aware that an important notice concerning availability,standard warranty,and use in critical applications of TexasInstruments semiconductor products and disclaimers thereto appears at the end of this data sheet.is a trademark of Texas Instruments.Linux is a registered trademark of Linus Torvalds.Monta Vista is a registered trademark of MontaVista Software,Inc.All other trademarks are the property of their respective owners.PRODUCT PREVIEW information concerns products in the Copyright©2009,Texas Instruments Incorporated formative or design phase of development.Characteristic data andother specifications are design goals.Texas Instruments reservesthe right to change or discontinue these products without notice.PRODUCT PREVIEW SPRS547B–Performance SummaryThis section describes the performance of the JPEG Decoder on DM365EVM.Table1.Configuration TableCONFIGURATION IDSequential JPEG Decoder,I/D Cache Enabled JPEG_DEC_01Input Format:YUV_420POutput Format:YUV_422ILERotation0.Sequential JPEG Decoder,I/D Cache Enabled JPEG_DEC_02Input Format:YUV_422POutput Format:YUV_422ILERotation0.Sequential JPEG Decoder,I/D Cache Enabled JPEG_DEC_03Input Format:YUV_420POutput Format:YUV_420SPRotation0.Sequential JPEG Decoder,I/D Cache Enabled JPEG_DEC_04Input Format:YUV_422POutput Format:YUV_420SPRotation0.Sequential JPEG Decoder,I/D Cache Enabled JPEG_DEC_05Input Format:YUV_420POutput Format:YUV_422ILERotation Enabled.Sequential JPEG Decoder,I/D Cache Enabled JPEG_DEC_06Input Format:YUV_420POutput Format:YUV_420SPRotation Enabled.Performance Measurement Procedure•Measured with program memory and I/O buffers in external memory,I/D cache enabled,ARM@297MHz, MJCP@243MHz,DDR@243MHz,Monta Vista Linux5.0•DVTB is used to measure the performance numbers in this Datasheet.•The process time is measured across algActivate/process/algDeactivate function call using gettimeofday() utility of linux.•NFS File system is used as an environment in performance measurement.•To avoid the impact of file I/O operation in performance measurement,file write operation is disabled and checksum calculation is included after fread()function to ensure that file read is successfully completed before process call.•After rebooting the board,codec binary must be executed at least once before starting performance measurement.Note:Frame Decode load can be divided in ARM load and MJCP load.ARM is idle during MJCP processing, and can be utilized to execute any other program in different thread during this time.Table2.Cycles Information for JPEG_DEC_01COMPRESSION ARM926PER FRAME DECODE PER FRAME INPUT NAME RESOLUTION FPSRATIO MHz MHz3 1.13 2.01147.54Fruitbasket.jpg CIF(352x288)70.99 1.78166.7211 1.04 1.64180.573 1.00 3.1295.22Test_2.jpg VGA(640x480)70.98 2.71109.40140.99 2.48119.672Submit Documentation Feedback Copyright©2009,Texas Instruments IncorporatedP R O D U C T P R E V I E W SPRS547B –DECEMBER 2009Table 2.Cycles Information for JPEG_DEC_01(continued)COMPRESSIONARM926PER FRAMEDECODE PER FRAMEINPUT NAMERESOLUTIONFPS RATIOMHzMHz110.99 2.68110.74Chrsweep.jpgD1(720x480)18 1.02 2.61113.6422 1.03 2.59114.8420.998.0836.74mobcal_ter.jpg720p (1280x720)50.99 6.4046.41100.995.6752.37Table 3.Cycles Information for JPEG_DEC_02COMPRESSIONARM926PER FRAMEDECODE PER FRAMEINPUT NAMERESOLUTIONFPS RATIOMHzMHz21.652.50118.88Fruitbasket.jpgCIF (352x288)6 1.03 2.15138.1010 1.00 1.91155.3030.99 4.0074.32Test_2.jpgVGA (640x480)5 1.03 3.6780.8810 1.04 3.3987.58120.99 3.6182.35Shrek.jpgD1(720x480)14 1.07 3.5982.8316 1.06 3.5583.6931.009.9129.96mobcal_ter.jpg720p (1280x720)6 1.018.7334.0391.018.1036.64Table 4.Cycles Information for JPEG_DEC_03COMPRESSIONARM926PER FRAMEDECODE PER FRAMEINPUT NAMERESOLUTIONFPS RATIOMHzMHz31.12 1.91155.26Fruitbasket.jpgCIF (352x288)7 1.13 1.74170.5611 1.10 1.66179.2131.09 3.1993.06Test_2.jpgVGA (640x480)7 1.12 2.85104.3114 1.13 2.64112.69111.102.80106.08Chrsweep.jpgD1(720x480)18 1.10 2.72109.2422 1.14 2.70110.0121.148.1736.35mobcal_ter.jpg720p (1280x720)5 1.11 6.4945.78101.105.7751.48Table 5.Cycles Information for JPEG_DEC_04COMPRESSIONARM926PER FRAMEDECODE PER FRAMEINPUT NAMERESOLUTIONFPS RATIOMHzMHz21.002.12140.11Fruitbasket.jpgCIF (352x288)6 1.05 1.94153.21101.001.82162.87Copyright ©2009,Texas Instruments Incorporated Submit Documentation Feedback 3PRODUCT PREVIEW SPRS547B–Table5.Cycles Information for JPEG_DEC_04(continued)COMPRESSION ARM926PER FRAME DECODE PER FRAME INPUT NAME RESOLUTION FPSRATIO MHz MHz30.99 4.0074.28Test_2.jpg VGA(640x480)5 1.00 3.6481.7010 1.01 3.3688.40120.99 3.6182.26 Shrek.jpg D1(720x480)14 1.03 3.5683.5416 1.00 3.4985.163 1.029.9329.92mobcal_ter.jpg720p(1280x720)6 1.048.7433.989 1.028.1236.58Table6.Cycles Information for JPEG_DEC_05ARM926PER FRAME DECODE PER FRAME INPUT NAME RESOLUTION ROTATION FPSMHz MHz90 1.11 2.11141.06Fruitbasket.jpg CIF(352x288)180 1.14 2.03145.99270 1.15 2.00148.5290 1.18 3.7579.20Test_2.jpg VGA(640x480)180 1.10 3.5384.15270 1.15 3.5783.13Table7.Cycles Information for JPEG_DEC_06ARM926PER FRAME DECODE PER FRAME INPUT NAME RESOLUTION ROTATION FPSMHz MHz90 1.23 2.67111.33Fruitbasket.jpg CIF(352x288)180 1.26 2.63113.05270 1.23 2.58115.2390 1.25 5.2456.71Test_2.jpg VGA(640x480)180 1.22 5.1257.96270 1.25 5.1757.48 Note:•The values in Table2,3,4,5,6,and7are as measured on the ARM926side.These are the actual cycles as seen from the host on the DM365EVM board and will be close to cycles seen on the final system(for average case).•ARM926represents mega cycles per frame spend on ARM926.•Decode frame time is the time seen from ARM926only.Since most of the processing happens at MJCP,the active load on ARM926is the value mentioned in ARM926column.Decode frame time has no connection with MJCP running at243MHz.•All values are collected(both average and peak)at frame-level processing.•They are measured with Linux without any system traffic.Table8.Memory StatisticsRESOLUTION MEMORY STATISTICS(IN BYTES)PROGRAM DATA MEMORY TOTALMEMORY CONSTANT INTERNAL EXTERNAL STACKSXVGA709461856009608819299114(1280x960)720P(1280x720)7094618560096088192991144Submit Documentation Feedback Copyright©2009,Texas Instruments Incorporated SPRS547B–DECEMBER2009Table8.Memory Statistics(continued)RESOLUTION MEMORY STATISTICS(IN BYTES)PROGRAM DATA MEMORY TOTALMEMORY CONSTANT INTERNAL EXTERNAL STACKD1(720x480)709461856009608819299114VGA(640x480)709461856009608819299114CIF(352x288)709461856009608819299114Table9.Codec Usage of External Memory through CMEMBUFFER SIZEInput Buffer(1)frameSize(2)*2Output Buffer YUV_422_ILE Buffer1:frameSize*2YUV_420_SP Buffer1:frameSizeBuffer2:frameSize/2External Memory MemTab[1]9096BytesMemTab[2]512Bytes(1)Input buffer size is theoretical value based on1:1compression ratio(for422format).Actual size may be different than this.(2)frameSize=(maxWidth*maxHeight).WEIVERPTCUDORP Copyright©2009,Texas Instruments Incorporated Submit Documentation Feedback5PRODUCT PREVIEW SPRS547B–Notes•The entire MJCP is a video resource and is used by the codec.•DMA configurationTable10.DMA ConfigurationTC Qs TC0TC1TC2TC3TOTALNot used by Not used byUsage Reserved for system Used by codec-codec codecNot touched byPriority0---codec(Default–7)EDMA Channels0220022/64PaRAM Entries0330033/256QDMA Channels00000/8•The MJCP/EDMA resources are acquired using a generic resource manager known as Framework component.See Sequential JPEG Decoder on DM365User's Guide for details.•Code PlacementAll the algorithm code are placed in external memory.The performance quoted is not sensitive to algorithm code placement.References•ISO/IEC10918-1Digital compression and coding of continuous-tone still images(JPEG)•Sequential JPEG Decoder on DM365User's Guide(literature number:SPRUEV3B)GlossaryTerm DescriptionConstants Elements that go into.const memory sectionScratch Memory space that can be reused across different instances of the algorithmShared Sum of Constants and ScratchInstance Persistent-memory that contains persistent information-allocated for each instance of thealgorithmCompression ratio Compression ratio of N:1means compressed data occupies N times less space than originaldataAcronymsAcronym DescriptionCIF Common Intermediate FormatDCT Discrete Cosine TransformDMA Direct Memory AccessDMAN3DMA Resource ManagerEVM Evaluation ModuleExif Exchangeable image file formatIDMA3DMA Resource specification and negotiation protocolJFIF JPEG File Interchange FormatJPEG Joint Photographic Experts GroupMCU Minimum Coded UnitMJCP MPEG4-JPEG co-processorNV12YUV420format with Y plane and CbCr planeXDM eXpressDSP Digital MediaYUV Raw Image format,Y:Luminance Component U,V:Chrominance components6Submit Documentation Feedback Copyright©2009,Texas Instruments Incorporated SPRS547B–DECEMBER2009Revision HistoryThere are no changes in the data sheet as compared to the previous version.WEIVERPTCUDORP Copyright©2009,Texas Instruments Incorporated Submit Documentation Feedback7IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries(TI)reserve the right to make corrections,modifications,enhancements,improvements, and other changes to its products and services at any time and to discontinue any product or service without notice.Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete.All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty.Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty.Except where mandated by government requirements,testing of all parameters of each product is not necessarily performed.TI assumes no liability for applications assistance or customer product design.Customers are responsible for their products and applications using TI components.To minimize the risks associated with customer products and applications,customers should provide adequate design and operating safeguards.TI does not warrant or represent that any license,either express or implied,is granted under any TI patent right,copyright,mask work right, or other TI intellectual property right relating to any combination,machine,or process in which TI products or services are rmation published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement e of such information may require a license from a third party under the patents or other intellectual property of the third party,or a license from TI under the patents or other intellectual property of TI.Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties,conditions,limitations,and notices.Reproduction of this information with alteration is an unfair and deceptive business practice.TI is not responsible or liable for such altered rmation of third parties may be subject to additional restrictions.Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice.TI is not responsible or liable for any such statements.TI products are not authorized for use in safety-critical applications(such as life support)where a failure of the TI product would reasonably be expected to cause severe personal injury or death,unless officers of the parties have executed an agreement specifically governing such use.Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications,and acknowledge and agree that they are solely responsible for all legal,regulatory and safety-related requirements concerning their products and any use of TI products in such safety-critical applications,notwithstanding any applications-related information or support that may be provided by TI.Further,Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safety-critical applications.TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are specifically designated by TI as military-grade or"enhanced plastic."Only products designated by TI as military-grade meet military specifications.Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at the Buyer's risk,and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use. TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO/TS16949requirements.Buyers acknowledge and agree that,if they use any non-designated products in automotive applications,TI will not be responsible for any failure to meet such requirements.Following are URLs where you can obtain information on other Texas Instruments products and application solutions:Products ApplicationsAmplifiers Audio /audioData Converters Automotive /automotiveDLP®Products Communications and /communicationsTelecomDSP Computers and /computersPeripheralsClocks and Timers /clocks Consumer Electronics /consumer-appsInterface Energy /energyLogic Industrial /industrialPower Mgmt Medical /medicalMicrocontrollers Security /securityRFID Space,Avionics&/space-avionics-defenseDefenseRF/IF and ZigBee®Solutions /lprf Video and Imaging /videoWireless /wireless-appsMailing Address:Texas Instruments,Post Office Box655303,Dallas,Texas75265Copyright©2010,Texas Instruments Incorporated。

MEDIACODER H.264格式编码参数设置及详解

MEDIACODER H.264格式编码参数设置及详解

MediaCoderH.264格式编码参数设置及详解由于现在大部分视频转码都选择H.264格式进行编码,同时CUDA编码的画质还达不到x264软编码的质量(如果你对画质无要求,可以直接忽略该教程。

)所以该教程对MediacoderH.264格式编码参数设置进行一次详解,希望对画质有一定要求编码爱好者有所帮助。

视频选项栏界面:视频质量/码率比例可选百分比,选择是否对原始视频码率进行压缩。

如果对画质要求较高,建议选择100%,即不对原始视频码率进行压缩。

码率模式:设置转换视频时所采用的编码方式。

可选项:1.平均码率模式;2.固定质量模式;3.恒定码率模式;4.恒定量化参数;5.2次编码模式;6.3次编码模式;建议:选择固定质量模式即对原始视频画质质量进行固定,编码后视频大小不可控。

格式:设置转换后临时的视频文件(未与音频文件封装之前)的格式。

可选项:XviD、H.264、MPEG1、MPEG2、MPEG4、Theora、FlashVideo、DiracVideo、WindowsMediaVideo、RealMedia、H.263、H.263+、H.261、MS-MPEG4-V2、DVVideo、MotionJPEG、LosslessJPEG、Huffyuv、Snow、AMV、RawVideo建议:选择H.264(注意:格式的选择会影响下面容器的选择,不是所有的格式都能封装到一个容器中的!)容器:最后进行封装时使用的容器,如XXXX.AVI就是使用的AVI作为容器。

可选项:Default、AVI、MP4、Matroska、MPEG1、MPEG2、MPEG2-TS、FlashVideo、ASF、3GP、3GP2、MOV、MJPEG、RealMedia、DVForma、OGG、NUT、PMP、RawStream建议:选择MP4(MP4具有良好的播放兼容性,iphone、ipad等均可以直接点播)如果对兼容性没要求,建议选择MKV(注意:很多转换任务一开始就报有关容器的错误,是因为混流软件对转换后的音频文件或视频文件无法混流所致.具体MediaCoder的混流器能封装什么格式的视频文件和音频文件,请参考其他有关资料!)复制视屏流:当勾选参数时,MediaCoder不会对原始视频进行转换,而是直接无损提取。

高清视频编码器中文说明书H265_H264

高清视频编码器中文说明书H265_H264

H.265/H.264高清视频编码器禾鸟电子科技荣誉出品一、产品简介H.265/H.264高清视频编码器有HDMI\SDI\VGA三种高清接口产品,是由禾鸟电子自主研发的用于高清视频信号编码及网络传输直播的硬件设备,采用最新高效H.265/H.264高清数字视频压缩技术,具备稳定可靠、高清晰度、低码率、低延时等特点。

输入高清HDMI、SDI、VGA高清视频、音频信号,进行编码处理,经过DSP芯片压缩处理,输出标准的TS网络流,直接取代了传统的采集卡或软件编码的方式,采用硬编码方式,系统更加稳定,图像效果更加完美,广泛用于各种需要对高清视频信号及高分辨率、高帧率进行采集并基于IP 网络传送的场合,强大的扩展性更可轻易应对不同的行业及需求,可作为视频直播编码器,录像,传输等应用。

采用工业控制精密设计,体积小,方便安装,功率小于5W,更节能,更稳定。

特点:●高性能硬件编码压缩●支持H.265高效视频编码●支持H.264 BP/MP/HP●支持AAC/G.711高级音频质编码格式●CBR/VBR码率控制,16Kbps~12Mbps●网络接口采用100M、1000M 全双工模式●主流,副流可推流不同的服务器●支持高达720P,1080P60HZ的高清视频输入●支持图像参数设置●HDMI编码支持HDCP协议,支持蓝光高清●支持HTTP,UTP,RTSP,RTMP,ONVIF 协议●主流与副流采用不同的网络协议进行传输●WEB操作界面,中英文配置界面可选●WEB操作界面权限管理●支持广域网远程管理(WEB)●支持流分辨率自定义输出设置●支持码流插入中英文字功能,字体背景、颜色可选●支持码流插入3幅透明图像水印功能,XY轴可设置●支持一键恢复出厂配置二、产品应用:1、4G移动直播高清前端采集2、高清视频直播服务器3、视频会议系统视频服务器4、数字标牌高清流服务器5、教学直播录像系统前端采集6、IPTV电视系统前端采集7、微信直播系统前端采集8、医疗视频直播与录像系统9、可接入NVR硬盘录像机三、接口说明:HDMI高清编码器(H265、H264)SDI高清编码器(H265、H264)VGA高清编码器(H265、H264)HDMI高清编码器(H264)SDI高清编码器(H264)VGA高清编码器(H264)3U结构编码器说明:A、电源输入----- 12V/DC 输入接口,采用12V1A电源,如果是5V输入时,选用5V/2AB、初始化按钮------用于复位设备,当开机后,按住不放15秒后,设备IP恢复至出厂IP,192.168.0.31C、视频输入------用于输入高清HDMI、SDI、VGA、Audio信号。

TTR-H264通天眼用户手册

TTR-H264通天眼用户手册

通天眼用户手册TTR-H264感谢您使用本公司的通天眼声明:本手册可能某些细节描述不够准确,如果您按照手册使用时有无法解决的问题,请与公司技术支持部或产品供应商联系。

本手册内容将不不定期更新,恕不另行通知。

通天眼出厂默认参数出厂默认的管理员和用户名为:admin密码:adminWeb端口:80通讯端口:4000目录一、产品介绍――――――――――――――――――――――――――――――――4二、产品结构――――――――――――――――――――――――――――――――5三、产品硬件安装――――――――――――――――――――――――――――――7四、产品规格――――――――――――――――――――――――――――――――7五、网页操作说明――――――――――――――――――――――――――――――8 附录 1 常用动态域名设置―――――――――――――――――――――――――――――26 附录 2 常用路由器端口映射设置――――――――――――――――――――――――――27 附录 3 常见问题解答―――――――――――――――――――――――――――――――29一、产品介绍1-1简介通天眼是一台可独立运作的网页服务器,不需连接到计算机上, 供用户从世界各地以网页浏览器或客户端软件来实时监看影像监听声音.其为一低成本的远程视讯、音频传输解决方案, 通天眼本身已经集成摄像头.在远程的用户只需在网页浏览器上入通天眼的IP 地址或网域名, 就可实时由远程监看影像,监听现场声音,还可以与计算机进行对讲。

使用操作非常方便. 同时通天眼可设定12 个用户账号及指定固定IP 地址来邦定, 以防外人偷看, 并具有移动侦测功能, 当有事件发生时会主动发送电子邮件、抓拍或录像存储在本机SD卡上,方便用户查询. 通天眼另提供一套Windows 系统用的多屏管理软件, 让用户可在一台计算机上同时最多可以监控32路图像.通天眼是一款一体化IP摄像机解决方案。

文献综述-浙江大学现代教务管理系统

文献综述-浙江大学现代教务管理系统

文献综述基于于DM365处理器的H.264视频编码器接口软件设计1. 引言今天,多媒体技术的应用已经深入到各个领域;在日常生活中,多媒体产品也是随处可见,如视频电话,视频会议系统,实时监控,基于IP的网络流媒体等等。

在这些多媒体应用中,图像的传输和存储是一个十分重要的问题;由于存储空间和网路带宽的限制,直接存储和传输原始视频显得十分吃力且开销巨大,由此需要对原始视频进行压缩处理,进而衍生出了视频编解码技术。

压缩视频和原始视频的大小有时会相差百倍之多。

本文主要叙述和总结了视频编码技术的原理和概况,介绍了H.264视频编码技术;以及DM365处理器。

2. 视频编码技术概述数字视频存在大量的冗余信息,冗余信息大致可分为以下四类:(1)空间冗余;(2)时间冗余;(3)视觉冗余;(4)编码冗余。

现在一系列的视频编码技术可能在具体算法上有差异,当其根本原理还是针对四种冗余的特点去除冗余信息以达到压缩视频的目的。

2.1 冗余信息●空间冗余同一帧图像中有大片的区域有连续的相似的图形图像,其相邻像素之间的差值很小;对于一个像素点我们可以用其邻近像素的值与一个微小差异值表示;相对于以此像素的原值表示其,差值占用的数据量小很多,这部分的数据量差异就是空间冗余所在。

●时间冗余相邻两帧图像的对应位置经常是相似的,两幅图像对应像素的差值因而也较小甚至为零;对于一个像素点,如果他与前一帧图像对应点的差值较小,相对于用此像素的原值表示它,差值占用的数据量小很多,这部分数据量差异就是时间冗余所在。

●视觉冗余人眼的视觉系统有一个特征:对于缓慢变化的图像敏感,对于快速变化的图像不敏感;对原始图像做小波变换或离散余弦变换(DCT)后图像就被分成许多不同强度不同频率的分量信息,通过有选择的削减或剔除高频分量信息,就能在人眼感觉变化不大的情况下减小图像包含的信息量,被削减的信息就是视觉冗余所在。

●编码冗余在经过一些编码手段处理后的视频信息的像素值具有一定的统计特性,即概率分布,某些值出现的概率很大,而其他值相对则很小且有一定的连续性。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

H.264 High Profile Encoder on DM365User’s GuideLiterature Number: SPRUEU9March 2009IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed.TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards.TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI.Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional restrictions.Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would reasonably be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, and acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their products and any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may be provided by TI. Further, Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safety-critical applications.TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use.TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they useany non-designated products in automotive applications, TI will not be responsible for any failure to meet such requirements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions:Products ApplicationsAmplifiers Audio /audioData Converters Automotive /automotive/broadbandDLP® Products BroadbandDSP Digital Control /digitalcontrol Clocks and Timers /clocks Medical /medicalInterface Military /militaryLogic Optical Networking /opticalnetwork Power Mgmt Security /security Microcontrollers Telephony /telephonyRFID Video & Imaging /videoRF/IF and ZigBee® Solutions /lprf Wireless /wirelessMailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265Copyright © 2009, Texas Instruments IncorporatedPrefaceRead This FirstAbout This ManualThis document describes how to install and work with Texas Instruments’(TI) H.264 High Profile Encoder implementation on the DM365 platform.It also provides a detailed Application Programming Interface (API)reference and information on the sample application that accompaniesthis component.TI’s codec implementations are based on the eXpressDSP Digital Media(XDM) and IRES standards. XDM and IRES are extensions ofeXpressDSP Algorithm Interface Standard (XDAIS).Intended AudienceThis document is intended for system engineers who want to integrateTI’s codecs with other software to build a multimedia system based onthe DM365 platform.This document assumes that you are fluent in the C language, have agood working knowledge of Digital Signal Processing (DSP), digitalsignal processors, and DSP applications. Good knowledge ofeXpressDSP Algorithm Interface Standard (XDAIS) and eXpressDSPDigital Media (XDM) standard will be helpful.How to Use This ManualThis document includes the following chapters:Chapter 1 – Introduction, provides a brief introduction to the XDAISand XDM standards, Frame work Components, and softwarearchitecture. It also provides an overview of the codec and lists itssupported features.Chapter 2 – Installation Overview, describes how to install, build,and run the codec.Chapter 3 – Sample Usage, describes the sample usage of thecodec.Chapter 4 – API Reference, describes the data structures andinterface functions used in the codec.Appendix A – Time-Stamp Insertion, describes insertion of frametime-stamp through the Supplemental Enhancement Information(SEI) Picture Timing message.iiiRead This FirstivRelated Documentation From Texas InstrumentsThe following documents describe TI’s DSP algorithm standards suchas, XDAIS and XDM. To obtain a copy of any of these TI documents,visit the Texas Instruments website at .TMS320 DSP Algorithm Standard Rules and Guidelines (SPRU352)defines a set of requirements for DSP algorithms that, if followed,allow system integrators to quickly assemble production-qualitysystems from one or more such algorithms.TMS320 DSP Algorithm Standard API Reference (SPRU360)describes all the APIs that are defined by the TMS320 DSPAlgorithm Interoperability Standard (also known as XDAIS)specification.Using IRES and RMAN Framework Components for C64x+(literature number SPRAAI5) provides an overview of the IRESinterface, along with some concrete resource types and resourcemanagers that illustrate the definition, management and use of newtypes of resources.Related DocumentationYou can use the following documents to supplement this user guide:ISO/IEC 14496-10:2005 (E) Rec. H.264 (E) ITU-T RecommendationAbbreviationsThe following abbreviations are used in this document.Table 1-1. List of Abbreviations Abbreviation DescriptionASO Arbitrary Slice OrderingAVCAdvanced Video Coding BIOSTI’s simple RTOS for DSPs CAVLCContext Adaptive Variable Length Coding CABACContext Adaptive Binary Arithmetic Coding D1 720x480 or 720x576 resolutions inprogressive scanDCT Discrete Cosine TransformDDRDouble Data Rate DMA Direct Memory AccessFC Framework componentsRead This Firstv Abbreviation DescriptionFMO Flexible Macro-block OrderingHD 720 or 720p 1280x720 resolution in progressive scanHDTV High Definition TelevisionHDVICP High Definition Video and Imaging Co-processor sub-systemIDR Instantaneous Decoding RefreshITU-T International Telecommunication UnionJM Joint MenuJVT Joint Video TeamMB Macro BlockMBAFF Macro Block Adaptive Field FrameMJCP MPEG JPEG Co-ProcessorMPEG Motion Pictures Expert GroupMV Motion VectorNAL Network Adaptation LayerNTSC National Television Standards CommitteePDM Parallel Debug ManagerPicAFF Picture Adaptive Field FramePMP Portable Media PlayerPPS Picture Parameter SetPRC Perceptual Rate ControlRTOS Real Time Operating SystemRMAN Resource ManagerSEI Supplemental Enhancement InformationSPS Sequence Parameter SetVGA Video Graphics ArrayVICP Video and Imaging Co-ProcessorXDAIS eXpressDSP Algorithm Interface StandardRead This Firstvi Abbreviation DescriptionXDM eXpressDSP Digital MediaYUV Color space in luminance andchrominance formNote:MJCP and VICP refer to the same hardware co-processor blocks.Text ConventionsThe following conventions are used in this document:Text inside back-quotes (‘‘) represents pseudo-code.Program source code, function and macro names, parameters, andcommand line commands are shown in a mono-spaced font.Product SupportWhen contacting TI for support on this codec, quote the product name(H.264 High Profile Encoder on DM365) and version number. Theversion number of the codec is included in the Title of the Release Notesthat accompanies this codec.TrademarksCode Composer Studio, DSP/BIOS, eXpressDSP, TMS320,TMS320C64x, TMS320C6000, TMS320DM644x, and TMS320C64x+ aretrademarks of Texas Instruments.All trademarks are the property of their respective owners.Contents Read This First (iii)About This Manual (iii)Intended Audience (iii)How to Use This Manual (iii)Related Documentation From Texas Instruments (iv)Related Documentation (iv)Abbreviations (iv)Text Conventions (vi)Product Support (vi)Trademarks (vi)Contents (vii)Figures (ix)Tables (xi)Introduction.....................................................................................................................1-11.1Software Architecture........................................................................................1-21.2Overview of XDAIS, XDM, and Framework Component Tools.........................1-21.2.1XDAIS Overview................................................................................................1-21.2.2XDM Overview...................................................................................................1-31.2.3Framework Component......................................................................................1-41.3Overview of H.264 High Profile Encoder...........................................................1-71.4Supported Services and Features.....................................................................1-9 Installation Overview......................................................................................................2-12.1System Requirements for NO-OS Standalone..................................................2-22.1.1Hardware............................................................................................................2-22.1.2Software.............................................................................................................2-22.2System Requirements for Linux........................................................................2-22.2.1Hardware............................................................................................................2-22.2.2Software.............................................................................................................2-22.3Installing the Component for NO-OS Standalone.............................................2-32.4Installing the Component for Linux....................................................................2-42.5Building the Sample Test Application for EVM Standalone...............................2-52.6Running the Sample Test Application on EVM Standalone..............................2-62.7Building and Running the Sample Test Application on LINUX..........................2-72.8Configuration Files............................................................................................2-82.8.1Generic Configuration File.................................................................................2-82.8.2Encoder Configuration File.................................................................................2-92.8.3Encoder Sample Base Param Setting.............................................................2-122.9Standards Conformance and User-Defined Inputs.........................................2-132.10Uninstalling the Component............................................................................2-13 Sample Usage..................................................................................................................3-13.1Overview of the Test Application.......................................................................3-23.1.1Parameter Setup................................................................................................3-33.1.2Algorithm Instance Creation and Initialization....................................................3-33.1.3Process Call.......................................................................................................3-4vii3.1.4Algorithm Instance Deletion...............................................................................3-53.2Handshaking Between Application and Algorithm.............................................3-63.2.1Resource Level Interaction................................................................................3-63.2.2Handshaking Between Application and Algorithms...........................................3-73.3Cache Management by Application...................................................................3-93.3.1Cache Usage By Codec Algorithm....................................................................3-93.3.2Cache Related Call Back Functions for Standalone..........................................3-93.3.3Cache and Memory Related Call Back Functions for Linux..............................3-93.4Sample Test Application..................................................................................3-11 API Reference..................................................................................................................4-14.1Symbolic Constants and Enumerated Data Types............................................4-24.1.1Common XDM Symbolic Constants and Enumerated Data Types...................4-24.1.2H264 Encoder Symbolic Constants and Enumerated Data Types....................4-74.2Data Structures.................................................................................................4-84.2.1Common XDM Data Structures..........................................................................4-84.2.2H.264 Encoder Data Structures.......................................................................4-214.3Interface Functions..........................................................................................4-314.3.1Creation APIs...................................................................................................4-324.3.2Initialization API................................................................................................4-344.3.3Control API.......................................................................................................4-354.3.4Data Processing API........................................................................................4-374.3.5Termination API...............................................................................................4-40 Time-Stamp Insertion....................................................................................................A-1A.1Description.......................................................................................................A-1 viiiFigures Figure 1-1. Software Architecture..................................................................................1-2 Figure 1-2. Framework Component Interfacing Structure..........................................1-5 Figure 1-3. IRES Interface Definition and Function-calling Sequence.......................1-6 Figure 1-4. Block Diagram of H.264 Encoder...............................................................1-9 Figure 2-1. Component Directory Structure for Standalone.......................................2-3 Figure 2-2. Component Directory Structure for Linux.................................................2-4 Figure 3-1. Test Application Sample Implementation..................................................3-2 Figure 3-2. Process Call with Host Release..................................................................3-4 Figure 3-3. Resource Level Interaction.........................................................................3-6 Figure 3-4. Interaction Between Application and Codec.............................................3-7 Figure 3-5. Interrupt Between Codec and Application................................................3-8 Figure 3-6. Cache Interaction Between Codec and Application.................................3-9ixThis page is intentionally left blankxTables Table 1-1. List of Abbreviations (iv)Table 2-1. Component Directories for Standalone.......................................................2-3 Table 2-2. Component Directories for Linux................................................................2-5 Table 3-1. process () Implementation..........................................................................3-11 Table 4-1. List of Enumerated Data Types....................................................................4-2xiThis page is intentionally left blankxiiChapter 1IntroductionThis chapter provides a brief introduction to XDAIS, XDM, and DM365software architecture. It also provides an overview of TI’s implementationof the H.264 High Profile Encoder on the DM365 platform and its supportedfeatures.Topic Page 1.1 Software Architecture1-21.2 Overview of XDAIS, XDM, and Framework Component Tools1-21.3 Overview of H.264 High Profile Encoder1-71.4 Supported Services and Features1-91-1Introduction1.1 Software ArchitectureDM365 codec provides XDM compliant API to the application for easyintegration and management. The details of the interface are provided inthe subsequent sections.DM365 is a digital multi-media system on-chip primarily used for videosecurity, video conferencing, PMP and other related application.DM365 codec are OS agonistic and interacts with the kernel through theFramework Component (FC) APIs. FC acts as a software interfacebetween the OS and the codec. FC manages resources and memory byinteracting with kernel through predefined APIs.Following diagram shows the software architecture. Linux KernelApplicationDM365 CodecsFramework ComponentCMEM APIs EDMA APIsCMEM CSL iMX SYNC APIs IRQ driver EDMA driverFigure 1-1. Software Architecture.1.2 Overview of XDAIS, XDM, and Framework Component ToolsTI’s multimedia codec implementations are based on the eXpressDSPDigital Media (XDM) standard. XDM is an extension of the eXpressDSPAlgorithm Interface Standard (XDAIS). IRES is a TMS320 DSP Algorithm Standard (xDAIS) interface for management and utilization of specialresource types such as hardware accelerators, certain types of memoryand DMA. RMAN is a generic Resource Manager that manages software component’s logical resources based on their IRES interface configuration. Both IRES and RMAN are Framework Component modules.1.2.1 XDAIS OverviewAn eXpressDSP-compliant algorithm is a module that implements theabstract interface IALG. The IALG API takes the memory managementfunction away from the algorithm and places it in the hosting framework.Thus, an interaction occurs between the algorithm and the framework. This1-2Introduction interaction allows the client application to allocate memory for the algorithmand share memory between algorithms. It also allows the memory to bemoved around while an algorithm is operating in the system. In order tofacilitate these functionalities, the IALG interface defines the followingAPIs:algAlloc()algInit()algActivate()algDeactivate()algFree()The algAlloc() API allows the algorithm to communicate its memoryrequirements to the client application. The algInit() API allows thealgorithm to initialize the memory allocated by the client application. ThealgFree() API allows the algorithm to communicate the memory to befreed when an instance is no longer required.Once an algorithm instance object is created, it can be used to processdata in real-time. The algActivate() API provides a notification to thealgorithm instance that one or more algorithm processing methods is aboutto be run zero or more times in succession. After the processing methodshave been run, the client application calls the algDeactivate() API priorto reusing any of the instance’s scratch memory.The IALG interface also defines two more optional APIs algNumAlloc()and algMoved(). For more details on these APIs, see TMS320 DSPAlgorithm Standard API Reference (SPRU360).1.2.2 XDM OverviewIn the multimedia application space, you have the choice of integrating anycodec into your multimedia system. For example, if you are building avideo decoder system, you can use any of the available video decoders(such as MPEG4, H.263, or H.264) in your system. To enable easyintegration with the client application, it is important that all codecs withsimilar functionality use similar APIs. XDM was primarily defined as anextension to XDAIS to ensure uniformity across different classes of codecs(for example audio, video, image, and speech). The XDM standard definesthe following two APIs:control()process()The control() API provides a standard way to control an algorithminstance and receive status information from the algorithm in real-time. Thecontrol() API replaces the algControl() API defined as part of theIALG interface. The process() API does the basic processing(encode/decode) of data. This API represents a blocking call for theencoder and the decoder, that is, with the usage of this API, the control isreturned to the calling application only after encode or decode of one unit(frame) is completed. Since in case of DM365, the main encode or decodeis carried out by the hardware accelerators, the host processor from which1-3Introductionthe process() call is made can be used by the application in parallel withthe encode or the decode operation. To enable this, the frameworkprovides flexibility to the application to pend the encoder task when theframe level computation is happening on coprocessor.Apart from defining standardized APIs for multimedia codecs, XDM alsostandardizes the generic parameters that the client application must passto these APIs. The client application can define additional implementationspecific parameters using extended data structures.The following figure depicts the XDM interface to the client application.Client ApplicationXDM InterfaceXDAIS Interface (IALG)TI’s Codec AlgorithmsAs depicted in the figure, XDM is an extension to XDAIS and forms aninterface between the client application and the codec component. XDMinsulates the client application from component-level changes. Since TI’smultimedia algorithms are XDM compliant, it provides you with the flexibilityto use any TI algorithm without changing the client application code. Forexample, if you have developed a client application using an XDM-compliant MPEG4 video decoder, then you can easily replace MPEG4 withanother XDM-compliant video decoder, say H.263, with minimal changesto the client application.For more details, see eXpressDSP Digital Media (XDM) Standard APIReference (literature number SPRUEC8).1.2.3 Framework ComponentAs discussed earlier, Framework Component acts like a middle layerbetween the codec and OS and also serves as a resource manager. Thefollowing block diagram shows the FC components and their interfacingstructure.1-4IntroductionFigure 1-2. Framework Component Interfacing Structure.Each component is explained in detail in the following sections.1.2.3.1 IRES and RMANIRES is a generic, resource-agnostic, extendible resource query,initialization and activation interface. The application framework defines,implements and supports concrete resource interfaces in the form of IRESextensions. Each algorithm implements the generic IRES interface, torequest one or more concrete IRES resources. IRES defines standardinterface functions that the framework uses to query, initialize,activate/deactivate and reallocate concrete IRES resources. To create analgorithm instance within an application framework, the algorithm and theapplication framework agrees on the concrete IRES resource types thatare requested. The framework calls the IRES interface functions, inaddition to the IALG functions, to perform IRES resource initialization,activation and deactivation.The IRES interface introduces support for a new standard protocol forcooperative preemption, in addition to the IALG-style non-cooperativesharing of scratch resources. Co-operative preemption allows activatedalgorithms to yield to higher priority tasks sharing common scratchresources. Framework components include the following modules andinterfaces to support algorithms requesting IRES-based resources:IRES - Standard interface allowing the client application to query andprovide the algorithm with its requested IRES resources.RMAN - Generic IRES-based resource manager, which manages andgrants concrete IRES resources to algorithms and applications. RMANuses a new standard interface, the IRESMAN, to support run-timeregistration of concrete IRES resource managers.Client applications call the algorithm’s IRES interface functions to query itsconcrete IRES resource requirements. If the requested IRES resource typematches a concrete IRES resource interface supported by the application1-5Introductionframework, and if the resource is available, the client grants the algorithmlogical IRES resource handles representing the allotted resources. Eachhandle provides the algorithm with access to the resource as defined by theconcrete IRES resource interface.IRES interface definition and function-calling sequence is depicted in thefollowing figure. For more details, see Using IRES and RMAN FrameworkComponents for C64x+ (literature number SPRAAI5).Figure 1-3. IRES Interface Definition and Function-calling Sequence.1.2.3.2 HDVICPThe IRES HDVICP Resource Interface, IRES_HDVICP, allows algorithmsto request and receive handles representing Hardware Acceleratorresource, HDVICP, on supported hardware platforms. Algorithms canrequest and acquire one of the co-processors using a single IRES requestdescriptor. IRES_HDVICP is an example of a very simple resource typedefinition, which operates at the granularity of the entire processor anddoes not publish any details about the resource that is being acquired otherthan the ‘id’ of the processor. It leaves it up to the algorithm to manageinternals of the resource based on the ID.1.2.3.3 EDMA3The IRES EDMA3 Resource Interface, IRES_EDMA3CHAN, allowsalgorithms to request and receive handles representing EDMA3 resourcesassociated with a single EDMA3 channel. This is a very low-level resourcedefinition.1-6。

相关文档
最新文档