diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-09 14:09:34 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-09 18:35:54 +0000 |
commit | be63ab97e0385b4024ef84fda79fc84dc111ab23 (patch) | |
tree | bd56d9e46aefc7f9617f27da624831df1abe67b0 /fpdfsdk/fpdfview_c_api_test.c | |
parent | d24b97ee1d065eff482355ea3ff82be59bb528b1 (diff) | |
download | pdfium-be63ab97e0385b4024ef84fda79fc84dc111ab23.tar.xz |
API and test for retrieving image filters from image objects
Added FPDFImageObj_GetImageFilterCount() and
FPDFImageObj_GetImageFilters() for retrieving image filters of image
objects.
* Added a corresponding embedder test.
* Changed the filter of an image object in embedded_image.pdf from
DCTDecode to ASCIIHexDecode + DCTDecode, so we have a test case
for images with more than one filter.
Bug=pdfium:677
Change-Id: I398790a2cad33fea4ca16a0eb0889c04caa6b962
Reviewed-on: https://pdfium-review.googlesource.com/10130
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'fpdfsdk/fpdfview_c_api_test.c')
-rw-r--r-- | fpdfsdk/fpdfview_c_api_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index ef5b804baa..8276eb64b7 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -136,6 +136,8 @@ int CheckPDFiumCApi() { CHK(FPDFImageObj_GetBitmap); CHK(FPDFImageObj_GetImageDataDecoded); CHK(FPDFImageObj_GetImageDataRaw); + CHK(FPDFImageObj_GetImageFilterCount); + CHK(FPDFImageObj_GetImageFilter); CHK(FPDFPageObj_CreateNewPath); CHK(FPDFPageObj_CreateNewRect); CHK(FPDFPath_SetStrokeColor); |