Dear MdeModulePkg maintainers,
Please consider attached patch file for fixing wrong JPEG image block traverse 
error.

Summary

A true-color bitmap is encoded with JPEG image compression.
Prototype
#define EFI_HII_IIBT_IMAGE_JPEG 0x18
typedef struct _EFI_HII_IIBT_JPEG_BLOCK {
EFI_HII_IMAGE_BLOCK Header;
UINT32 Size;
UINT8 Data[ ... ];
} EFI_HII_IIBT_JPEG;

Members
Header Standard image header, where Header.BlockType = EFI_HII_IIBT_IMAGE_JPEG.
Size   Specifies the size of the JPEG encoded data. (Not include size of Header)
Data   JPEG encoded data with 'JFIF' signature at offset 6 in the data block. 
The JPEG encoded data, specifies type of encoding and final size of true-color 
image.

[Path] MdeModulePkg\Universal\HiiDatabaseDxe\Image.c
[Function] GetImageIdOrAddress

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Smith Cheng <smith_ch...@phoenix.com>

Regards,
-Mars


Attachment: Image.c.patch
Description: Image.c.patch

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to