OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/src/fxcodec/lbmp/fx_bmp.h" | 7 #include "core/src/fxcodec/lbmp/fx_bmp.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 #ifdef BMP_SUPPORT_BITFIELD | 948 #ifdef BMP_SUPPORT_BITFIELD |
949 _bmp_encode_bitfields(bmp_ptr, dst_buf, dst_size); | 949 _bmp_encode_bitfields(bmp_ptr, dst_buf, dst_size); |
950 #endif | 950 #endif |
951 break; | 951 break; |
952 case BMP_RLE8: | 952 case BMP_RLE8: |
953 _bmp_encode_rle8(bmp_ptr, dst_buf, dst_size); | 953 _bmp_encode_rle8(bmp_ptr, dst_buf, dst_size); |
954 break; | 954 break; |
955 case BMP_RLE4: | 955 case BMP_RLE4: |
956 _bmp_encode_rle4(bmp_ptr, dst_buf, dst_size); | 956 _bmp_encode_rle4(bmp_ptr, dst_buf, dst_size); |
957 break; | 957 break; |
958 default:; | 958 default: |
| 959 break; |
959 } | 960 } |
960 bmp_ptr->file_header.bfSize = dst_size; | 961 bmp_ptr->file_header.bfSize = dst_size; |
961 WriteFileHeader(&bmp_ptr->file_header, dst_buf); | 962 WriteFileHeader(&bmp_ptr->file_header, dst_buf); |
962 return TRUE; | 963 return TRUE; |
963 } | 964 } |
OLD | NEW |