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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com