WO2013100919A1 - Intelligent msi-x interrupts for video analytics and encoding - Google Patents
Intelligent msi-x interrupts for video analytics and encoding Download PDFInfo
- Publication number
- WO2013100919A1 WO2013100919A1 PCT/US2011/067448 US2011067448W WO2013100919A1 WO 2013100919 A1 WO2013100919 A1 WO 2013100919A1 US 2011067448 W US2011067448 W US 2011067448W WO 2013100919 A1 WO2013100919 A1 WO 2013100919A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interrupt
- video
- msi
- encoding
- analytics
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/13—Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
- H04N19/137—Motion inside a coding unit, e.g. average field, frame or block difference
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/20—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/436—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation using parallelised computational arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/87—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving scene cut or scene change detection in combination with video compression
Definitions
- This relates generally to computers and, particularly, to video processing.
- Video surveillance wherein one or more video feeds may be received, analyzed, and processed for security or other purposes.
- Another conventional application is for video conferencing.
- central processing units typically, general purpose processors, such as central processing units, are used for video processing.
- a specialty processor called a graphics processor, may assist the central processing unit.
- Video analytics involves obtaining information about the content of video information.
- the video processing may include content analysis, wherein the content video is analyzed in order to detect certain events or occurrences or to find information of interest.
- Message signaled interrupts or MSI is a technique for generating an interrupt.
- each device has an interrupt pin asserted when the device wants to interrupt a host central processing unit.
- Message signaled interrupts allow the device to write a small amount of data to a special address in memory space. The chipset then delivers an interrupt to the central processing unit.
- MSI-X permits a device to allocate up to two thousand forty eight interrupts.
- MSI-X is specified in the Peripheral Component Interconnect Express Base specifications, revisions 1 .0a and 1 .1 in section 6.1 .
- MSI-X allows a large number of interrupts, giving each interrupt a separate target address and an identifying data word. It uses 64-bit addressing and interrupt masking.
- Figure 1 is a system architecture in accordance with one embodiment of the present invention.
- Figure 2 is a circuit depiction for the video analytics engine shown in Figure 1 in accordance with one embodiment
- Figure 3 is a flow chart for video capture in accordance with one embodiment of the present invention.
- Figure 4 is a flow chart for a two dimensional matrix memory in accordance with one embodiment
- Figure 5 is a flow chart for analytics assisted encoding in accordance with one embodiment
- Figure 6 is a flow chart for another embodiment
- Figure 7 is a depiction of an interrupt control for one embodiment
- Figure 8 is an interrupt timing diagram for one embodiment.
- Figure 9 is a flow chart for one embodiment.
- multiple streams of video may be processed in parallel.
- the streams of video may be encoded at the same time video analytics are being implemented.
- each of a plurality of streams may be encoded, in one shot, at the same time each of a plurality of streams are being subjected to video analytics.
- the characteristics of the encoding or the analytics may be changed by the user on the fly while encoding or analytics are already being implemented.
- video analytics are only optional and may or may not be used.
- a computer system 10 may be any of a variety of computer systems, including those that use video analytics, such as video surveillance and video conferencing application, as well as embodiments which do not use video analytics.
- the system 10 may be a desk top computer, a server, a laptop computer, a mobile Internet device, or a cellular telephone, to mention a few examples.
- the system 10 may have one or more host central processing units 12, coupled to a system bus 14.
- a system memory 22 may be coupled to the system bus 14. While an example of a host system architecture is provided, the present invention is in no way limited to any particular system architecture.
- the system bus 14 may be coupled to a bus interface 16, in turn, coupled to a conventional bus 18.
- PCIe Interconnect Express
- a video analytics engine 20 may be coupled to the host via a bus 18.
- the video analytics engine may be a single integrated circuit which provides both encoding and video analytics.
- the integrated circuit may use embedded Dynamic Random Access Memory (EDRAM) technology.
- EDRAM embedded Dynamic Random Access Memory
- either encoding or video analytics may be dispensed with.
- the engine 20 may include a memory controller that controls an on-board integrated two dimensional matrix memory, as well as providing communications with an external memory.
- the video analytics engine 20 communicates with a local dynamic random access memory (DRAM) 19.
- DRAM dynamic random access memory
- the video analytics engine 20 may include a memory controller for accessing the memory 19.
- the engine 20 may use the system memory 22 and may include a direct connection to system memory.
- Also coupled to the video analytics engine 20 may be one or more cameras 24.
- up to four simultaneous video inputs may be received in standard definition format.
- one high definition input may be provided on three inputs and one standard definition may be provided on the fourth input.
- more or less high definition inputs may be provided and more or less standard definition inputs may be provided.
- each of three inputs may receive ten bits of high definition input data, such as R, G and B inputs or Y, U and V inputs, each on a separate ten bit input line.
- One embodiment of the video analytics engine 20, shown in Figure 2 is depicted in an embodiment with four camera channel inputs at the top of the page.
- the four inputs may be received by a video capture interface 26.
- the video capture interface 26 may receive multiple simultaneous video inputs in the form of camera inputs or other video information, including television, digital video recorder, or media player inputs, to mention a few examples.
- the video capture interface automatically captures and copies each input frame.
- One copy of the input frame is provided to the VAFF unit 66 and the other copy may be provided to VEFF unit 68.
- the VEFF unit 68 is responsible for storing the video on the external memory, such as the memory 22, shown in Figure 1 .
- the external memory may be coupled to an on-chip system memory controller/arbiter 50 in one embodiment.
- the storage on the external memory may be for purposes of video encoding. Specifically, if one copy is stored on the external memory, it can be accessed by the video encoders 32 for encoding the information in a desired format. In some embodiments, a plurality of formats are available and the system may select a particular encoding format that is most desirable.
- video analytics may be utilized to improve the efficiency of the encoding process implemented by the video encoders 32.
- the frames Once the frames are encoded, they may be provided via the PCI Express bus 36 to the host system.
- the other copies of the input video frames are stored on the two dimensional matrix or main memory 28.
- the VAFF may process and transmit all four input video channels at the same time.
- the VAFF may include four replicated units to process and transmit the video.
- the transmission of video for the memory 28 may use multiplexing. Due to the delay inherent in the video retrace time, the transfers of multiple channels can be done in real time, in some
- Storage on the main memory may be selectively implemented non-linearly or linearly.
- linear addressing one or more locations on intersecting addressed lines are specified to access the memory locations.
- an addressed line such as a word or bitline, may be specified and an extent along that word or bitline may be indicated so that a portion of an addressed memory line may be successively stored in automated fashion.
- both row and column lines may be accessed in one operation.
- the operation may specify an initial point within the memory matrix, for example, at an intersection of two addressed lines, such as row or column lines.
- a memory size or other delimiter is provided to indicate the extent of the matrix in two dimensions, for example, along row and column lines.
- the entire matrix may be automatically stored by automated incrementing of addressable locations. In other words, it is not necessary to go back to the host or other devices to determine addresses for storing subsequent portions of the memory matrix, after the initial point.
- the two dimensional memory offloads the task of generating addresses or substantially entirely eliminates it. As a result, in some embodiments, both required bandwidth and access time may be reduced.
- a two dimensional memory matrix may be accessed using conventional linear addressing as well.
- other delimiters may be provided as well, including an extent in each of two dimensions (i.e. along word and bitlines).
- the two dimensional memory is advantageous with still and moving pictures, graphs, and other applications with data in two dimensions.
- Information can be stored in the memory 28 in two dimensions or in one dimension. Conversion between one and two dimensions can occur automatically on the fly in hardware, in one embodiment.
- video encoding of multiple streams may be undertaken in a video encoder at the same time the multiple streams are also being subjected to analytics in the video analytics functional unit 42. This may be implemented by making a copy of each of the streams in the video capture interface 26 and sending one set of copies of each of the streams to the video encoders 32, while another copy goes to the video analytics functional unit 42.
- a time multiplexing of each of the plurality of streams may be undertaken in each of the video encoders 32 and the video analytics functional unit 42. For example, based on user input, one or more frames from the first stream may be encoded, followed by one or more frames from the second stream, followed by one or more streams from the next stream, and so on. Similarly, time multiplexing may be used in the video analytics functional unit 42 in the same way wherein, based on user inputs, one or more frames from one stream are subjected to video analytics, then one or more frames from the next stream, and so on. Thus, a series of streams can be processed at substantially the same time, that is, in one shot, in the encoders and video analytics functional unit.
- the user can set the sequence of which stream is processed first and how many frames of each stream are processed at any particular time.
- the video encoders and the video analytics engine as the frames are processed, they can be output over the bus 36.
- the context of each stream in the encoder may be retained in a register dedicated to that stream in the register set 122, which may include registers for each of the streams.
- the register set 122 may record the characteristics of the encoding which have been specified in one of a variety of ways, including a user input. For example, the resolution, compression rate, and the type of encoding that is desired for each stream can be recorded. Then, as the time multiplexed encoding occurs, the video encoder can access the correct characteristics for the current stream being processed from the register 1 16, for the correct stream.
- the same thing can be done in the video analytics functional unit 46 using the register set 124.
- the characteristics of the video analytics processing or the encoding per stream can be recorded within the registers 124 and 122 with one register reserved for each stream in each set of registers.
- the user or some other source can direct that the
- fly it is intended to refer to a change that occurs during analytics processing, in the case of the video analytics functional unit 42 or in the case of encoding, in the case of the video encoders 32.
- the change may be initially recorded in shadow registers 1 16, for the video encoders and shadow registers 1 14, for the video analytics functional unit 42. Then, as soon as the frame (or designated number of frames) is completed, the video encoder 32 checks to see if any changes have been stored in the registers 1 16. If so, the video encoder transfers those changes over the path 120 to the registers 122, updating the new characteristics in the registers appropriate for each stream that had its encoding characteristics changed on the fly.
- the same on the fly changes may be done in the video analytics functional unit 42, in one embodiment.
- the existing frames or an existing set of work
- the changes may be transferred from the registers 1 14 over the bus 1 18 to the video analytics functional unit 42 for storage in the registers 124, normally replacing the
- the sequence 130 may be implemented in software, firmware, and/or hardware.
- the sequence may be implemented by computer executed instructions stored in a non-transitory computer readable medium, such as an optical, magnetic, or semiconductor memory.
- a non-transitory computer readable medium such as an optical, magnetic, or semiconductor memory.
- the sequence may be stored in a memory within the encoder and, in the case of the analytics functional unit, they may be stored, for example in the pixel pipeline unit 44, in one embodiment.
- the sequence waits for user input of context instructions for encoding or analytics.
- the flow may be the same, in some embodiments, for analytics and encoding.
- the context is stored for each stream in an appropriate register 122 or 124, as indicated in block 134.
- the time multiplexed processing begins, as indicated in block 136.
- a check at diamond 138 determines whether there has been any processing change instructions. If not, a check at diamond 142 determines whether the processing is completed. If not, the time multiplexed processing continues.
- a processing change may be stored in the appropriate shadow registers 1 14 or 1 16, as indicated in block 140. Then, when a current processing task is completed, the change can be automatically implemented in the next set of operations, be it encoding, in the case of video encoders 32 or analytics, in the case of functional unit 42.
- the frequency of encoding may change with the magnitude of the load on the encoder.
- the encoder runs fast enough that it can complete encoding of one frame before the next frame is read out of the memory.
- the encoding engine may be run at a faster speed than needed to encode one frame or set of frames before the next frame or set of frames has run out of memory.
- the context registers may store any necessary criteria for doing the encoding or analytics including, in the case of the encoder, resolution, encoding type, and rate of compression. Generally, the processing may be done in a round robin fashion proceeding from one stream or channel to the next.
- the encoded data is then output to the Peripheral Components Interconnect (PCI) Express bus 18, in one embodiment.
- PCI Peripheral Components Interconnect
- buffers associated with the PCI Express bus may receive the encoding from each channel. Namely, in some embodiments, a buffer may be provided for each video channel in association with the PCI Express bus. Each channel buffer may be emptied to the bus controlled by an arbiter associated with the PCI Express bus. In some embodiments, the way that the arbiter empties each channel to the bus may be subject to user inputs.
- a system for video capture 20 may be implemented in hardware, software, and/or firmware. Hardware embodiments may be advantageous, in some cases, because they may be capable of greater speeds.
- the video frames may be received from one or more channels. Then the video frames are copied, as indicated in block 74. Next, one copy of the video frames is stored in the external memory for encoding, as indicated in block 76. The other copy is stored in the internal or the main memory 28 for analytics purposes, as indicated in block 78.
- a sequence may be implemented in software, firmware, or hardware. Again, there may be speed advantages in using hardware embodiments.
- a check at diamond 82 determines whether a store command has been received.
- commands may be received from the host system and, particularly, from its central processing unit 12.
- Those commands may be received by a dispatch unit 34, which then provides the commands to the appropriate units of the engine 20, used to implement the command.
- the dispatch unit reports back to the host system.
- an initial memory location and two dimensional size information may be received, as indicated in block 84. Then the information is stored in an appropriate two dimensional matrix, as indicated in block 86.
- the initial location may, for example, define the upper left corner of the matrix.
- the store operation may automatically find a matrix within the memory 20 of the needed size in order to implement the operation. Once the initial point in the memory is provided, the operation may automatically store the succeeding parts of the matrix without requiring additional address computations, in some embodiments.
- a read access is involved, as determined in diamond 88, the initial location and two dimensional size information is received, as indicated in block 90. Then the designated matrix is read, as indicated in block 92. Again, the access may be done in automated fashion, wherein the initial point may be accessed, as would be done in conventional linear addressing, and then the rest of the addresses are automatically determined without having to go back and compute addresses in the conventional fashion.
- the initial location and two dimensional size information is received, as indicated in block 96, and the move command is automatically implemented, as indicated in block 98.
- the matrix of information may be automatically moved from one location to another, simply by specifying a starting location and providing size information.
- the video analytics unit 42 may be coupled to the rest of the system through a pixel pipeline unit 44.
- the unit 44 may include a state machine that executes commands from the dispatch unit 34. Typically, these commands originate at the host and are implemented by the dispatch unit.
- a variety of different analytics units may be included based on application.
- a convolve unit 46 may be included for automated provision of convolutions.
- the convolve command may include both a command and arguments specifying a mask, reference or kernel so that a feature in one captured image can be compared to a reference two dimensional image in the memory 28.
- the command may include a destination specifying where to store the convolve result.
- each of the video analytics units may be a hardware accelerator.
- hardware accelerator it is intended to refer to a hardware device that performs a function faster than software running on a central processing unit.
- each of the video analytics units may be a state machine that is executed by specialized hardware dedicated to the specific function of that unit. As a result, the units may execute in a relatively fast way. Moreover, only one clock cycle may be needed for each operation implemented by a video analytics unit because all that is necessary is to tell the hardware accelerator to perform the task and to provide the arguments for the task and then the sequence of operations may be implemented, without further control from any processor, including the host processor.
- Other video analytics units may include a centroid unit 48 that calculates centroids in an automated fashion, a histogram unit 50 that determines histograms in automated fashion, and a dilate/erode unit 52.
- the dilate/erode unit 52 may be responsible for either increasing or decreasing the resolution of a given image in automated fashion. Of course, it is not possible to increase the resolution unless the information is already available, but, in some cases, a frame received at a higher resolution may be processed at a lower resolution. As a result, the frame may be available in higher resolution and may be transformed to a higher resolution by the dilate/erode unit 52.
- the Memory Transfer of Matrix (MTOM) unit 54 is responsible for implementing move instructions, as described previously.
- an arithmetic unit 56 and a Boolean unit 58 may be provided. Even though these same units may be available in connection with a central processing unit or an already existent coprocessor, it may be advantageous to have them onboard the engine 20, since their presence on-chip may reduce the need for numerous data transfer operations from the engine 20 to the host and back. Moreover, by having them onboard the engine 20, the two dimensional or matrix main memory may be used in some embodiments.
- An extract unit 60 may be provided to take vectors from an image.
- a lookup unit 62 may be used to lookup particular types of information to see if it is already stored. For example, the lookup unit may be used to find a histogram already stored.
- the subsample unit 64 is used when the image has too high a resolution for a particular task. The image may be subsampled to reduce its resolution.
- other components may also be provided including an l 2 C interface 38 to interface with camera configuration commands and a general purpose input/output device 40 connected to all the corresponding modules to receive general inputs and outputs and for use in connection with debugging, in some embodiments.
- an analytics assisted encoding scheme 100 may be implemented, in some embodiments.
- the scheme may be implemented in software, firmware and/or hardware. However, hardware embodiments may be faster.
- the analytics assisted encoding may use analytics capabilities to determine what portions of a given frame of video information, if any, should be encoded. As a result, some portions or frames may not need to be encoded in some embodiments and, as one result, speed and bandwidth may be increased.
- what is or is not encoded may be case specific and may be determined on the fly, for example, based on available battery power, user selections, and available bandwidth, to mention a few examples. More particularly, image or frame analysis may be done on existing frames versus ensuing frames to determine whether or not the entire frame needs to be encoded or whether only portions of the frame need to be encoded. This analytics assisted encoding is in contrast to conventional motion estimation based encoding which merely decides whether or not to include motion vectors, but still encodes each and every frame.
- successive frames are either encoded or not encoded on a selective basis and selected regions within a frame, based on the extent of motion within those regions, may or may not be encoded at all. Then, the decoding system is told how many frames were or were not encoded and can simply replicate frames as needed.
- a first frame or frames may be fully encoded at the beginning, as indicated in block 102, in order to determine a base or reference. Then, a check at diamond 104 determines whether analytics assisted encoding should be provided. If analytics assisted encoding will not be used, the encoding proceeds as is done conventionally.
- a threshold is determined, as indicated in block 106.
- the threshold may be fixed or may be adaptive, depending on non-motion factors such as the available battery power, the available bandwidth, or user selections, to mention a few examples.
- the existing frame and succeeding frames are analyzed to determine whether motion in excess of the threshold is present and, if so, whether it can be isolated to particular regions.
- the various analytics units may be utilized, including, but not limited to, the convolve unit, the erode/dilate unit, the subsample unit, and the lookup unit.
- the image or frame may be analyzed for motion above a threshold, analyzed relative to previous and/or subsequent frames.
- regions with motion in excess of a threshold may be located. Only those regions may be encoded, in one embodiment, as indicated in block 1 12. In some cases, no regions on a given frame may be encoded at all and this result may simply be recorded so that the frame can be simply replicated during decoding.
- the encoder provides information in a header or other location about what frames were encoded and whether frames have only portions that are encoded. The address of the encoded portion may be provided in the form of an initial point and a matrix size in some embodiments.
- Figures 3, 4, and 5 are flow charts which may be implemented in hardware. They may also be implemented in software or firmware, in which case they may be embodied on a non-transitory computer readable medium, such as an optical, magnetic, or semiconductor memory.
- the non-transitory medium stores instructions for execution by a processor. Examples of such a processor or controller may include the analytics engine 20 and suitable non-transitory media may include the main memory 28 and the external memory 22, as two examples.
- the video analytics engine 20 is coupled to a host including the central processing unit 12.
- the engine 20 executes instructions independently from the host central processing unit 12.
- the host central processing unit must feed the engine 20 both data and instructions and it must receive results of operations.
- intelligent message signaled interrupts may be applied in some embodiments.
- the engine 20 uses a RAISE instruction that generates an MSI-X interrupt.
- the MSI interrupt that results not only serves as an interrupt but also carries additional information [WHAT INFORMATION?] in the message data field of the interrupt to reduce the overhead involved in servicing the interrupt.
- the intelligent MSI-X interrupt controller holds off the acknowledge to the RAISE interrupt request from the instruction dispatch unit until the data transferred to the host is complete. This mechanism may ensure that an interrupt for a RAISE instruction is sent only after a successful completion of the READ or RMD instruction through the Peripheral Component Interconnect Express bus 18.
- MSI-X interface is as follows in one embodiment where IC is the engine 20, O is Out and I is In and size is in bytes. Port Size Direction Description
- misx addr 64 The address value for the MSI-X misx data 32 0 The data value for the MSI-X
- EPChas accepted the request to send an MSI(-X). After asserting msi_grant for one cycle, the EPC does not wait for msi_req to be deasserted then
- the interrupt controller 300 receives clocks from the various components that provide interrupts and receives reset signals from those same devices.
- a configuration and status register (CSR) decode 302 receives CSR inputs. It provides a signal to MSI-X interface 304. It also provides a decode signal to the legacy interrupt pending register 306.
- the MSI-X interface receives interrupts from a resync unit 310.
- the resync unit 310 receives interrupts from functional units such as a video encoder (VE) the memory matrix (MM), the video capture interface (VCI), the external memory (DDR), the l 2 c bus (I2C), the general purpose input/output (GPIO), the dispatch unit (DU) and receives the dispatch unit RAISE signal.
- VE video encoder
- MM memory matrix
- VCI video capture interface
- DDR external memory
- I2C the l 2 c bus
- GPIO general purpose input/output
- the Peripheral Component Interconnect dispatch unit write done signal is provided to a dispatch unit RAISE controller 308.
- the controller 308 provides a dispatch unit write done acknowledge signal and receives and sends signals to the resync unit 310.
- FIG. 8 timing for the various signals is illustrated.
- the core clock is shown at the top followed by the video encoder MSI request.
- the timing of the video encoder MSI grant is shown. This is a one-cycle pulse indicating that the request to send an MSI-x was accepted.
- the MSI-X address signal is illustrated for one embodiment. This is followed by the MSI-X data signal.
- the video encoder MSI traffic class (tc) signal is illustrated followed by the configuration (CFG) MSI-X encoder signal.
- a traffic class is a type of system traffic in PCI Express, that may be assigned to a supported virtual channel for flow control purposes.
- the traffic class of the MSI-X request is valid when the MSI request is asserted.
- the cfg_msix_en is for the MSI-X enable bit of the MSI-X control register in the MSI-X capability structure.
- a sequence 400 for implementing an interrupt controller may be implemented in software, firmware and/or hardware.
- software and firmware embodiments it may be implemented by computer executed instructions stored in a non-transitory computer readable medium such as a magnetic, optical or semiconductor storage.
- the instructions may be implemented within the interrupt controller 300.
- the sequence may begin by detecting an interrupt as indicated in diamond 402. Then in block 404, the interrupt may be indicated.
- the interrupt may be accompanied by an address value, data value, and a traffic class as indicated in block 406 to assist in servicing the interrupt.
- graphics functionality may be integrated within a chipset.
- a discrete graphics processor may be used.
- the graphics functions may be implemented by a general purpose processor, including a multicore processor.
- references throughout this specification to "one embodiment” or “an embodiment” mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one implementation encompassed within the present invention. Thus, appearances of the phrase “one embodiment” or “in an embodiment” are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be instituted in other suitable forms other than the particular embodiment illustrated and all such forms may be encompassed within the claims of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Video analytics may be used to assist video encoding by selectively encoding only portions of a frame and using, instead, previously encoded portions. Previously encoded portions may be used when succeeding frames have a level of motion less than a threshold. In such case, all or part of succeeding frames may not be encoded, increasing bandwidth and speed in some embodiments.
Description
INTELLIGENT MSI-X INTERRUPTS
FOR VIDEO ANALYTICS AND ENCODING
Background
[0001 ] This relates generally to computers and, particularly, to video processing.
[0002] There are a number of applications in which video must be processed and/or stored. One example is video surveillance, wherein one or more video feeds may be received, analyzed, and processed for security or other purposes. Another conventional application is for video conferencing.
[0003] Typically, general purpose processors, such as central processing units, are used for video processing. In some cases, a specialty processor, called a graphics processor, may assist the central processing unit.
[0004] Video analytics involves obtaining information about the content of video information. For example, the video processing may include content analysis, wherein the content video is analyzed in order to detect certain events or occurrences or to find information of interest.
[0005] Message signaled interrupts or MSI is a technique for generating an interrupt. Typically, each device has an interrupt pin asserted when the device wants to interrupt a host central processing unit. In the Peripheral Component Interconnect Express specification, there are no separate interrupt pins. Instead special messages allow emulation of a pin assertion or de-assertion. Message signaled interrupts allow the device to write a small amount of data to a special address in memory space. The chipset then delivers an interrupt to the central processing unit.
[0006] MSI-X permits a device to allocate up to two thousand forty eight interrupts. MSI-X is specified in the Peripheral Component Interconnect Express Base specifications, revisions 1 .0a and 1 .1 in section 6.1 . MSI-X allows a large
number of interrupts, giving each interrupt a separate target address and an identifying data word. It uses 64-bit addressing and interrupt masking.
Brief Description of the Drawings
[0007] Figure 1 is a system architecture in accordance with one embodiment of the present invention;
[0008] Figure 2 is a circuit depiction for the video analytics engine shown in Figure 1 in accordance with one embodiment;
[0009] Figure 3 is a flow chart for video capture in accordance with one embodiment of the present invention;
[0010] Figure 4 is a flow chart for a two dimensional matrix memory in accordance with one embodiment;
[001 1 ] Figure 5 is a flow chart for analytics assisted encoding in accordance with one embodiment;
[0012] Figure 6 is a flow chart for another embodiment;
[0013] Figure 7 is a depiction of an interrupt control for one embodiment;
[0014] Figure 8 is an interrupt timing diagram for one embodiment; and
[0015] Figure 9 is a flow chart for one embodiment.
Detailed Description
[0016] In accordance with some embodiments, multiple streams of video may be processed in parallel. The streams of video may be encoded at the same time video analytics are being implemented. Moreover, each of a plurality of streams may be encoded, in one shot, at the same time each of a plurality of streams are being subjected to video analytics. In some embodiments, the characteristics of the encoding or the analytics may be changed by the user on the fly while encoding or analytics are already being implemented.
[0017] While an example of an embodiment is given in which video analytics are used, in some embodiments, video analytics are only optional and may or may not be used.
[0018] Referring to Figure 1 , a computer system 10 may be any of a variety of computer systems, including those that use video analytics, such as video surveillance and video conferencing application, as well as embodiments which do not use video analytics. The system 10 may be a desk top computer, a server, a laptop computer, a mobile Internet device, or a cellular telephone, to mention a few examples.
[0019] The system 10 may have one or more host central processing units 12, coupled to a system bus 14. A system memory 22 may be coupled to the system bus 14. While an example of a host system architecture is provided, the present invention is in no way limited to any particular system architecture.
[0020] The system bus 14 may be coupled to a bus interface 16, in turn, coupled to a conventional bus 18. In one embodiment, the Peripheral Component
Interconnect Express (PCIe) bus may be used, but the present invention is in no way limited to any particular bus.
[0021 ] A video analytics engine 20 may be coupled to the host via a bus 18. In one embodiment, the video analytics engine may be a single integrated circuit which provides both encoding and video analytics. In one embodiment, the integrated circuit may use embedded Dynamic Random Access Memory (EDRAM) technology. However, in some embodiments, either encoding or video analytics may be dispensed with. In addition, in some embodiments, the engine 20 may include a memory controller that controls an on-board integrated two dimensional matrix memory, as well as providing communications with an external memory.
[0022] Thus, in the embodiment illustrated in Figure 1 , the video analytics engine 20 communicates with a local dynamic random access memory (DRAM) 19.
Specifically, the video analytics engine 20 may include a memory controller for
accessing the memory 19. Alternatively, the engine 20 may use the system memory 22 and may include a direct connection to system memory.
[0023] Also coupled to the video analytics engine 20 may be one or more cameras 24. In some embodiments, up to four simultaneous video inputs may be received in standard definition format. In some embodiments, one high definition input may be provided on three inputs and one standard definition may be provided on the fourth input. In other embodiments, more or less high definition inputs may be provided and more or less standard definition inputs may be provided. As one example, each of three inputs may receive ten bits of high definition input data, such as R, G and B inputs or Y, U and V inputs, each on a separate ten bit input line.
[0024] One embodiment of the video analytics engine 20, shown in Figure 2, is depicted in an embodiment with four camera channel inputs at the top of the page. The four inputs may be received by a video capture interface 26. The video capture interface 26 may receive multiple simultaneous video inputs in the form of camera inputs or other video information, including television, digital video recorder, or media player inputs, to mention a few examples.
[0025] The video capture interface automatically captures and copies each input frame. One copy of the input frame is provided to the VAFF unit 66 and the other copy may be provided to VEFF unit 68. The VEFF unit 68 is responsible for storing the video on the external memory, such as the memory 22, shown in Figure 1 . The external memory may be coupled to an on-chip system memory controller/arbiter 50 in one embodiment. In some embodiments, the storage on the external memory may be for purposes of video encoding. Specifically, if one copy is stored on the external memory, it can be accessed by the video encoders 32 for encoding the information in a desired format. In some embodiments, a plurality of formats are available and the system may select a particular encoding format that is most desirable.
[0026] As described above, in some cases, video analytics may be utilized to improve the efficiency of the encoding process implemented by the video encoders
32. Once the frames are encoded, they may be provided via the PCI Express bus 36 to the host system.
[0027] At the same time, the other copies of the input video frames are stored on the two dimensional matrix or main memory 28. The VAFF may process and transmit all four input video channels at the same time. The VAFF may include four replicated units to process and transmit the video. The transmission of video for the memory 28 may use multiplexing. Due to the delay inherent in the video retrace time, the transfers of multiple channels can be done in real time, in some
embodiments.
[0028] Storage on the main memory may be selectively implemented non-linearly or linearly. In conventional, linear addressing one or more locations on intersecting addressed lines are specified to access the memory locations. In some cases, an addressed line, such as a word or bitline, may be specified and an extent along that word or bitline may be indicated so that a portion of an addressed memory line may be successively stored in automated fashion.
[0029] In contrast, in two dimensional or non-linear addressing, both row and column lines may be accessed in one operation. The operation may specify an initial point within the memory matrix, for example, at an intersection of two addressed lines, such as row or column lines. Then a memory size or other delimiter is provided to indicate the extent of the matrix in two dimensions, for example, along row and column lines. Once the initial point is specified, the entire matrix may be automatically stored by automated incrementing of addressable locations. In other words, it is not necessary to go back to the host or other devices to determine addresses for storing subsequent portions of the memory matrix, after the initial point. The two dimensional memory offloads the task of generating addresses or substantially entirely eliminates it. As a result, in some embodiments, both required bandwidth and access time may be reduced.
[0030] Basically the same operation may be done in reverse to read a two dimensional memory matrix. Alternatively, a two dimensional memory matrix may be accessed using conventional linear addressing as well.
[0031 ] While an example is given wherein the size of the memory matrix is specified, other delimiters may be provided as well, including an extent in each of two dimensions (i.e. along word and bitlines). The two dimensional memory is advantageous with still and moving pictures, graphs, and other applications with data in two dimensions.
[0032] Information can be stored in the memory 28 in two dimensions or in one dimension. Conversion between one and two dimensions can occur automatically on the fly in hardware, in one embodiment.
[0033] In some embodiments, video encoding of multiple streams may be undertaken in a video encoder at the same time the multiple streams are also being subjected to analytics in the video analytics functional unit 42. This may be implemented by making a copy of each of the streams in the video capture interface 26 and sending one set of copies of each of the streams to the video encoders 32, while another copy goes to the video analytics functional unit 42.
[0034] In one embodiment, a time multiplexing of each of the plurality of streams may be undertaken in each of the video encoders 32 and the video analytics functional unit 42. For example, based on user input, one or more frames from the first stream may be encoded, followed by one or more frames from the second stream, followed by one or more streams from the next stream, and so on. Similarly, time multiplexing may be used in the video analytics functional unit 42 in the same way wherein, based on user inputs, one or more frames from one stream are subjected to video analytics, then one or more frames from the next stream, and so on. Thus, a series of streams can be processed at substantially the same time, that is, in one shot, in the encoders and video analytics functional unit.
[0035] In some embodiments, the user can set the sequence of which stream is processed first and how many frames of each stream are processed at any particular time. In the case of the video encoders and the video analytics engine, as the frames are processed, they can be output over the bus 36.
[0036] The context of each stream in the encoder may be retained in a register dedicated to that stream in the register set 122, which may include registers for each of the streams. The register set 122 may record the characteristics of the encoding which have been specified in one of a variety of ways, including a user input. For example, the resolution, compression rate, and the type of encoding that is desired for each stream can be recorded. Then, as the time multiplexed encoding occurs, the video encoder can access the correct characteristics for the current stream being processed from the register 1 16, for the correct stream.
[0037] Similarly, the same thing can be done in the video analytics functional unit 46 using the register set 124. In other words, the characteristics of the video analytics processing or the encoding per stream can be recorded within the registers 124 and 122 with one register reserved for each stream in each set of registers.
[0038] In addition, the user or some other source can direct that the
characteristics be changed on the fly. By "on the fly," it is intended to refer to a change that occurs during analytics processing, in the case of the video analytics functional unit 42 or in the case of encoding, in the case of the video encoders 32.
[0039] When a change comes in when a frame is being processed, the change may be initially recorded in shadow registers 1 16, for the video encoders and shadow registers 1 14, for the video analytics functional unit 42. Then, as soon as the frame (or designated number of frames) is completed, the video encoder 32 checks to see if any changes have been stored in the registers 1 16. If so, the video encoder transfers those changes over the path 120 to the registers 122, updating the new characteristics in the registers appropriate for each stream that had its encoding characteristics changed on the fly.
[0040] Again, the same on the fly changes may be done in the video analytics functional unit 42, in one embodiment. When an on the fly change is detected, the existing frames (or an existing set of work) may be completed using the old characteristics, while storing the changes in the shadow registers 1 14. Then at an opportune time, after a workload or frame has completed processing, the changes may be transferred from the registers 1 14 over the bus 1 18 to the video analytics
functional unit 42 for storage in the registers 124, normally replacing the
characteristics stored for any particular stream in separate registers among the registers 124. Then, once the update is complete, the next processing load uses the new characteristics.
[0041 ] Thus, referring to Figure 6, the sequence 130 may be implemented in software, firmware, and/or hardware. In software or firmware based embodiments, the sequence may be implemented by computer executed instructions stored in a non-transitory computer readable medium, such as an optical, magnetic, or semiconductor memory. For example, in the case of the encoder 32, the sequence may be stored in a memory within the encoder and, in the case of the analytics functional unit, they may be stored, for example in the pixel pipeline unit 44, in one embodiment.
[0042] Initially, the sequence waits for user input of context instructions for encoding or analytics. The flow may be the same, in some embodiments, for analytics and encoding. Once the user input is received, as determined in diamond 132, the context is stored for each stream in an appropriate register 122 or 124, as indicated in block 134. Then the time multiplexed processing begins, as indicated in block 136. During that processing, a check at diamond 138 determines whether there has been any processing change instructions. If not, a check at diamond 142 determines whether the processing is completed. If not, the time multiplexed processing continues.
[0043] If a processing change has been received, it may be stored in the appropriate shadow registers 1 14 or 1 16, as indicated in block 140. Then, when a current processing task is completed, the change can be automatically implemented in the next set of operations, be it encoding, in the case of video encoders 32 or analytics, in the case of functional unit 42.
[0044] In some embodiments, the frequency of encoding may change with the magnitude of the load on the encoder. Generally, the encoder runs fast enough that it can complete encoding of one frame before the next frame is read out of the memory. In many cases, the encoding engine may be run at a faster speed than
needed to encode one frame or set of frames before the next frame or set of frames has run out of memory.
[0045] The context registers may store any necessary criteria for doing the encoding or analytics including, in the case of the encoder, resolution, encoding type, and rate of compression. Generally, the processing may be done in a round robin fashion proceeding from one stream or channel to the next. The encoded data is then output to the Peripheral Components Interconnect (PCI) Express bus 18, in one embodiment. In some cases, buffers associated with the PCI Express bus may receive the encoding from each channel. Namely, in some embodiments, a buffer may be provided for each video channel in association with the PCI Express bus. Each channel buffer may be emptied to the bus controlled by an arbiter associated with the PCI Express bus. In some embodiments, the way that the arbiter empties each channel to the bus may be subject to user inputs.
[0046] Thus, referring to Figure 3, a system for video capture 20 may be implemented in hardware, software, and/or firmware. Hardware embodiments may be advantageous, in some cases, because they may be capable of greater speeds.
[0047] As indicated in block 72, the video frames may be received from one or more channels. Then the video frames are copied, as indicated in block 74. Next, one copy of the video frames is stored in the external memory for encoding, as indicated in block 76. The other copy is stored in the internal or the main memory 28 for analytics purposes, as indicated in block 78.
[0048] Referring next to the two dimensional matrix sequence 80, shown in Figure 4, a sequence may be implemented in software, firmware, or hardware. Again, there may be speed advantages in using hardware embodiments.
[0049] Initially, a check at diamond 82 determines whether a store command has been received. Conventionally, such commands may be received from the host system and, particularly, from its central processing unit 12. Those commands may be received by a dispatch unit 34, which then provides the commands to the appropriate units of the engine 20, used to implement the command. When the
command has been implemented, in some embodiments, the dispatch unit reports back to the host system.
[0050] If a store command is involved, as determined in diamond 82, an initial memory location and two dimensional size information may be received, as indicated in block 84. Then the information is stored in an appropriate two dimensional matrix, as indicated in block 86. The initial location may, for example, define the upper left corner of the matrix. The store operation may automatically find a matrix within the memory 20 of the needed size in order to implement the operation. Once the initial point in the memory is provided, the operation may automatically store the succeeding parts of the matrix without requiring additional address computations, in some embodiments.
[0051 ] Conversely, if a read access is involved, as determined in diamond 88, the initial location and two dimensional size information is received, as indicated in block 90. Then the designated matrix is read, as indicated in block 92. Again, the access may be done in automated fashion, wherein the initial point may be accessed, as would be done in conventional linear addressing, and then the rest of the addresses are automatically determined without having to go back and compute addresses in the conventional fashion.
[0052] Finally, if a move command has been received from the host, as determined in block 94, the initial location and two dimensional size information is received, as indicated in block 96, and the move command is automatically implemented, as indicated in block 98. Again, the matrix of information may be automatically moved from one location to another, simply by specifying a starting location and providing size information.
[0053] Referring back to Figure 2, the video analytics unit 42 may be coupled to the rest of the system through a pixel pipeline unit 44. The unit 44 may include a state machine that executes commands from the dispatch unit 34. Typically, these commands originate at the host and are implemented by the dispatch unit. A variety of different analytics units may be included based on application. In one
embodiment, a convolve unit 46 may be included for automated provision of convolutions.
[0054] The convolve command may include both a command and arguments specifying a mask, reference or kernel so that a feature in one captured image can be compared to a reference two dimensional image in the memory 28. The command may include a destination specifying where to store the convolve result.
[0055] In some cases, each of the video analytics units may be a hardware accelerator. By "hardware accelerator," it is intended to refer to a hardware device that performs a function faster than software running on a central processing unit.
[0056] In one embodiment, each of the video analytics units may be a state machine that is executed by specialized hardware dedicated to the specific function of that unit. As a result, the units may execute in a relatively fast way. Moreover, only one clock cycle may be needed for each operation implemented by a video analytics unit because all that is necessary is to tell the hardware accelerator to perform the task and to provide the arguments for the task and then the sequence of operations may be implemented, without further control from any processor, including the host processor.
[0057] Other video analytics units, in some embodiments, may include a centroid unit 48 that calculates centroids in an automated fashion, a histogram unit 50 that determines histograms in automated fashion, and a dilate/erode unit 52.
[0058] The dilate/erode unit 52 may be responsible for either increasing or decreasing the resolution of a given image in automated fashion. Of course, it is not possible to increase the resolution unless the information is already available, but, in some cases, a frame received at a higher resolution may be processed at a lower resolution. As a result, the frame may be available in higher resolution and may be transformed to a higher resolution by the dilate/erode unit 52.
[0059] The Memory Transfer of Matrix (MTOM) unit 54 is responsible for implementing move instructions, as described previously. In some embodiments, an arithmetic unit 56 and a Boolean unit 58 may be provided. Even though these same
units may be available in connection with a central processing unit or an already existent coprocessor, it may be advantageous to have them onboard the engine 20, since their presence on-chip may reduce the need for numerous data transfer operations from the engine 20 to the host and back. Moreover, by having them onboard the engine 20, the two dimensional or matrix main memory may be used in some embodiments.
[0060] An extract unit 60 may be provided to take vectors from an image. A lookup unit 62 may be used to lookup particular types of information to see if it is already stored. For example, the lookup unit may be used to find a histogram already stored. Finally, the subsample unit 64 is used when the image has too high a resolution for a particular task. The image may be subsampled to reduce its resolution.
[0061 ] In some embodiments, other components may also be provided including an l2C interface 38 to interface with camera configuration commands and a general purpose input/output device 40 connected to all the corresponding modules to receive general inputs and outputs and for use in connection with debugging, in some embodiments.
[0062] Referring to Figure 5, an analytics assisted encoding scheme 100 may be implemented, in some embodiments. The scheme may be implemented in software, firmware and/or hardware. However, hardware embodiments may be faster. The analytics assisted encoding may use analytics capabilities to determine what portions of a given frame of video information, if any, should be encoded. As a result, some portions or frames may not need to be encoded in some embodiments and, as one result, speed and bandwidth may be increased.
[0063] In some embodiments, what is or is not encoded may be case specific and may be determined on the fly, for example, based on available battery power, user selections, and available bandwidth, to mention a few examples. More particularly, image or frame analysis may be done on existing frames versus ensuing frames to determine whether or not the entire frame needs to be encoded or whether only portions of the frame need to be encoded. This analytics assisted encoding is
in contrast to conventional motion estimation based encoding which merely decides whether or not to include motion vectors, but still encodes each and every frame.
[0064] In some embodiments of the present invention, successive frames are either encoded or not encoded on a selective basis and selected regions within a frame, based on the extent of motion within those regions, may or may not be encoded at all. Then, the decoding system is told how many frames were or were not encoded and can simply replicate frames as needed.
[0065] Referring to Figure 5, a first frame or frames may be fully encoded at the beginning, as indicated in block 102, in order to determine a base or reference. Then, a check at diamond 104 determines whether analytics assisted encoding should be provided. If analytics assisted encoding will not be used, the encoding proceeds as is done conventionally.
[0066] If analytics assisted encoding is provided, as determined in diamond 104, a threshold is determined, as indicated in block 106. The threshold may be fixed or may be adaptive, depending on non-motion factors such as the available battery power, the available bandwidth, or user selections, to mention a few examples. Next, in block 108, the existing frame and succeeding frames are analyzed to determine whether motion in excess of the threshold is present and, if so, whether it can be isolated to particular regions. To this end, the various analytics units may be utilized, including, but not limited to, the convolve unit, the erode/dilate unit, the subsample unit, and the lookup unit. Particularly, the image or frame may be analyzed for motion above a threshold, analyzed relative to previous and/or subsequent frames.
[0067] Then, as indicated in block 1 10, regions with motion in excess of a threshold may be located. Only those regions may be encoded, in one embodiment, as indicated in block 1 12. In some cases, no regions on a given frame may be encoded at all and this result may simply be recorded so that the frame can be simply replicated during decoding. In general, the encoder provides information in a header or other location about what frames were encoded and whether frames have
only portions that are encoded. The address of the encoded portion may be provided in the form of an initial point and a matrix size in some embodiments.
[0068] Figures 3, 4, and 5 are flow charts which may be implemented in hardware. They may also be implemented in software or firmware, in which case they may be embodied on a non-transitory computer readable medium, such as an optical, magnetic, or semiconductor memory. The non-transitory medium stores instructions for execution by a processor. Examples of such a processor or controller may include the analytics engine 20 and suitable non-transitory media may include the main memory 28 and the external memory 22, as two examples.
[0069] As shown in Figure 1 , the video analytics engine 20 is coupled to a host including the central processing unit 12. The engine 20 executes instructions independently from the host central processing unit 12. However, the host central processing unit must feed the engine 20 both data and instructions and it must receive results of operations. To accomplish these tasks, without the overhead incurred in polling for completion of instruction execution, intelligent message signaled interrupts (MSI-X) may be applied in some embodiments.
[0070] To ensure data integrity for instructions that require a large data transfer to the host, the engine 20 uses a RAISE instruction that generates an MSI-X interrupt. The MSI interrupt that results not only serves as an interrupt but also carries additional information [WHAT INFORMATION?] in the message data field of the interrupt to reduce the overhead involved in servicing the interrupt. Furthermore, the intelligent MSI-X interrupt controller holds off the acknowledge to the RAISE interrupt request from the instruction dispatch unit until the data transferred to the host is complete. This mechanism may ensure that an interrupt for a RAISE instruction is sent only after a successful completion of the READ or RMD instruction through the Peripheral Component Interconnect Express bus 18.
[0071 ] The structure of the MSI-X interface is as follows in one embodiment where IC is the engine 20, O is Out and I is In and size is in bytes.
Port Size Direction Description
w.r.t.
IC
misx addr 64 0 The address value for the MSI-X misx data 32 0 The data value for the MSI-X
msi_req 1 0 Request from the application to send an
MSI when MSI is enabled.
Once asserted, msi_req must remain asserted until the EPC asserts
msi_grant
mis_tc 3 0 Traffic Class of the MSI(-X) request,
valid when msi_req is asserted
mis_grant 1 I One-cycle pulse that indicates that the
EPChas accepted the request to send an MSI(-X). After asserting msi_grant for one cycle, the EPC does not wait for msi_req to be deasserted then
reasserted to generate another MSI. If msi_req remains asserted after the
Port Size Direction Description
w.r.t.
IC
EPC asserts msi_grant for one cycle, the EPC will generate another MSI.
Cfg_msix_en 1 I The MSI-X Enable bit of the MSI-X
Control register in the MSI-X Capability structure
Cfg_msix_func 1 I The IC Mask bit of the MSI-X Control _mask register in the MSI-X Capability
structure
[0072] Referring to Figure 7, the interrupt controller 300 receives clocks from the various components that provide interrupts and receives reset signals from those same devices. A configuration and status register (CSR) decode 302 receives CSR inputs. It provides a signal to MSI-X interface 304. It also provides a decode signal to the legacy interrupt pending register 306. The MSI-X interface receives interrupts from a resync unit 310. The resync unit 310 receives interrupts from functional units such as a video encoder (VE) the memory matrix (MM), the video capture interface (VCI), the external memory (DDR), the l2c bus (I2C), the general purpose input/output (GPIO), the dispatch unit (DU) and receives the dispatch unit RAISE signal.
[0073] The Peripheral Component Interconnect dispatch unit write done signal is provided to a dispatch unit RAISE controller 308. The controller 308 provides a dispatch unit write done acknowledge signal and receives and sends signals to the resync unit 310.
[0074] Thus referring to Figure 8, timing for the various signals is illustrated. The core clock is shown at the top followed by the video encoder MSI request. Next the timing of the video encoder MSI grant is shown. This is a one-cycle pulse indicating that the request to send an MSI-x was accepted. Following this, the MSI-X address signal is illustrated for one embodiment. This is followed by the MSI-X data signal. Finally, the video encoder MSI traffic class (tc) signal is illustrated followed by the configuration (CFG) MSI-X encoder signal. A traffic class is a type of system traffic in PCI Express, that may be assigned to a supported virtual channel for flow control purposes. The traffic class of the MSI-X request is valid when the MSI request is asserted. The cfg_msix_en is for the MSI-X enable bit of the MSI-X control register in the MSI-X capability structure.
[0075] Referring to Figure 9, a sequence 400 for implementing an interrupt controller may be implemented in software, firmware and/or hardware. In software and firmware embodiments it may be implemented by computer executed instructions stored in a non-transitory computer readable medium such as a magnetic, optical or semiconductor storage. For example, in one embodiment, the instructions may be implemented within the interrupt controller 300.
[0076] The sequence may begin by detecting an interrupt as indicated in diamond 402. Then in block 404, the interrupt may be indicated. The interrupt may be accompanied by an address value, data value, and a traffic class as indicated in block 406 to assist in servicing the interrupt.
[0077] Then the check at diamond 408 determines whether the data transfer is complete. If so, an acknowledge may be sent as indicated in block 410. Otherwise, the acknowledge is held off as indicated in block 412.
[0078] The graphics processing techniques described herein may be
implemented in various hardware architectures. For example, graphics functionality may be integrated within a chipset. Alternatively, a discrete graphics processor may be used. As still another embodiment, the graphics functions may be implemented by a general purpose processor, including a multicore processor.
[0079] References throughout this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one implementation encompassed within the present invention. Thus, appearances of the phrase "one embodiment" or "in an embodiment" are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be instituted in other suitable forms other than the particular embodiment illustrated and all such forms may be encompassed within the claims of the present application.
[0080] While the present invention has been described with respect to a limited number of embodiments, those skilled in the art will appreciate numerous
modifications and variations therefrom. It is intended that the appended claims cover all such modifications and variations as fall within the true spirit and scope of this present invention.
Claims
What is claimed is 1 . A method comprising:
generating an interrupt, from a video analytics engine to a host, that indicates an interrupt and includes information to assist in servicing the interrupt.
2. The method of claim 1 including providing an address value, for the interrupt.
3. The method of claim 1 including providing a data value for the interrupt.
4. The method of claim 1 including providing a message signaled interrupt.
5. The method of claim 4 including providing a traffic class for the interrupt.
6. The method of claim 1 including holding off an acknowledge to the interrupt until data transfer to the host is complete.
7. A non-transitory computer readable medium storing instructions executed by a processor to perform a method comprising:
generating an interrupt, from a video analytics engine to a host, that indicates an interrupt and includes information to assist in servicing the interrupt.
8. The medium of claim 7 further storing instructions executed to perform a method including providing an address value, for the interrupt.
9. The medium of claim 7 further storing instructions executed to perform a method including providing a data value for the interrupt.
10. The medium of claim 7 further storing instructions executed to perform a method including providing a message signaled interrupt.
1 1 . The medium of claim 10 further storing instructions executed to perform a method including providing a traffic class for the interrupt.
12. The medium of claim 7 further storing instructions executed to perform a method including holding off an acknowledge to the interrupt until data transfer to the host is complete.
13. An apparatus comprising:
a video analytics engine; and
an interrupt controller to generate an interrupt, from the video analytics engine to a host, that indicates an interrupt and includes information to assist in servicing the interrupt.
14. The apparatus of claim 13, said controller to provide an address value, for the interrupt.
15. The apparatus of claim 13, said controller to provide a data value for the interrupt.
16. The apparatus of claim 13, said controller to provide a message signaled interrupt.
17. The apparatus of claim 16, said controller to provide a traffic class for the interrupt.
18. The apparatus of claim 13, said controller to hold off an acknowledge to the interrupt until data transfer to the host is complete.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/US2011/067448 WO2013100919A1 (en) | 2011-12-28 | 2011-12-28 | Intelligent msi-x interrupts for video analytics and encoding |
CN201180075963.2A CN104145244A (en) | 2011-12-28 | 2011-12-28 | Intelligent MSI-X interrupts for video analytics and encoding |
US13/994,822 US9973752B2 (en) | 2011-12-28 | 2011-12-28 | Intelligent MSI-X interrupts for video analytics and encoding |
EP11878478.4A EP2798456A4 (en) | 2011-12-28 | 2011-12-28 | Intelligent msi-x interrupts for video analytics and encoding |
US15/948,068 US10448020B2 (en) | 2011-12-28 | 2018-04-09 | Intelligent MSI-X interrupts for video analytics and encoding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/US2011/067448 WO2013100919A1 (en) | 2011-12-28 | 2011-12-28 | Intelligent msi-x interrupts for video analytics and encoding |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/994,822 A-371-Of-International US9973752B2 (en) | 2011-12-28 | 2011-12-28 | Intelligent MSI-X interrupts for video analytics and encoding |
US15/948,068 Continuation US10448020B2 (en) | 2011-12-28 | 2018-04-09 | Intelligent MSI-X interrupts for video analytics and encoding |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013100919A1 true WO2013100919A1 (en) | 2013-07-04 |
Family
ID=48698163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2011/067448 WO2013100919A1 (en) | 2011-12-28 | 2011-12-28 | Intelligent msi-x interrupts for video analytics and encoding |
Country Status (4)
Country | Link |
---|---|
US (2) | US9973752B2 (en) |
EP (1) | EP2798456A4 (en) |
CN (1) | CN104145244A (en) |
WO (1) | WO2013100919A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3176729A1 (en) * | 2011-09-06 | 2017-06-07 | Intel Corporation | Analytics assisted encoding |
US9973752B2 (en) | 2011-12-28 | 2018-05-15 | Intel Corporation | Intelligent MSI-X interrupts for video analytics and encoding |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6970206B1 (en) * | 2000-04-20 | 2005-11-29 | Ati International Srl | Method for deinterlacing interlaced video by a graphics processor |
US20060150071A1 (en) * | 2005-01-05 | 2006-07-06 | Microsoft Corporation | Software-based video rendering |
US20060294277A1 (en) * | 2005-06-24 | 2006-12-28 | Tetrick Raymond S | Message signaled interrupt redirection |
US7725637B2 (en) * | 2007-12-31 | 2010-05-25 | Intel Corporation | Methods and apparatus for generating system management interrupts |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08124083A (en) | 1994-10-21 | 1996-05-17 | Toyota Motor Corp | Mobile object photographing device |
US5896176A (en) * | 1995-10-27 | 1999-04-20 | Texas Instruments Incorporated | Content-based video compression |
JP4393014B2 (en) * | 2001-05-30 | 2010-01-06 | パナソニック株式会社 | Transmission apparatus and transmission method |
FR2844130B1 (en) * | 2002-09-04 | 2004-11-19 | St Microelectronics Sa | PROCESS FOR PROCESSING AUDIO / VIDEO DATA WITHIN AN AUDIO / VIDEO DISC PLAYER, AND CORRESPONDING PLAYER. |
KR20050120491A (en) * | 2004-06-19 | 2005-12-22 | 삼성전자주식회사 | Transmission error processing method and apparatus in a dmb system |
US20080162762A1 (en) * | 2006-12-29 | 2008-07-03 | Gilbert Neiger | Interrupt remapping based on requestor identification |
US7805556B2 (en) | 2007-05-01 | 2010-09-28 | Ricoh Company, Ltd. | Interrupt control apparatus, bus bridge, bus switch, image processing apparatus, and interrupt control method |
JP5154238B2 (en) * | 2008-01-18 | 2013-02-27 | 株式会社日立製作所 | Management method of composite computer system and composite computer system |
BRPI0922916A2 (en) * | 2008-12-10 | 2016-01-26 | Moqom Ltd | fraud prevention in electronic transactions |
US8645589B2 (en) * | 2009-08-03 | 2014-02-04 | National Instruments Corporation | Methods for data acquisition systems in real time applications |
US8250273B2 (en) * | 2009-09-14 | 2012-08-21 | International Business Machines Corporation | Secure handling and routing of message-signaled interrupts |
US8244946B2 (en) * | 2009-10-16 | 2012-08-14 | Brocade Communications Systems, Inc. | Interrupt moderation |
US8321615B2 (en) * | 2009-12-18 | 2012-11-27 | Intel Corporation | Source core interrupt steering |
US8503539B2 (en) | 2010-02-26 | 2013-08-06 | Bao Tran | High definition personal computer (PC) cam |
US20110246686A1 (en) * | 2010-04-01 | 2011-10-06 | Cavanagh Jr Edward T | Apparatus and system having pci root port and direct memory access device functionality |
US9973752B2 (en) | 2011-12-28 | 2018-05-15 | Intel Corporation | Intelligent MSI-X interrupts for video analytics and encoding |
-
2011
- 2011-12-28 US US13/994,822 patent/US9973752B2/en active Active
- 2011-12-28 WO PCT/US2011/067448 patent/WO2013100919A1/en active Application Filing
- 2011-12-28 EP EP11878478.4A patent/EP2798456A4/en not_active Withdrawn
- 2011-12-28 CN CN201180075963.2A patent/CN104145244A/en active Pending
-
2018
- 2018-04-09 US US15/948,068 patent/US10448020B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6970206B1 (en) * | 2000-04-20 | 2005-11-29 | Ati International Srl | Method for deinterlacing interlaced video by a graphics processor |
US20060150071A1 (en) * | 2005-01-05 | 2006-07-06 | Microsoft Corporation | Software-based video rendering |
US20060294277A1 (en) * | 2005-06-24 | 2006-12-28 | Tetrick Raymond S | Message signaled interrupt redirection |
US7725637B2 (en) * | 2007-12-31 | 2010-05-25 | Intel Corporation | Methods and apparatus for generating system management interrupts |
Non-Patent Citations (1)
Title |
---|
See also references of EP2798456A4 * |
Also Published As
Publication number | Publication date |
---|---|
EP2798456A1 (en) | 2014-11-05 |
US9973752B2 (en) | 2018-05-15 |
US10448020B2 (en) | 2019-10-15 |
US20140294102A1 (en) | 2014-10-02 |
CN104145244A (en) | 2014-11-12 |
US20180227581A1 (en) | 2018-08-09 |
EP2798456A4 (en) | 2015-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10070134B2 (en) | Analytics assisted encoding | |
US10448020B2 (en) | Intelligent MSI-X interrupts for video analytics and encoding | |
US20130322552A1 (en) | Capturing Multiple Video Channels for Video Analytics and Encoding | |
US20140146067A1 (en) | Accessing Configuration and Status Registers for a Configuration Space | |
US20130278775A1 (en) | Multiple Stream Processing for Video Analytics and Encoding | |
US20130329137A1 (en) | Video Encoding in Video Analytics | |
US10146679B2 (en) | On die/off die memory management | |
US9179156B2 (en) | Memory controller for video analytics and encoding | |
US20130322551A1 (en) | Memory Look Ahead Engine for Video Analytics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11878478 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2011878478 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 13994822 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |