| 907 | } |
| 908 | |
| 909 | EFI_STATUS |
| 910 | TianoDecompress ( |
| 911 | IN VOID *Source, |
| 912 | IN UINT32 SrcSize, |
| 913 | IN OUT VOID *Destination, |
| 914 | IN UINT32 DstSize, |
| 915 | IN OUT VOID *Scratch, |
| 916 | IN UINT32 ScratchSize |
| 917 | ) |
| 918 | /*++ |
| 919 | |
| 920 | Routine Description: |
| 921 | |
| 922 | The implementation of Tiano Decompress(). |
| 923 | |
| 924 | Arguments: |
| 925 | |
| 926 | Source - The source buffer containing the compressed data. |
| 927 | SrcSize - The size of source buffer |
| 928 | Destination - The destination buffer to store the decompressed data |
| 929 | DstSize - The size of destination buffer. |
| 930 | Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data. |
| 931 | ScratchSize - The size of scratch buffer. |
| 932 | |
| 933 | Returns: |
| 934 | |
| 935 | EFI_SUCCESS - Decompression is successful |
| 936 | EFI_INVALID_PARAMETER - The source data is corrupted |
| 937 | |
| 938 | --*/ |
| 939 | { |
| 940 | mPbit = MAXPBIT; |
| 941 | return Decompress (Source, SrcSize, Destination, DstSize, Scratch, ScratchSize); |
| 942 | } |
| 943 | |
| 944 | EFI_STATUS |
| 945 | Extract ( |