Coder Social home page Coder Social logo

youngtrashbag / png-research Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 542 KB

PNG Research. Creative Coding Experiments

License: MIT License

CMake 3.33% C++ 96.67%
corruption cpp creative-coding glitch glitch-art image image-corruption image-processing png

png-research's People

Contributors

youngtrashbag avatar

Watchers

 avatar

png-research's Issues

Function return PNG Chunk as Buffer

Make a Function, that reads and returns a pointer(or reference?) to a vector<unsgined char>.
First a reference to the file gets passed as a parameter as a fstream &imageFile
The chunk name specified in the parameter as a char[4] (4 letters like IDAT or PLTE).
So the Signature would be:
vector<unsinged char>* GetChunkBuffer(fstream &imageFile, char[4] chunkName)

Auto Edit CRC

The CRC (Circular Redundancy Check) is a Method to check, if there have been any errors while transferring the file. If the Check fails, the PNG Reader will mark it as Corrupt.

create various functions

Make a Function to load each part of the Chunk, and therefore assigning the correct value to each attribute of the chunk class.

Add Command Line Argument Parser

I want to add a command line paremeter functionality.
Probably do params like:

  • -h --help
  • -o file.png --output file.png
  • --increment n
  • --shift n

Refactor Comments

Remove:

  • bad comments
  • commented lines of code, that are not usable anymore

add:

  • better comments
  • understandable comments

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.