Method and device for extracting SPS (standard positioning services) and PPS (precise positioning services) from H264 frames
A frame start and acquisition module technology, applied in the video field, can solve problems such as unable to decode and play video, and having no video description information
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] figure 2 A flowchart of a method for extracting SPS from an H264 frame is provided in Embodiment 1 of the present invention, including:
[0064] Step S201: starting from the start position of the H264 frame, determine the number N of NAL units and the start position of each NAL unit according to the synchronization code;
[0065] Step S202: Traverse the NAL headers of N NAL units according to the start position of each NAL unit;
[0066] Step S203: determine whether the current NAL header is 0x67, if so, the NAL unit is a NAL unit of SPS, and the position of the NAL unit is recorded as the position of the NAL unit of SPS; otherwise it is not the NAL unit of SPS;
[0067] Step S204: Save the SPS data in the first cache according to the location of the NAL unit of the SPS.
[0068] In the technical solution provided by Embodiment 1 of the present invention, since the NAL header of the NAL unit of the SPS is 0x67, if the NAL header of the NAL unit is 0x67, the NAL unit ...
Embodiment 2
[0070] Such as image 3 A flowchart of a method for extracting PPS from an H264 frame is provided in Embodiment 2 of the present invention, including:
[0071] Step S301: starting from the start position of the H264 frame, determine the number N of NAL units and the start position of each NAL unit according to the synchronization code;
[0072] Step S302: Traverse the NAL headers of N NAL units according to the start position of each NAL unit;
[0073] Step S303: determine whether the current NAL header is 0x68, if so, the NAL unit is a NAL unit of PPS, and the position of the NAL unit is recorded as the position of the NAL unit of PPS; otherwise it is not the NAL unit of PPS;
[0074] Step S304: Save the PPS data in the second cache according to the location of the NAL unit of the PPS.
[0075] In the technical solution provided by Embodiment 2 of the present invention, since the NAL header of the NAL unit of the PPS is 0x68, if the NAL header of the NAL unit is 0x68, the N...
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