CN109769129B - Decoding method for preventing analysis failure in automobile liquid crystal instrument - Google Patents
Decoding method for preventing analysis failure in automobile liquid crystal instrument Download PDFInfo
- Publication number
- CN109769129B CN109769129B CN201811610438.6A CN201811610438A CN109769129B CN 109769129 B CN109769129 B CN 109769129B CN 201811610438 A CN201811610438 A CN 201811610438A CN 109769129 B CN109769129 B CN 109769129B
- Authority
- CN
- China
- Prior art keywords
- video stream
- format
- video
- decoding
- instrument
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
When the method is used for analyzing and decoding the instrument video stream, the condition of damaging the instrument video stream cannot occur, the integrity of video stream data and the display of a video cannot be influenced even if an error occurs in the analyzing and processing process, a program can be subjected to self-checking, the analyzing and decoding can be carried out again, the video stream can be ensured to be analyzed and decoded successfully in the instrument design process, and the error occurring when the instrument is started and switched can be eliminated.
Description
Technical Field
The invention belongs to the technical field of video processing, and particularly relates to a decoding method for preventing analysis failure in an automobile liquid crystal instrument.
Background
The automobile instrument provides important information of a vehicle for a driver, the memory of the instrument is limited at present, but the information required to be stored by the instrument is more and more, particularly, picture resources required by the instrument are more and more, the load of a processor of the instrument is more and more large, the instrument display picture designed by the picture resources has more flexibility and more complex control strategies, the instrument is required to have larger memory, some picture display processes are unchanged or are single in change process, and the memory occupation is reduced by adopting videos as display resources.
Along with the development of instrument technique, people are increasingly high to liquid crystal instrument's visual effect demand, and liquid crystal instrument adopts the video design can fully improve high definition high resolution, and the whole effect of instrument can be more smooth, more can adapt to market demand.
In the process, videos used by the instrument are compressed in a specific mode, and a program is needed to decode the video streams when the videos are called. However, the formats of the videos provided by different meters are different, and it is necessary to design a general decoding method to ensure that video streams of different formats can be decoded and played normally on different platforms.
However, in the implementation process, the animation format of the instrument is relatively fixed, and the video stream coded by some algorithms cannot be decoded and played by a program. In order to solve the problem of video stream decoding failure which may occur in the process of instruments, the invention creatively provides a decoding method for square analysis failure in an automobile liquid crystal instrument, namely, the successful decoding and playing of video streams are realized by designing a decoding method for preventing analysis failure based on VPU hardware and modifying the shell or the coding algorithm of the video streams by designing an analysis subprogram.
Disclosure of Invention
The technical problem solved by the invention is as follows: the decoding method for preventing the analysis failure in the automobile liquid crystal instrument is used for normally analyzing, decoding and playing the video streams with different formats and ensuring the successful decoding and playing of the instrument.
The specific solution provided by the invention comprises the following steps:
1) calling video streams, wherein the video streams comprise YUV video stream sources which are directly collected through a camera and used for displaying the vehicle state and video streams which are artificially led into an instrument physical memory and used for displaying instrument interface information and in other formats;
2) judging whether the video stream needs to be decoded;
3) storing the video stream to be decoded to a shared memory 1;
4) judging the video stream format in the shared memory 1, if the video stream format is the AVI format, carrying out the step 8), and if the video stream format is not the AVI format, carrying out the step 5);
5) copying the video stream to a shared memory 2;
6) deleting the video stream format identifier, decoding the video stream in the shared memory 2 and converting the video stream into a video stream source in a YUV format;
7) encoding the video stream source in the YUV format into an AVI format video stream according to the H264 format, and carrying out the step 3);
8) selecting an AVI decoding library and initializing decoding parameters;
9) judging whether the video stream is successfully analyzed, if so, performing the step 10), and if not, performing the step 5);
10) and decoding the successfully analyzed video, and storing the decoded video to a frame buffer.
Specifically, the video stream in step 1) includes a YUV video stream source directly acquired by a camera for displaying a vehicle state and video files of other formats, such as AVI, MP4, MOV, and the like, manually imported into a physical memory of the meter for displaying interface information of the meter.
Specifically, in the step 7), since the memory occupied by the video stream in the YUV format is large, the video stream is compressed into the video stream in the AVI format, and the video can be smoothly played through subsequent parsing and decoding, and the memory occupied by the video stream is reduced.
Specifically, the shared memory 1 and the shared memory 2 in step 3) and step 5) open an interval specially used for storing the video stream inside the physical memory, and the video stream in the shared memory 1 and the shared memory 2 can be called again by the user at any time.
The video stream in the step 1) includes a YUV video stream source directly acquired by a camera in a physical memory of an automobile instrument and video streams in other formats, the memory of the instrument is limited at present, but information required to be stored by the instrument is more and more, particularly, more and more picture resources are required by the instrument, the load of a processor of the instrument is more and more, the instrument display picture designed by the picture resources is more and more flexible, the control strategy is more complex, the instrument is required to have more memory, and the display process of some pictures is unchanged or the change process is single. And adopt the video to replace the picture as the display resource, can reduce the memory, increase the instrument and switch smoothly, provide high definition high resolution's instrument interface and vehicle state picture for the customer, more can adapt to market demand. In the process, videos used by the instrument are compressed in a specific mode, and a program is needed to decode the video streams when the videos are called.
When a user calls a video stream file, the method is triggered, specifically, for a video without a coded identifier (namely, an original code stream video), decoding operation is not required, and the video can be directly played; when the identifier after the video stream coding is detected, judging that the video stream needs to be decoded, copying the video stream to a shared memory 1, if the format of the video stream coding is an AVI format, continuously storing the video stream in the shared memory 1, and then performing subsequent analysis decoding operation; if the video stream format is not the AVI format, copying the video stream to a shared memory 2, deleting the format identifier of the video stream, decoding the video stream, converting the video stream into a YUV format video stream source, encoding the YUV format video stream source into the AVI video stream according to the H264 format, then transferring the AVI format video stream to a shared memory 1, and then carrying out subsequent analysis and decoding operations. Specifically, the subsequent parsing and decoding process is as follows: selecting an AVI decoding library, initializing decoding parameters, if the decoding parameters are successfully set, successfully analyzing, and decoding the successfully analyzed video.
In the process of video parsing, when the obtained video stream is in the AVI format, the previous decoding and encoding operations, i.e., steps 5), 6) and 7) are not performed, but even if the encoded video streams are in the same format (same as the AVI format), the algorithms of the corresponding AVI video streams may be different, and the parsing fails due to the different algorithms, the process needs to return to step 5 again), and the subsequent parsing and decoding operations are performed again. When the method is used for analyzing and decoding the instrument video stream, the condition of damaging the instrument video stream cannot occur, the integrity of the video stream data and the display of the video cannot be influenced even if an error occurs in the analyzing and processing process, the program can be self-checked, the analyzing and processing can be carried out again, the video stream can be ensured to be successfully analyzed and decoded in the instrument design process, and the error occurring when the instrument is started and switched can be eliminated.
Further, the method also comprises the step 11) of judging whether the video is played by play detection, and if not, returning to the step 5) again and carrying out subsequent analysis and decoding operation.
Therefore, the program can be self-checked and analyzed again.
Further, the method also comprises the step of 12) releasing the cache after the video playing is finished.
Thus, space occupation can be reduced.
Further, the video stream in the shared memory 1 is deleted while the identified video stream is copied to the shared memory 2 in step 6).
Thus, space occupation can be reduced.
Further, in the step 2), whether the video stream needs to be decoded is judged by judging whether the video stream format is a YUV format, and when the video stream is a video stream source in the YUV format, the video stream does not need to be decoded; when the video stream is not a source of a video stream in YUV format, the video stream needs to be decoded.
Thus, the accuracy of video stream decoding can be ensured.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a parsing decoding flowchart of a decoding method for preventing parsing failure in an automotive liquid crystal meter according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
With reference to fig. 1, the specific solution provided by the present invention comprises the following steps:
the specific solution provided by the invention comprises the following steps:
1) calling video streams, wherein the video streams comprise YUV video stream sources which are directly collected through a camera and used for displaying the vehicle state and video streams which are artificially led into an instrument physical memory and used for displaying instrument interface information and in other formats;
2) judging whether the video stream needs to be decoded;
3) storing the video stream to be decoded to a shared memory 1;
4) judging the video stream format in the shared memory 1, if the video stream format is the AVI format, carrying out the step 8), and if the video stream format is not the AVI format, carrying out the step 5);
5) copying the video stream to a shared memory 2;
6) deleting the video stream format identifier, decoding the video stream in the shared memory 2 and converting the video stream into a video stream source in a YUV format;
7) encoding the video stream source in the YUV format into an AVI format video stream according to the H264 format, and carrying out the step 3);
8) selecting an AVI decoding library and initializing decoding parameters;
9) judging whether the video stream is successfully analyzed, if so, performing the step 10), and if not, performing the step 5);
10) and decoding the successfully analyzed video, and storing the decoded video to a frame buffer.
Specifically, in the step 7), since the memory occupied by the video stream in the YUV format is large, the video stream is compressed into the video stream in the AVI format, and the video can be smoothly played through subsequent parsing and decoding, and the memory occupied by the video stream is reduced.
Specifically, the shared memory 1 and the shared memory 2 in step 3) and step 5) open an interval specially used for storing the video stream inside the physical memory, and the video stream in the shared memory 1 and the shared memory 2 can be called again by the user at any time.
The video stream in the step 1) includes a YUV video stream source directly acquired by a camera in a physical memory of an automobile instrument and video streams in other formats, the memory of the instrument is limited at present, but information required to be stored by the instrument is more and more, particularly, more and more picture resources are required by the instrument, the load of a processor of the instrument is more and more, the instrument display picture designed by the picture resources is more and more flexible, the control strategy is more complex, the instrument is required to have more memory, and the display process of some pictures is unchanged or the change process is single. And adopt the video to replace the picture as the display resource, can reduce the memory, increase the instrument and switch smoothly, provide high definition high resolution's instrument interface and vehicle state picture for the customer, more can adapt to market demand. In the process, videos used by the instrument are compressed in a specific mode, and a program is needed to decode the video streams when the videos are called.
When the user calls the video stream file, the method is triggered. Specifically, for a video without an encoded identifier (i.e., an original code stream video), decoding operation is not required, and the video can be directly played; when the identifier after the video stream coding is detected, judging that the video stream needs to be decoded, copying the video stream to a shared memory 1, if the format of the video stream coding is an AVI format, continuously storing the video stream in the shared memory 1, and then performing subsequent analysis decoding operation; if the video stream format is not the AVI format, copying the video stream to a shared memory 2, deleting the format identifier of the video stream, decoding the video stream, converting the video stream into a YUV format video stream source, encoding the YUV format video stream source into the AVI video stream according to the H264 format, then transferring the AVI format video stream to a shared memory 1, and then carrying out subsequent analysis and decoding operations. Specifically, the subsequent parsing and decoding process is as follows: selecting an AVI decoding library, initializing decoding parameters, if the decoding parameters are successfully set, successfully analyzing, and decoding the successfully analyzed video.
In the process of video parsing, when the obtained video stream is in the AVI format, the previous decoding and encoding operations, i.e., steps 5), 6) and 7) are not performed, but even if the encoded video streams are in the same format (same as the AVI format), the algorithms of the corresponding AVI video streams may be different, and the parsing fails due to the different algorithms, the process needs to return to step 5 again), and the subsequent parsing and decoding operations are performed again. When the method is used for analyzing and decoding the instrument video stream, the condition of damaging the instrument video stream cannot occur, the integrity of the video stream data and the display of the video cannot be influenced even if an error occurs in the analyzing and processing process, the program can be self-checked, the analyzing and processing can be carried out again, the video stream can be ensured to be successfully analyzed and decoded in the instrument design process, and the error occurring when the instrument is started and switched can be eliminated.
11) the playing detection judges whether the video is played, if not, the step 5) is returned again and the subsequent analysis and decoding operation is carried out.
Therefore, the program can be self-checked and analyzed again.
The method also comprises the step 12) of releasing the cache after the video playing is finished.
Thus, space occupation can be reduced.
According to the method of the present invention, the identified video stream is deleted from the shared memory 1 when the video stream is copied to the shared memory 2 in step 6).
Thus, space occupation can be reduced.
According to the method of the invention, whether the video stream needs to be decoded is judged in the step 2) by judging whether the video stream format is YUV format, and when the video stream is a video stream source in YUV format, the video stream does not need to be decoded; when the video stream is not a source of a video stream in YUV format, the video stream needs to be decoded.
Thus, the accuracy of video stream decoding can be ensured.
Although embodiments of the present invention have been described in detail above, those of ordinary skill in the art will understand that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims (4)
1. A decoding method for preventing analysis failure in an automobile liquid crystal instrument is characterized by comprising the following steps:
1) calling video streams, wherein the video streams comprise YUV video stream sources which are directly collected through a camera and used for displaying the vehicle state and video streams which are artificially led into an instrument physical memory and used for displaying instrument interface information and in other formats;
2) judging whether the video stream needs to be decoded or not;
3) storing the video stream to be decoded to a shared memory 1;
4) judging the video stream format in the shared memory 1, if the video stream format is the AVI format, performing step 8), and if the video stream format is not the AVI format, performing step 5);
5) copying the video stream to a shared memory 2;
6) deleting the video stream format identifier, decoding the video stream in the shared memory 2 and converting the video stream into a video stream source in a YUV format;
7) encoding the video stream source with the YUV format into an AVI format video stream according to the H264 format, and performing step 3);
8) selecting an AVI decoding library and initializing decoding parameters;
9) judging whether the video stream is successfully analyzed, if so, performing the step 10), and if not, performing the step 5);
10) decoding the successfully analyzed video stream, and storing the decoded video stream to a frame buffer;
judging whether the video stream needs to be decoded by judging whether the video stream format is a YUV format in the step 2), wherein the video stream does not need to be decoded when the video stream is a video stream source in the YUV format; when the video stream is not a source of a video stream in YUV format, the video stream needs to be decoded.
2. The method for decoding an analysis failure in an automotive liquid crystal instrument according to claim 1, further comprising, after the step 10), performing a step 11) of determining whether the video is played, and if not, returning to the step 5) again and performing a subsequent analysis decoding operation.
3. The decoding method for preventing the analysis failure in the liquid crystal instrument of the automobile according to claim 2, further comprising the step 12) if the video is played in the step 11), releasing the buffer memory after the video is played.
4. The decoding method for preventing parsing failure in an automotive liquid crystal instrument according to claim 1, wherein the video stream in the shared memory 1 is deleted simultaneously when the video stream is copied to the shared memory 2 in the step 5).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811610438.6A CN109769129B (en) | 2018-12-27 | 2018-12-27 | Decoding method for preventing analysis failure in automobile liquid crystal instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811610438.6A CN109769129B (en) | 2018-12-27 | 2018-12-27 | Decoding method for preventing analysis failure in automobile liquid crystal instrument |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109769129A CN109769129A (en) | 2019-05-17 |
CN109769129B true CN109769129B (en) | 2021-03-26 |
Family
ID=66451124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811610438.6A Expired - Fee Related CN109769129B (en) | 2018-12-27 | 2018-12-27 | Decoding method for preventing analysis failure in automobile liquid crystal instrument |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109769129B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112078515B (en) * | 2020-08-05 | 2022-03-04 | 东风电驱动***有限公司 | TFT screen alarm lamp detection method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101808233A (en) * | 2009-02-18 | 2010-08-18 | 杭州海康威视数字技术股份有限公司 | Universal system for realizing video monitoring of mobile phone and method thereof |
CN102075528A (en) * | 2010-12-27 | 2011-05-25 | 上海聚欣网络科技有限公司 | Method and equipment for playing network multimedia files of multiple encapsulation formats |
CN102811382A (en) * | 2012-08-08 | 2012-12-05 | 无锡天脉聚源传媒科技有限公司 | Method and device for collecting multimedia signals |
CN104731540A (en) * | 2013-12-20 | 2015-06-24 | 通用汽车环球科技运作有限责任公司 | Methods and systems for an adapter device between vehicle infotainment systems and electronic devices |
-
2018
- 2018-12-27 CN CN201811610438.6A patent/CN109769129B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101808233A (en) * | 2009-02-18 | 2010-08-18 | 杭州海康威视数字技术股份有限公司 | Universal system for realizing video monitoring of mobile phone and method thereof |
CN102075528A (en) * | 2010-12-27 | 2011-05-25 | 上海聚欣网络科技有限公司 | Method and equipment for playing network multimedia files of multiple encapsulation formats |
CN102811382A (en) * | 2012-08-08 | 2012-12-05 | 无锡天脉聚源传媒科技有限公司 | Method and device for collecting multimedia signals |
CN104731540A (en) * | 2013-12-20 | 2015-06-24 | 通用汽车环球科技运作有限责任公司 | Methods and systems for an adapter device between vehicle infotainment systems and electronic devices |
Also Published As
Publication number | Publication date |
---|---|
CN109769129A (en) | 2019-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108882020B (en) | Video information processing method, device and system | |
CN109194960B (en) | Image frame rendering method and device and electronic equipment | |
US8699581B2 (en) | Image processing device, image processing method, information processing device, and information processing method | |
US9609338B2 (en) | Layered video encoding and decoding | |
KR101560850B1 (en) | Changing visual content communication | |
US20080298472A1 (en) | Throughput Performance When Applying Deblocking Filters On Reconstructed Image Frames | |
JP6475228B2 (en) | Operations that are aware of the syntax of media files in container format | |
US10477249B2 (en) | Video processing for masking coding artifacts using dynamic noise maps | |
WO2016054937A1 (en) | Three-dimensional image coding method, three-dimensional image decoding method and related device | |
US20110293009A1 (en) | Video processing system, computer program product and method for managing a transfer of information between a memory unit and a decoder | |
US11616937B2 (en) | Media processing systems | |
US9386326B2 (en) | Video decoding error concealment techniques | |
WO2015188297A1 (en) | Arithmetic coding/decoding method and device for video image block compression of weighted skip model | |
CN109769129B (en) | Decoding method for preventing analysis failure in automobile liquid crystal instrument | |
JP4340532B2 (en) | Error concealment method and apparatus | |
US20040141556A1 (en) | Method of video encoding using windows and system thereof | |
TW201101844A (en) | Method and device for encoding a block of an image using a first block, a different second block and a yet different third block and corresponding decoding method and device | |
US6665340B1 (en) | Moving picture encoding/decoding system, moving picture encoding/decoding apparatus, moving picture encoding/decoding method, and recording medium | |
US7912349B1 (en) | Validating frame dependency information | |
CN108668169B (en) | Image information processing method and device, and storage medium | |
US9471995B2 (en) | Codec engine with inline image processing | |
US7397856B2 (en) | Method and apparatus for storing and processing picture information of temporally successive pictures | |
CN1798346A (en) | Method and apparatus for rehiding mistakes included in decoding image | |
CN112954357A (en) | Dynamic efficient self-adaptive video stream intelligent coding and decoding method and system | |
CN113747159A (en) | Method, device and related assembly for generating variable frame rate video media file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210326 Termination date: 20211227 |