[go: up one dir, main page]

CN101009836A - Embedded video playing device based on the dual processor - Google Patents

Embedded video playing device based on the dual processor Download PDF

Info

Publication number
CN101009836A
CN101009836A CNA2007100671203A CN200710067120A CN101009836A CN 101009836 A CN101009836 A CN 101009836A CN A2007100671203 A CNA2007100671203 A CN A2007100671203A CN 200710067120 A CN200710067120 A CN 200710067120A CN 101009836 A CN101009836 A CN 101009836A
Authority
CN
China
Prior art keywords
video
processor
code stream
code
processors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007100671203A
Other languages
Chinese (zh)
Other versions
CN101009836B (en
Inventor
陈耀武
张亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN200710067120A priority Critical patent/CN101009836B/en
Publication of CN101009836A publication Critical patent/CN101009836A/en
Application granted granted Critical
Publication of CN101009836B publication Critical patent/CN101009836B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本发明公开了一种基于双处理器的嵌入式视频播放装置,所述的播放装置设有两个处理器,为负责从视频数据源装置中读取视频码流的嵌入式处理器和负责对视频码流进行解码播放的DSP解码处理器;通过设置两个处理器,将数据读取和解码显示分别由不同的处理器完成,可以同时利用处理器各自的优点,相对于单核处理器具有更强大的性能。同时还可通过更换嵌入式处理器实现从低端到高端的数据读取性能要求,通过更换DSP处理器可以实现低码流低复杂度的音视频编解码算法到高码流高复杂度的音视频编解码算法,相对于多核处理器,具有更多的处理器选择,可根据不同的性能要求定制处理器组合。The invention discloses an embedded video playback device based on dual processors. The playback device is provided with two processors, which are the embedded processor responsible for reading the video code stream from the video data source device and the DSP decoding processor for decoding and playing video code stream; by setting two processors, data reading and decoding display are completed by different processors, and the respective advantages of the processors can be used at the same time. Compared with single-core processors, they have More powerful performance. At the same time, the data reading performance requirements from low-end to high-end can be realized by replacing the embedded processor. By replacing the DSP processor, audio and video codec algorithms with low bit rate and low complexity can be realized to audio and video with high bit rate and high complexity. Compared with multi-core processors, video codec algorithms have more processor choices, and processor combinations can be customized according to different performance requirements.

Description

基于双处理器的嵌入式视频播放装置Embedded Video Playing Device Based on Dual Processors

技术领域technical field

本发明涉及数字视频处理技术领域,具体来说是指一种基于双处理器的嵌入式视频播放装置。The invention relates to the technical field of digital video processing, in particular to an embedded video playback device based on dual processors.

背景技术Background technique

随着信息技术的飞速发展、互联网的迅速普及、3C(计算机、通信、消费电子)合一的加速,数字化时代已经来临。以嵌入式网络多媒体系统为技术核心的数字化产品已成为数字化时代的主流产品。典型的嵌入式网络多媒体系统嵌入式视频监控系统(DVR)、IP机顶盒(IP-STB)、便携式媒体播放器(PMP)等产品都包含嵌入式视频播放系统。嵌入式视频播放系统按照架构分为单核单处理器架构,多核单处理器架构和多处理器架构。单核架构通常不能满足编解码数据处理和码流发送接收处理的运算量,能力上存在较大限制。多核单处理器架构,具有较强的处理能力,但结构限制较大不易定制和扩展。多处理器架构具有结构灵活和性能强大的特点,但需要解决处理器之间的通讯和协调工作的问题。With the rapid development of information technology, the rapid popularization of the Internet, and the acceleration of the integration of 3C (computer, communication, consumer electronics), the digital age has come. Digital products with embedded network multimedia system as the technical core have become mainstream products in the digital age. Typical embedded network multimedia system embedded video surveillance system (DVR), IP set-top box (IP-STB), portable media player (PMP) and other products all include embedded video playback system. The embedded video playback system is divided into single-core single-processor architecture, multi-core single-processor architecture and multi-processor architecture according to the architecture. The single-core architecture usually cannot meet the computational load of encoding and decoding data processing and code stream sending and receiving processing, and there are relatively large limitations in capacity. The multi-core single-processor architecture has strong processing capabilities, but the structure is limited and difficult to customize and expand. The multi-processor architecture has the characteristics of flexible structure and powerful performance, but it needs to solve the problems of communication and coordination between processors.

发明内容Contents of the invention

本发明提供了一种基于双处理器的嵌入式视频播放装置,该系统将解码播放和视频数据源读取分为两个处理器进行处理。由嵌入式处理器进行视频数据源读取,由DSP处理器进行解码播放。具有处理性能强大,功能定制灵活,升级灵活,适用范围广的优点。The invention provides an embedded video playing device based on dual processors. The system divides decoding and playing and reading video data sources into two processors for processing. The video data source is read by the embedded processor, and decoded and played by the DSP processor. It has the advantages of powerful processing performance, flexible function customization, flexible upgrade, and wide application range.

一种基于双处理器的嵌入式视频播放装置,所述的播放装置设有两个处理器,为负责从视频数据源装置中读取视频码流的嵌入式处理器和负责对视频码流进行解码播放的DSP解码处理器;A kind of embedded video playing device based on dual processors, described playing device is provided with two processors, is the embedded processor that is responsible for reading the video code stream from the video data source device and is responsible for video code stream DSP decoding processor for decoding and playing;

嵌入式处理器一端连接视频数据源装置,另一端经双口RAM器件与DSP解码处理器连接,DSP解码处理器连接显示器;One end of the embedded processor is connected to the video data source device, and the other end is connected to the DSP decoding processor through a dual-port RAM device, and the DSP decoding processor is connected to the display;

其中,嵌入式处理器包括码流读取器和码流发送器,Among them, the embedded processor includes a code stream reader and a code stream transmitter,

双口RAM器件包括共享寄存器和码流寄存器,Dual-port RAM devices include shared registers and stream registers,

DSP解码处理器包括码流缓冲器、解码器和播放控制器;DSP decoding processor includes code stream buffer, decoder and playback controller;

码流读取器从视频数据源装置读取视频码流,码流发送器检查共享寄存器的缓冲区剩余空间信息,从码流读取器获取视频码流,经码流寄存器发送给码流缓冲器,码流缓冲器对接收的视频码流进行缓冲,更新共享寄存器中的缓冲区状态信息,解码器从码流缓冲器获取视频码流,并对其进行解码,由播放控制器接收视频数据并控制其播放速度,输出至显示器进行视频显示。The code stream reader reads the video code stream from the video data source device, the code stream transmitter checks the remaining space information of the buffer of the shared register, obtains the video code stream from the code stream reader, and sends it to the code stream buffer through the code stream register The code stream buffer buffers the received video code stream, updates the buffer status information in the shared register, the decoder obtains the video code stream from the code stream buffer, and decodes it, and the video data is received by the playback controller And control its playback speed, output to the monitor for video display.

共享寄存器缓冲区设置有上下限标记,当共享寄存器缓冲区内码流量低于下限时,启动发送,至码流量高于上限时则停止发送。The shared register buffer is set with upper and lower limit marks. When the code flow in the shared register buffer is lower than the lower limit, the sending is started, and when the to-code flow is higher than the upper limit, the sending is stopped.

所述的视频数据源装置可以是网络视频服务器或本地磁盘。The video data source device may be a network video server or a local disk.

本发明可通过更换嵌入式处理器实现从低端到高端的数据读取性能要求,可通过更换DSP处理器实现低码流低复杂度的音视频编解码算法到高码流高复杂度的音视频编解码算法。The present invention can realize the data reading performance requirements from low-end to high-end by replacing the embedded processor, and can realize audio and video encoding and decoding algorithms with low code stream and low complexity to audio and video with high code stream and high complexity by replacing the DSP processor. Video codec algorithm.

本发明通过设置两个处理器,将数据读取和解码显示分别由不同的处理器完成,由于嵌入式处理器具有强大的网络功能和存储操作功能,配合运行其上的嵌入式操作系统和丰富应用程序,可以实现多种音视频数据获取方法,因而本发明在数据读取过程采用嵌入式处理器完成;而DSP处理器具有强大的音视频数据处理能力,可以实现多种音视频编码的解码显示,所以本发明的解码显示过程采用DSP处理器完成。In the present invention, by setting two processors, data reading and decoding and displaying are respectively completed by different processors. Since the embedded processor has powerful network functions and storage operation functions, it cooperates with the embedded operating system and rich The application program can realize multiple audio and video data acquisition methods, so the present invention uses an embedded processor to complete the data reading process; and the DSP processor has powerful audio and video data processing capabilities, and can realize the decoding of multiple audio and video codes display, so the decoding and display process of the present invention is completed using a DSP processor.

将视频播放过程分由两个处理器完成,可以同时利用两种处理器各自的优点,相对于单核处理器具有更强大的性能。同时,本发明可通过更换嵌入式处理器实现从低端到高端的数据读取性能要求,通过更换DSP处理器可以实现低码流低复杂度的音视频编解码算法到高码流高复杂度的音视频编解码算法,性能覆盖范围广且易于定制,有利于软硬件资源复用,相对于多核处理器,具有更多的处理器选择,可根据不同的性能要求定制处理器组合。The video playback process is divided into two processors, and the respective advantages of the two processors can be used at the same time, and it has more powerful performance than a single-core processor. At the same time, the present invention can achieve data reading performance requirements from low-end to high-end by replacing the embedded processor, and can realize audio and video encoding and decoding algorithms with low bit rate and low complexity to high bit rate and high complexity by replacing the DSP processor The advanced audio and video codec algorithm has a wide range of performance and is easy to customize, which is conducive to the multiplexing of software and hardware resources. Compared with multi-core processors, it has more processor options, and the processor combination can be customized according to different performance requirements.

在本发明的视频播放装置中,播放控制由负责视频数据解码播放的DSP处理器主导,嵌入式处理器通过共享寄存器获得解码DSP处理器的缓冲区情况,根据需要向其发送码流。同时本发明通过对缓冲区设置上下限标记,当缓冲区内码流量低于下限时,启动发送,至码流量高于上限时停止发送,可使码流发送分段集中完成。相对于以往通过简单设置发送阀值的方法,不会因为缓冲区码流量在阀值上下抖动而影响到播放性能。In the video playback device of the present invention, the playback control is dominated by the DSP processor responsible for video data decoding and playback, and the embedded processor obtains the buffer situation of the decoding DSP processor through the shared register, and sends code streams to it as required. At the same time, the present invention sets the upper and lower limit marks on the buffer zone. When the code flow in the buffer zone is lower than the lower limit, the transmission is started, and when the code flow is higher than the upper limit, the transmission is stopped, so that the code stream transmission can be completed in a centralized manner. Compared with the previous method of simply setting the sending threshold, the playback performance will not be affected because the buffer code flow fluctuates around the threshold.

附图说明Description of drawings

图1为本发明的结构示意框图;Fig. 1 is a structural schematic block diagram of the present invention;

图2为本发明的功能结构示意框图;Fig. 2 is a schematic block diagram of the functional structure of the present invention;

图3为本发明视频播放的操作流程图。Fig. 3 is a flow chart of the operation of video playback in the present invention.

具体实施方式Detailed ways

如图1所示,一种基于双处理器的嵌入式视频播放装置,设有两个处理器,为负责从网络视频服务器110或本地磁盘160等视频数据源装置中读取视频码流的嵌入式处理器120和负责对视频码流进行解码播放的DSP解码处理器140;As shown in Figure 1, a kind of embedded video playback device based on dual processors is provided with two processors, which are responsible for reading the embedded video code stream from video data source devices such as network video server 110 or local disk 160. Formula processor 120 and the DSP decoding processor 140 that is responsible for decoding and playing the video code stream;

嵌入式处理器120一端连接视频数据源装置,另一端经双口RAM器件130与DSP解码处理器140连接,DSP解码处理器140连接显示器150;One end of the embedded processor 120 is connected to the video data source device, and the other end is connected to the DSP decoding processor 140 through the dual-port RAM device 130, and the DSP decoding processor 140 is connected to the display 150;

如图2所示,嵌入式处理器120包括码流读取器210和码流发送器220;As shown in Figure 2, the embedded processor 120 includes a code stream reader 210 and a code stream transmitter 220;

双口RAM器件130包括共享寄存器230和码流寄存器280;The dual-port RAM device 130 includes a shared register 230 and a code stream register 280;

DSP解码处理器140包括码流缓冲器240、解码器250和播放控制器260。The DSP decoding processor 140 includes a code stream buffer 240 , a decoder 250 and a playback controller 260 .

如图3所示,利用本发明视频播放装置进行视频播放时,码流读取器210从视频数据源装置读取视频码流;码流发送器210首先检查共享寄存器230中码流缓冲区的状态信息,如果缓冲区的剩余空间未大于上限,则循环等待,直到码流消耗至缓冲区剩余空间大于上限,则从码流读取器210读取视频码流,通过码流寄存器280向码流缓冲器240发送视频码流,继续检查共享寄存器230中码流缓冲区的状态信息,如果缓冲区剩余空间未小于下限,则继续向码流缓冲器240发送视频码流,直到共享寄存器230中码流缓冲区的剩余空间小于下限为止;码流缓冲器240对接收的视频码流进行缓冲,并更新共享寄存器230中码流缓冲区的状态信息,解码器250从码流缓冲器240获取视频码流,并对其进行解码,由播放控制器260接收视频数据并控制其播放速度,输出至显示器150进行视频显示。As shown in Figure 3, when utilizing the video playback device of the present invention to play video, the code stream reader 210 reads the video code stream from the video data source device; the code stream transmitter 210 first checks the code stream buffer in the shared register 230 Status information, if the remaining space of the buffer is not greater than the upper limit, then wait in a loop until the code stream is consumed until the remaining space of the buffer is greater than the upper limit, then read the video code stream from the code stream reader 210, and pass the code stream register 280 to the code stream Stream buffer 240 sends video code stream, continues to check the state information of code stream buffer in shared register 230, if buffer remaining space is not less than lower limit, then continues to send video code stream to code stream buffer 240, until shared register 230 The remaining space of code stream buffer is less than the lower limit; code stream, and decode it, the playback controller 260 receives the video data and controls its playback speed, and outputs it to the display 150 for video display.

在实际的应用过程中,可根据不同的性能要求对本发明视频播放装置定制处理器组合,可以通过更换嵌入式处理器实现从低端到高端的数据读取性能要求,也可以通过更换DSP处理器实现低码流低复杂度的音视频编解码算法到高码流高复杂度的音视频编解码算法,具有更多的处理器选择。In the actual application process, the video playback device of the present invention can be customized according to different performance requirements. Realize audio and video encoding and decoding algorithms with low bit rate and low complexity to high bit rate and high complexity audio and video encoding and decoding algorithms, with more processor choices.

Claims (4)

1. embedded video playing device based on dual processor, it is characterized in that: described playing device is provided with two processors, for be responsible for reading the flush bonding processor (120) and the responsible DSP decoding processor (40) that video code flow is decoded and play of video code flow from the video data source apparatus;
Flush bonding processor (120) one ends connect the video data source apparatus, and the other end is connected with DSP decoding processor (140) through dual port RAM device (130), and DSP decoding processor (140) connects display (150);
Wherein, flush bonding processor (120) comprises code stream reader (210) and code stream transmitter (220);
Dual port RAM device (130) comprises shared register (230) and code stream register (280);
DSP decoding processor (140) comprises bit stream buffer device (240), decoder (250) and playing controller (260);
Code stream reader (210) reads video code flow from the video data source apparatus, code stream transmitter (220) inspection is shared the buffering area remaining space information of register (230), obtain video code flow from code stream reader (210), send to bit stream buffer device (240) through code stream register (280), bit stream buffer device (240) cushions the video code flow that receives, upgrade the buffer status information of sharing in the register (230), decoder (250) obtains video code flow from bit stream buffer device (240), and it is decoded, by playing controller (260) receiving video data and control its broadcasting speed, export display (150) to and carry out video and show.
2. the embedded video playing device based on dual processor as claimed in claim 1, it is characterized in that: the bound mark is set sharing register (230) buffering area, code flow is lower than down in limited time in shared register (230) buffering area, startup sends, and is higher than to code flow then to stop in limited time sending.
3. the embedded video playing device based on dual processor as claimed in claim 1 is characterized in that: described video data source apparatus can be network video server (110) or local disk (160).
4. the embedded video playing device based on dual processor as claimed in claim 1, it is characterized in that: can realize from low side can realizing the audio/video encoding/decoding algorithm of the audio/video encoding/decoding algorithm of low code stream low complex degree by changing dsp processor by changing flush bonding processor to the high complexity of high code stream to high-end data read performance requirement.
CN200710067120A 2007-01-31 2007-01-31 Embedded Video Playing Device Based on Dual Processors Expired - Fee Related CN101009836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710067120A CN101009836B (en) 2007-01-31 2007-01-31 Embedded Video Playing Device Based on Dual Processors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710067120A CN101009836B (en) 2007-01-31 2007-01-31 Embedded Video Playing Device Based on Dual Processors

Publications (2)

Publication Number Publication Date
CN101009836A true CN101009836A (en) 2007-08-01
CN101009836B CN101009836B (en) 2010-05-26

Family

ID=38697914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710067120A Expired - Fee Related CN101009836B (en) 2007-01-31 2007-01-31 Embedded Video Playing Device Based on Dual Processors

Country Status (1)

Country Link
CN (1) CN101009836B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100591139C (en) * 2007-09-30 2010-02-17 四川长虹电器股份有限公司 Decoding task allocation method for dual core video decoder
CN102487439A (en) * 2010-12-01 2012-06-06 安凯(广州)微电子技术有限公司 Audio and video acquisition and play processing method with whole embedding of memory
CN102609327A (en) * 2012-01-17 2012-07-25 华为数字技术有限公司 Method and device for improving reliability of multi-core processor
CN103034147A (en) * 2011-09-29 2013-04-10 展讯通信(上海)有限公司 Playing and processing method of media files, multiprocessor system and equipment
CN103037211A (en) * 2011-09-29 2013-04-10 展讯通信(上海)有限公司 Decoding processing method, device and playing equipment of streaming media files
CN106686458A (en) * 2017-01-05 2017-05-17 北京星云互连科技有限公司 Network video live broadcast processing system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2708410Y (en) * 2004-03-12 2005-07-06 北京大学 Image processor
CN100361516C (en) * 2005-03-31 2008-01-09 四川长虹电器股份有限公司 Double-processor TV control method and use thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100591139C (en) * 2007-09-30 2010-02-17 四川长虹电器股份有限公司 Decoding task allocation method for dual core video decoder
CN102487439A (en) * 2010-12-01 2012-06-06 安凯(广州)微电子技术有限公司 Audio and video acquisition and play processing method with whole embedding of memory
CN102487439B (en) * 2010-12-01 2014-12-10 安凯(广州)微电子技术有限公司 Audio and video acquisition and play processing method with whole embedding of memory
CN103034147A (en) * 2011-09-29 2013-04-10 展讯通信(上海)有限公司 Playing and processing method of media files, multiprocessor system and equipment
CN103037211A (en) * 2011-09-29 2013-04-10 展讯通信(上海)有限公司 Decoding processing method, device and playing equipment of streaming media files
CN103034147B (en) * 2011-09-29 2015-11-25 展讯通信(上海)有限公司 The play handling method of media file, multicomputer system and equipment
CN103037211B (en) * 2011-09-29 2017-04-19 展讯通信(上海)有限公司 Decoding processing method, device and playing equipment of streaming media files
CN102609327A (en) * 2012-01-17 2012-07-25 华为数字技术有限公司 Method and device for improving reliability of multi-core processor
CN106686458A (en) * 2017-01-05 2017-05-17 北京星云互连科技有限公司 Network video live broadcast processing system and method

Also Published As

Publication number Publication date
CN101009836B (en) 2010-05-26

Similar Documents

Publication Publication Date Title
TWI502977B (en) Audio/video playing device, audio/video processing device, systems, and method thereof
CN104333808B (en) For the universal player on Android and Linux smart television machine
CN101009836B (en) Embedded Video Playing Device Based on Dual Processors
KR100367000B1 (en) PC-based codec device for multichannel audio/speech and data with multimedia engine and input/output modules for multimedia data processing
WO2005096168A1 (en) Integrated circuit for video/audio processing
JP2009017535A (en) Coding of multimedia signal
US8464006B2 (en) Method and apparatus for data transmission between processors using memory remapping
CN101389020A (en) Method for extending decoding capability of stream media playing device
CN100521795C (en) Control device and method of audio and video playing status based on the built-in system
CN104796768A (en) OMAP (open multimedia application platform) hardware decoding acceleration based embedded high-definition media player and operation method thereof
US20080010392A1 (en) System, method and computer program product for distributed processing of multimedia contents in communication networks
CN101339789B (en) Implementation method of a multimedia engine
CN1755797B (en) Audio decoding apparatus
CN117097907A (en) Audio and video transcoding device, method, equipment, medium and product
CN105657540B (en) A kind of video encoding/decoding method and its device being adapted to Android system
TWI308727B (en) Hierarchical processor architecture for video processing
US9232206B2 (en) Multimedia framework to provide ultra-low power multimedia playback
CN101137054A (en) Embedded type stream media player implementing method
JP5335416B2 (en) System for abstracting audio / video codecs
CN102473088A (en) Media processing comparison systems and techniques
CN114157903B (en) Redirection method, device, apparatus, storage medium and program product
KR20100029010A (en) Multiprocessor systems for processing multimedia data and methods thereof
US20130106873A1 (en) Pluggable media source and sink
CN106604115A (en) Video play control device and method
CN103458319B (en) Media playing tool with multiple media playing models

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100526

Termination date: 20190131