GithubHelp home page GithubHelp logo

New bitmap struct type about ace HOT 3 OPEN

amigaports avatar amigaports commented on August 27, 2024
New bitmap struct type

from ace.

Comments (3)

tehKaiN avatar tehKaiN commented on August 27, 2024

Also, OS struct has BytesPerRow field which is useful for calculations. But there are two problems:

  • there are lots of cases where pixel width is needed. Calculating it by shifting is cheap, but I guess it will be better to have it besides bytes per row field.
  • currently BytesPerRow is multiplied by depth when in interleaved mode. This representation helps in code unification in blits with non-interleaved bitmaps and during display. So I guess we could keep it and a) add another field for true byte width or b) calculate true byte width using division, which is slow.

from ace.

SamuraiCrow avatar SamuraiCrow commented on August 27, 2024

Note that the BitMap struct is designed to be able to accomodate more or less bitplanes than are currently supported by the chipset. (Variable length struct, in other words.) If embedding it in a bigger structure, add all the fields before the current BitMap struct.

from ace.

tehKaiN avatar tehKaiN commented on August 27, 2024

Note to future self: new bitmap format should also be able to work on part of current bitmap - e.g. a smaller rectangle on the center of a bigger one.

from ace.

Related Issues (20)

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.