summaryrefslogtreecommitdiff
path: root/ports/SkImageDecoder_WIC.cpp
AgeCommit message (Collapse)Author
2013-07-22Clean up a few warnings on Windows x64.bungeman@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@10233 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14Add an option to create unpremultiplied bitmaps.scroggo@google.com
Currently they cannot be used directly by Skia, but the pixels can be used elsewhere. SkImageDecoder: Add functions to require unpremultiplied output and query the presence of the requirement SkImageDecoder_libpng: SkImageDecoder_libwebp: SkImageDecoder_WIC: Respect the requirement for unpremultiplied output. TODO: Fix SkImageDecoder_CG. SkScaledBitmapSampler: Add procs to skip premultiplication and a boolean parameter to use those procs. ImageDecodingTest: Test unpremultiplied bitmap decoding. SampleUnpremul: Add a sample which allows visually comparing between the unpremultiplied version (copied into a premultiplied bitmap, since drawing unpremultiplied is not currently supported) and a premultiplied version of image files. gm.h: Add a getter for the resource path, so Samples can use it. As of patch set 13, https://codereview.chromium.org/16816016/ and https://codereview.chromium.org/16983004/, which were approved separately. R=reed@google.com Review URL: https://codereview.chromium.org/16410009 git-svn-id: http://skia.googlecode.com/svn/trunk/src@9612 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-04-25Updates to skimage tool to use it for testing.scroggo@google.com
skimage_main.cpp: More changes in the interest of testing our decoders. force_all_opaque before writing PNG files. Test reencoding the image to its original type (if possible), and then test redecoding it (to make sure the encoding was successful). Add an option to turn off this behavior. Merge decodeFileAndWrite with decodeFile. SkImageDecoder: Add kUnknown_Type to SkImageEncoder::Types. Add a static function to get the Format of an SkStream. In getFormatName(), remove an incorrect assert. When calling the flavor of DecodeStream that returns the Format, check the stream if the decoder returns kUnknown_Format. BUG=https://code.google.com/p/skia/issues/detail?id=1241 Review URL: https://codereview.chromium.org/14363003 git-svn-id: http://skia.googlecode.com/svn/trunk/src@8862 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-04-17Updates to images project.scroggo@google.com
Use the SkImageEncoder_Factory on all platforms. On Windows and Mac, register the platform's image encoder as an option for SkImageEncoder::Create. Also add more types that can be decoded. Update comments for SkImageDecoder to be more accurate. Add more types to SkImageEncoder::Type, and return the correct type of encoder, if it exists. Use a custom version of SkImageDecoder::Factory on Windows and Mac to check the stream for registered decoders before defaulting to the platform's version. Share code with the existing SkImageDecoder::Factory method. Preparation for testing decoders and encoders: BUG=https://code.google.com/p/skia/issues/detail?id=1241 Review URL: https://codereview.chromium.org/14298010 git-svn-id: http://skia.googlecode.com/svn/trunk/src@8730 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-01-26Sanitizing source files in Skia_Periodic_House_Keepingskia.committer@gmail.com
git-svn-id: http://skia.googlecode.com/svn/trunk/src@7406 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-01-11SkImageDecoder_WIC should work on Win7 with Win8 SDK.bungeman@google.com
https://codereview.appspot.com/7099044/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@7139 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-12-06Defining new color constat for transparent colorjunov@google.com
Review URL: https://codereview.appspot.com/6901044 git-svn-id: http://skia.googlecode.com/svn/trunk/src@6696 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-08Update WIC Image decoder to unpremul colors before saverobertphillips@google.com
https://codereview.appspot.com/6826069/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@6349 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-23Result of running tools/sanitize_source_files.py (which was added in ↵rmistry@google.com
https://codereview.appspot.com/6465078/) This CL is part II of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6474054 git-svn-id: http://skia.googlecode.com/svn/trunk/src@5263 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16Update SkCoInitialize to better match spec.bungeman@google.com
http://codereview.appspot.com/5036044/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@2274 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-01Make WIC encoder lock the bitmap pixels.bungeman@google.com
http://codereview.appspot.com/4832045/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@2016 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-01Windows image decoder should handle all bitmap formats.bungeman@google.com
http://codereview.appspot.com/4801070/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@2015 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-28Automatic update of all copyright notices to reflect new license terms.epoger@google.com
I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk/src@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23Wrap SkStreams in IStreams instead of copying data around.bungeman@google.com
http://codereview.appspot.com/4630062/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@1694 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22Add image encoder/decoder for Windows.bungeman@google.com
http://codereview.appspot.com/4634078/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@1676 2bbb7eff-a529-9590-31e7-b0007b416f81