This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01 | |
include listing.inc | |
INCLUDELIB MSVCRTD | |
INCLUDELIB OLDNAMES | |
CONST SEGMENT | |
$SG5352 DB 'value=%llx', 0aH, 00H | |
ORG $+4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// problem: node.js make memory leaks about child_proces | |
// | |
// the javascript doing it tha same to the shell code | |
// $ cat mako_* | ./ffmpeg -y -f image2pipe -r 1 -vcodec bmp -r 29.7 -i - -vcodec utvideo movie.avi | |
var ffmpeg = require('basicFFmpeg'); | |
var fs = require('fs'); | |
var sprintf = require('sprintf').sprintf; | |
var spawn = require('child_process').spawn, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The Fraction of Math | |
* written by [email protected] | |
* MIT or 2-BSD Licensed. | |
*/ | |
class Fraction { | |
constructor(public numerator: number, | |
public denominator: number) | |
{ | |
this.euclid(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! \fn QImageData * QImageData::create(const QSize &size, QImage::Format format) | |
\internal | |
Creates a new image data. | |
Returns 0 if invalid parameters are give or anything else failed. | |
*/ | |
QImageData * QImageData::create(const QSize &size, QImage::Format format) | |
{ | |
if (!size.isValid() || format == QImage::Format_Invalid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { | |
print "# CHANGELOG" | |
COMMIT = "" | |
OTHER_COMMIT_FIRST=1 | |
DATE = "" | |
TAG = "" | |
"git config --get remote.origin.url" | getline ORIGIN | |
} | |
/^commit/ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 1 (Thread 3708.0x236c): | |
#0 0x00415245 in _mm_set_epi16 (__q0=32767, __q1=32767, __q2=32767, __q3=32767, __q4=32767, __q5=32767, __q6=32767, __q7=32767) at E:/local/gnu/mingw-w64/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/emmintrin.h:606 | |
No locals. | |
#1 _mm_set1_epi16 (__A=32767) at E:/local/gnu/mingw-w64/mingw32/lib/gcc/i686-w64-mingw32/6.3.0/include/emmintrin.h:645 | |
No locals. | |
#2 zimg::depth::ordered_dither_b2w_sse2 (dither=0x6fdec0, dither_offset=0, dither_mask=7, src=0x4de600, dst=0x4e0f00, scale=219.858826, offset=4096, bits=16, left=0, right=1503) at ../../qtzimg/zimg/zimg/src/zimg/depth/dither_sse2.cpp:338 | |
src_p = 0x4de600 "KLIDECKJNRXOJGKHGCGKB:6:<CBA867=AHIA7?JHELNIDAEKPMFBDBCKSOG=8@FGMNKC?AGQNFAIWVUZYTHDINW^a]TS_e]PMNSO?8=>@949AACMQODEQZVUQSSS^knf_V\\^acb^URORX\\_\\QWWZbcbf^ijc`hfd][bkmkiggjms{|ukloqopkga_fmmjhilgckwrk`ZZXUTYRC;?GOJMSYUUcrphitzvrpuvplnv}~xvy{ww\205\207yqw~{wv|}qilnrsmqsonr|\200wmr\200\202{|}|ut|\202\200\205~\200~\177\200\200z}\206\210\206\201\202 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\QuickViewer.AssocFile.JPEG] | |
@="JPEG Format Image" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\QuickViewer.AssocFile.JPEG\shell] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\QuickViewer.AssocFile.JPEG\shell\open] | |
@="&View with QuickViewer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QImage createImageAsync(QString path) | |
{ | |
QImageReader reader(path); | |
if(!reader.canRead()) | |
return QImage(); | |
// QImage processing sometimes fails | |
QImage src; | |
int count = 0; | |
do { | |
//src = QImage::fromData(bytes, QFileInfo(path.toLower()).suffix().toUtf8()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <Icm.h> | |
BOOL convertCMYKtoRGB(void *cmyk, void *rgb, DWORD w, DWORD h) | |
{ | |
HPROFILE hProfiles[2] = { 0 }; | |
PROFILE p = { 0 }; | |
std::wstring woppath = L"RSWOP.icm"; | |
p.dwType = PROFILE_FILENAME; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_luminorImpl(input, b_sigma, c_sigma, g_sigma, with_alpha): | |
""" | |
input: a Buffer as an bitmap image on memory | |
b_sigma: float value for brightness(default: 0.0, range: -255 to 255) | |
c_sigma: float value for contrast(default: 1.0, range: 0.1 to 10.0) | |
g_sigma: float value for gamma value(default: 1.0, range: 0.1 to 10.0) | |
""" | |
assert type(input) == ImageParam | |
assert input.dimensions() == 3 |
OlderNewer