GithubHelp home page GithubHelp logo

runt18 / webp-wic-codec Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webmproject/webp-wic-codec

0.0 2.0 1.0 4.9 MB

Mirror only. Please do not send pull requests.

C++ 3.05% Python 0.24% C 96.72%

webp-wic-codec's Introduction

Windows Imaging Component wrapper around libwebp for WebP support.
Currently, only decoding is supported, but that allows to e.g., see the files
in Windows PhotoViewer.

Directories:
example - an example webp file.
setup - WiX scripts to create MSI packages and a wrapper setup.
src - source code of the WIC interfaces.
test - tests comparing the WebP codec with the builtin Jpeg codec.

Directories created after a build
bin - place where generated DLLs, MSIs etc will be put.
ipch - precompiled headers by Visual Studio.
obj - place where generated object files etc, will be put.

The solution/project were created in Visual Studio 2010, I don't know if they
work with older versions. It requires Windows SDK 7.1 - the projects its
compiler, as the compiler in Visual C++ Express doesn't support x64.

The tests loads the decoder using CoCreateInstance - i.e. they choose the DLL
that is currently registered in the system registry - they don't automatically
choose the DLL from the active configuration.

To register a DLL. Run from an elevated command prompt (elevated command
prompt = choose command prompt icon, right click and choose 'Run As
Administrator') e.g.:

regsvr32 bin\x64\Debug\WebpWICCodec.dll

Note that the registry has different branches for 32-bit and 64-bit COM object
registrations, thus, you register independently a win32 and x64 DLL. On the
other hand registering e.g. a release DLL when a debug DLL for the same
architecture was previously registered should overwrite the previous
registration.

If you want to unregister a DLL, run e.g.:

regsvr32 /u bin\x64\Debug\WebpWICCodec.dll


The tests were written on Windows 7. Some of them may fail e.g., on Vista.

The setup consists of a x86 MSI package (with the x64 DLL), x64 MSI package
(with both DLLs) and a wrapper EXE that chooses the correct one. The MSIs are
created with WiX 3.0. Typing 'msbuild' should create both packages and the
wrapper.

webp-wic-codec's People

Contributors

jzern avatar quantifiedcode-bot avatar runt18 avatar

Watchers

 avatar  avatar

Forkers

udaken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.