Giter Site home page Giter Site logo

albmac / jpeg-decomp Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 7.17 MB

Decompile JPEG into text showing elementary block data; encode back into JPEG. Used to fix corruption artifacts in images

License: GNU General Public License v2.0

C 99.65% Makefile 0.35%
block correct decode encode jpeg mcu repair ycrcb fix

jpeg-decomp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jpeg-decomp's Issues

I need help of MCU

Hi,

How can i automate add the MCU for jpeg full image have wrong alligment?

Best regards,

short options?

Hi @albmac .

Short options: -d, -e, -i, -o. See https://github.com/ImageProcessing-ElectronicPublications/jpeg-decomp .

    struct option long_options[] =
    {
        {"decode",       no_argument,   &decode, 'd'},
        {"encode",       no_argument,   &encode, 'e'},
        {"fin",    required_argument,       0, 'i'},
        {"fout",   required_argument,       0, 'o'},
        {0, 0, 0, 0}
    };
    while ((c = getopt_long (argc, argv, "dei:o:",long_options,&option_index)) != -1)
        switch (c)
        {
        case 'd':   //decode
            decode = 1;
            break;
        case 'e':   //encode
            encode = 1;
            break;
        case 'i':   //fin
            strncpy(filein,optarg,sizeof(filein)-1);
            break;
        case 'o':   //fout
            strncpy(fileout,optarg,sizeof(fileout)-1);
            break;
        case '?':
            fprintf (stderr,"option error");
            return;
        default:

            break;
        }
...
    if(encode==0&&decode==0)
    {
        printf("Usage:\n");
        printf("%s --decode or --encode --fin <file> --fout <file>\n", argv[0]);
        printf("or:\n");
        printf("%s -d|-e -i <file> -o <file>\n", argv[0]);
        return;
    }

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.