Coder Social home page Coder Social logo

fastimage.c's Introduction

Михаил Морозов

БИО

Родился и вырос.

Языки

Русский, Английский, Си, Питон, ABAP

Работа

  • 2015-06 - АО "НИИИТ"
  • 2019-01 - 2022-03 - Accenture
  • 2022-04 - настоящее время - Axenix

Образование

  • 2012-2016 - ТвГУ, ПМиК, Фундаментальная информатика и информационные технологии, Бакалавриат
    • Диплом - Метод фрактального сжатия изображений на основе параллельно-распределенных вычислений (ссылка)
  • 2016-2018 - ТвГУ, ПМиК, Фундаментальная информатика и информационные технологии, Магистратура
    • Диплом - Метод упаковки площадных примитивов
  • 2022 - ДВФУ, Повышение квалификации, Основы баз данных и SQL запросов

Сертификаты

fastimage.c's People

Contributors

plzombie avatar

Watchers

 avatar  avatar

fastimage.c's Issues

optional?

Hi @plzombie .

Maybe optional file|http?:

fastimage.c/test.c

Lines 42 to 64 in 1a13a0a

if(argc != 3) {
printf("test.exe type input\n"
"\ttype = file - file input\n");
return 0;
}
#if defined(_WIN32)
if(!wcscmp(argv[1], L"file")) {
image = fastimageOpenFileW(argv[2]);
} else if(!wcscmp(argv[1], L"http")) {
image = fastimageOpenHttpW(argv[2], true);
#else
if(!strcmp(argv[1], "file")) {
image = fastimageOpenFileA(argv[2]);
} else if(!strcmp(argv[1], "http")) {
image = fastimageOpenHttpA(argv[2], true);
#endif
} else {
printf("Unknown input type\n");
return 0;
}

to

    if(argc < 2) {
        printf("%s input [type]\n"
            "\ttype = file - file input (default), http - net input\n", argv[0]);
		
        return 0;
    }
    if (argc > 2)
    {
#if defined(_WIN32)
        if(!wcscmp(argv[2], L"file")) {
            image = fastimageOpenFileW(argv[1]);
        } else if(!wcscmp(argv[2], L"http")) {
            image = fastimageOpenHttpW(argv[1], true);
        } else {
            printf("Unknown input type\n");
            return 0; 
        } 
#else
        if(!strcmp(argv[2], "file")) {
            image = fastimageOpenFileA(argv[1]);
        } else if(!strcmp(argv[2], "http")) {
            image = fastimageOpenHttpA(argv[1], true);
        } else {
            printf("Unknown input type\n");
            return 0; 
        } 
#endif
    } else {
#if defined(_WIN32)
        image = fastimageOpenFileW(argv[1]);
#else
        image = fastimageOpenFileA(argv[1]);
#endif
    }

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.