Embedded device and method for rapidly detecting whether JPEG picture files are right or not
An embedded device and file technology, applied in the direction of responding to errors, etc., can solve the problems of incomplete error handling, inability to guarantee, change, etc., and achieve the effect of simple implementation and avoiding errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0024] The present invention aims at the JPEG file format, designs a kind of by counting whether the key Marker segment is missing, and judges the Marker segment with the size mark, compares the paragraph size of the Marker segment mark with the paragraph start position and the file size, if the paragraph start+ If the segment size exceeds the file size, it can be judged that the JPEG file is NG; and the internal data of the paragraph is directly skipped, and the first character of the next paragraph is directly read in the way of stream file Seek, and it is judged whether it contains the short start mark 0xFF, if the next short start is not 0xFF mark, it is directly judged as the JPEG file NG. Because most of the data in a JPEG file is a data segment with a segment size, most of the data does not need to be read and parsed, but skipped, so the speed will be very fast. Overall, the added checks don't affect speed much. Because it does not involve the decoding of the image dat...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 