Coder Social home page Coder Social logo

awxkee / avif.swift Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 3.0 579 KB

A Swift package to encode and decode AVIF (AV1) images in iOS and MacOS, MacCatalyst, TvOS, WatchOS

License: MIT License

Swift 1.56% Objective-C 2.49% C 60.19% Objective-C++ 6.25% C++ 29.50%
animation avif avif-animated avif-coder avif-decoder avif-encoder avif-images catalyst decoder hdr image ios macos macosx nuke nuke-plugin objc objective-c sdwebimage swift

avif.swift's People

Contributors

awxkee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

avif.swift's Issues

Conflicting types for 'SharpYuvGammaToLinear/Gamma' due to dependency conflict

I am encountering a problem related to conflicting types for the function 'SharpYuvGammaToLinear/Gamma' while using the avif.swift library.
The conflict seems to stem from conflicting dependencies involving the libwebp libraries.

The dependency chain is as follows:

  • The avif.swift library relies on libwebp-ios.
  • libwebp-ios has a dependency on libwebp.
  • Additionally, there is another library, libwebp-Xcode (https://github.com/SDWebImage/libwebp-Xcode), which also depends on libwebp.
    This dependency structure results in a conflict regarding the 'SharpYuvGammaToLinear/Gamma' function, leading to the mentioned error.

Steps to Reproduce:

Include avif.swift and libwebp-ios(https://github.com/SDWebImage/libwebp-Xcode) as dependencies in an Xcode project.
스크린샷 2023-10-16 오후 3 33 59

I'd like to hear your opinion on what to do in times like this.

Package & Target name conflicts with `SDWebImage/libwebp-Xcode`

Conflicting package: https://github.com/SDWebImage/libwebp-Xcode

We face the error below when trying to use two packages together since both of them provide target and package named libwebp.

xcodebuild: error: Could not resolve package dependencies: multiple products named 'libwebp' in: 'libwebp-ios', 'libwebp-xcode'

xcodebuild: error: Could not resolve package dependencies:
 multiple targets named 'libwebp' in: 'libwebp-ios', 'libwebp-xcode'; consider using the `moduleAliases` parameter in manifest to provide unique names

To resolve this, awxkee/libwebp-ios#1 should be merged first and then update depedencies in this repository.

Issue in LogarithmicToneMapper

Please see the attached Xcode build error when using the master branch (April 8th 2024).
Changing from log10f_c to log10f works on my machine.

Versions:

  • Machine: Macbook Pro 2019 - 2.6 GHz 6-Core Intel Core i7
  • Swift version: 5.10
  • Xcode Version: 15.3

Screenshot 2024-04-08 at 15 56 45

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.