English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés
Σ: 1 post

kemi  (statz) Főfasz
#2, Főfasz (2970)
2232 | #2a33 | ^ | Idézet | Sat, 25 Jan 2014 21:46:34 +01
85.238.*.* Linux x86 Google Chrome Hungary *.pool.digikabel.hu
Ez inkább az emberi hülyeség kihasználása. Ha kimondod, hogy xbox sign out, akkor kilép, ezt valószínűleg a PS4-gyel is meg lehet csinálni, ha abban is vannak hangparancsok. Az már más tészta, ha mindenkinek kilép az xboxa, aki benne volt a játékban, de arról nem szólt a videó.
GCC vs Clang egy Laplace éldetektorral 20 megapixeles raw képen.
A kód:
#include <fstream>

using namespace std;

int main(int argc, char** argv) {

    ifstream infile;
    infile.open(argv[1]);
    
    unsigned char* res = new unsigned char[4];
    
    infile.read((char*)res, 4);
    // 2-2 bájton tároltam a felbontást
    int width  = res[0] | (res[1] << 8);
    int height = res[2] | (res[3] << 8);
    
    int size = width * height * 4;  // RGBA, pixelenként 4 bájt, mert a Qt ezt a formátumot használja
    
    unsigned char*  inBits = new unsigned char[size];
    unsigned char* outBits = new unsigned char[size];

    infile.read((char*)inBits,  size);
    infile.close();
    
    int w = width * 4;
    int p;
    for (int i = w; i < size - w; i += 4) {
        for (int j = i; j < i + 3; j++) {
            p = inBits[j - w - 4]      +
                inBits[j - w    ]      +
                inBits[j - w + 4]      +
                inBits[j     - 4]      +
                inBits[j        ] * -8 +
                inBits[j     + 4]      +
                inBits[j + w - 4]      +
                inBits[j + w    ]      +
                inBits[j + w + 4];
            if (p <   0) p =   0;
            if (p > 255) p = 255;
            outBits[j] = p; 
        }
    }
    
    ofstream outFile;
    outFile.open(argv[2]);
    outFile.write((char*)res, 4);
    outFile.write((char*)outBits, size);
    
    outFile.close();
    
    return 0;
}


Eredmények:
kemi242@mint:~/Asztal$ time ./gccedge mclaren.raw gcc.raw

real	0m2.519s
user	0m2.023s
sys	0m0.447s
kemi242@mint:~/Asztal$ time ./clangedge mclaren.raw clang.raw

real	0m2.244s
user	0m1.822s
sys	0m0.373s
kemi242@mint:~/Asztal$ 

Vagyis nem sokkal, de valamicskét gyorsabb.
Csináld már meg, hogy a monospace betűtípus mindenhol a kiválasztott legyen! Nálam nagyon ronda a courier new.


English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés

Név: (max 255 byte)

Email: (max 255 byte) Nem kötelező!

Üzenet: (max 65536 kar.) 65536-0=65536




crap_vkn v4.34.0 by TCH
Thx to saxus for the escaped string decoder function (PHP), the realIP function (PHP) & the SQL handle layer (PHP), to thookerov for the int_divide function (PHP), to Jeff Anderson for the getSelText function (JS), to Alex King for the insertAtCursor function (JS), Flood3r for the new CSS styles, Pety for the spamprotection idea and some design and comfort ideas, MaxMind for the IP2Country database, famfamfam for the flags of countries and an unknown PHP programmer for the removeAccents function.



Kecskebaszók ide!