Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method and device for quickly searching for sync word in video code stream by software

A technology for synchronizing words and video streams, applied in the field of video decoding, which can solve the problems of low cost and large software overhead, and achieve the effects of low cost, fast search, and overcoming high software overhead

Active Publication Date: 2022-02-15
VERISILICON MICROELECTRONICS (CHENGDU) CO LTD +3
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] Aiming at the defects existing in the prior art, the purpose of the present invention is to provide a method and device for quickly searching the synchronization word in the video code stream by software, which overcomes the disadvantage of large software overhead of the traditional byte-by-byte search method, and at the same time, the cost is low. Does not affect how existing hardware decoders work

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for quickly searching for sync word in video code stream by software
  • Method and device for quickly searching for sync word in video code stream by software
  • Method and device for quickly searching for sync word in video code stream by software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Such as Figure 4 Shown, the method for the synchronous word in the software fast search video code stream of the present invention, comprises the steps:

[0052] Step 1, receive and buffer the video stream;

[0053] Before the hardware decoder starts formal decoding, the software creates input and output buffers, that is, creates input and output buffers, and the physical memory of the input and output buffers is continuous.

[0054] The input buffer is used to store the video bit stream, that is, the video stream. The encoding format of the video stream can be HEVC, H264, MPEG2, MPEG4, AVS, etc.

[0055] The output buffer is used to store the YUV image after the hardware decoder decodes each frame of video stream,

[0056] The hardware decoder reads the content of the input buffer, decodes the read content, and stores the decoded YUV image in the output buffer. The interaction between the hardware decoder and the input and output buffer is as follows figure 1 as sh...

Embodiment 2

[0084] The specific process of the method for quickly searching the synchronization word of the present invention will be described below through a specific embodiment.

[0085] First of all, in order to explain this process more conveniently, the parameters used need to be explained as follows:

[0086] search_step, synchronization word search step;

[0087] frame_head(n), the starting address of the synchronization word of the nth frame;

[0088] frame_tail(n), the effective video stream byte end address of the nth frame;

[0089] frame_tail_align(n), the address of frame_tail(n) aligned backwards by search_step bytes.

[0090] bytes_left(n), use frame_tail(n) as the start address to input the number of video stream bytes in the buffer.

[0091] stream_tail, input the end address of the video stream in the buffer.

[0092] stream_tail_align, the address of stream_tail aligned forward by search_step bytes.

[0093] bytes_left_frame_tail(n), the number of bytes from addre...

Embodiment 3

[0133] Based on the same inventive concept, the present invention further provides a device for quickly searching the synchronization word in the video code stream by software, specifically including:

[0134] a cache unit, configured to receive and cache the video stream;

[0135] Synchronization word search unit, for when the number of the video frame buffered in the input buffer is greater than or equal to two frames, start to search the synchronization word of each frame successively, wherein the search step is greater than 1;

[0136] The decoding unit is configured to assign the address of the synchronization word of the frame to the hardware decoder for decoding each time the synchronization word of a frame is found, and output the corresponding decoded image.

[0137] Furthermore, the hardware decoder reads the synchronous word address in the code stream address register of the hardware decoder. After the decoding is completed, the hardware decoding ends, and the hardw...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to a method and device for software to quickly search for synchronous words in a video code stream. The method includes the following steps: Step 1, receiving and buffering the video stream; Step 2, when the number of video frames buffered in the input buffer is greater than or equal to When there are two frames, start to search for the synchronization word of each frame in turn, wherein the search step is greater than 1; Step 3, after successfully searching for the synchronization word of one frame, write the starting address of the synchronization word into the hardware decoding Code stream address register of the decoder, then start the hardware decoder, and decode; write the decoded YUV image into the output buffer, and update the code stream address register of the hardware decoder at the same time, the software reads the code stream address register of the hardware decoder, and reads The address obtained is the starting address, and returns to step 2 to search for the sync word of the next frame. The present invention overcomes the disadvantage of large software overhead in the traditional byte-by-byte search method, and at the same time has low cost and does not affect the working mode of the existing hardware decoder.

Description

technical field [0001] The invention relates to the technical field of video decoding, in particular to a method and a device for quickly searching a synchronization word in a video code stream by software. Background technique [0002] Usually, the original video signal cannot be directly transmitted on the network due to the huge amount of information. In order to meet the needs of transmission on the network, a video encoder (encoder for short) can be used to compress and encode the original video signal into a code stream, and then transmit the code stream (video code stream) on the network, and a video decoder (decoder for short) device) to receive the code stream and decode it, so as to obtain a video signal with similar or even the same quality as the original video. Doing so can save a lot of network bandwidth as well as storage space. [0003] Synchronization words are widely used in video codec technology. During the encoding process, the encoder will insert a s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/44H04N21/433H04N21/426H04N21/81
CPCH04N21/44004H04N21/4331H04N21/426H04N21/8193
Inventor 剡辰陈敏
Owner VERISILICON MICROELECTRONICS (CHENGDU) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products