Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

I have a basic encoder finished. Merge? #2

Closed
mortdeus opened this issue Oct 9, 2012 · 3 comments
Closed

I have a basic encoder finished. Merge? #2

mortdeus opened this issue Oct 9, 2012 · 3 comments

Comments

@mortdeus
Copy link

mortdeus commented Oct 9, 2012

https://github.com/Mortdeus/go-tga

Its not the full spec, but its 32 bit rgba TGA encoder.

@ftrvxmtrx
Copy link
Owner

I could merge it, but I'd better have encoding based on the source image itself, to do as little conversions/allocations as possible...

  • Gray -> monochrome 8 bit
  • NRGBA (non-premultiplied) -> plain RGBA
  • RGBA (premultiplied) -> RGBA with attribute type set to "premultiplied"
  • Palette -> tga with a colormap

@mortdeus
Copy link
Author

mortdeus commented Oct 9, 2012

My encoding only depends on image.Image. While at the moment its asserting the image is a RGBA, and redrawing it that way if it isnt, it is just a minor mod to support all the other different possible modes at that point.

I assume you are doing this for glfw?

@mortdeus mortdeus closed this as completed Oct 9, 2012
@ftrvxmtrx
Copy link
Owner

Not exactly for glfw, but I'm also taking it into account.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants