rahra / cairo_jpg Goto Github PK
View Code? Open in Web Editor NEWReading and writing JPEG files from/to Cairo surfaces.
License: GNU Lesser General Public License v3.0
Reading and writing JPEG files from/to Cairo surfaces.
License: GNU Lesser General Public License v3.0
Can these warnings be avoided ?
cairo_jpg.c:223:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return write((long)closure, data, length) < length ? CAIRO_STATUS_WRITE_ERROR : CAIRO_STATUS_SUCCESS;
cairo_jpg.c: In function 'cairo_image_surface_write_to_jpeg':
cairo_jpg.c:279:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
e = cairo_image_surface_write_to_jpeg_stream(sfc, cj_write, (void *)(long)outfile, quality);
hi, rahra, possibly a problem?
case : if cairo_image_surface_write_to_jpeg_mem return error, memory allocaged to the pointer "data" may leak
The current license ("This code is free software. Do whatever you like to do with it.") is not a well-known license. This causes issue with packaging, for instance Debian requires the license to follow the DFSG guidelines. See emersion/grim#34
[30940.091717] usb 1-2.1: new high-speed USB device number 9 using xhci_hcd
[30940.219150] usb 1-2.1: New USB device found, idVendor=09cb, idProduct=1996, bcdDevice= 1.08
[30940.219155] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[30940.219156] usb 1-2.1: Product: FLIR ONE Camera
[30940.219157] usb 1-2.1: Manufacturer: FLIR Systems
[30940.219158] usb 1-2.1: SerialNumber: T05L4T000EB
[30943.171647] usb 1-2.1: USB disconnect, device number 9
root@ghost:/usr/src/flir-gtk# make
gcc -g -O2 -Wall -D_REENTRANT pkg-config --cflags gtk+-3.0 libusb-1.0 libjpeg libcjson
-c -o flirgtk.o flirgtk.c
gcc -g -O2 -Wall -D_REENTRANT pkg-config --cflags gtk+-3.0 libusb-1.0 libjpeg libcjson
-c -o cam-thread.o cam-thread.c
gcc -g -O2 -Wall -D_REENTRANT pkg-config --cflags gtk+-3.0 libusb-1.0 libjpeg libcjson
-c -o cairo_jpg/src/cairo_jpg.o cairo_jpg/src/cairo_jpg.c
gcc flirgtk.o cam-thread.o cairo_jpg/src/cairo_jpg.o -o flirgtk pkg-config --libs gtk+-3.0 libusb-1.0 libjpeg libcjson
-lm
root@ghost:/usr/src/flir-gtk# make install
install -D flirgtk /usr/local/bin/flirgtk
install -D flirgtk.desktop /usr/local/share/applications/flirgtk.desktop
install -D flirgtk.png /usr/local/share/icons/hicolor/256x256/apps/flirgtk.png
install -D 77-flirone-lusb.rules /lib/udev/rules.d/77-flirone-lusb.rules
root@ghost:/usr/src/flir-gtk# cp -rp /usr/local/share/applications/flirgtk.desktop /usr/share/applications/
Display all 697 possibilities? (y or n)
root@ghost:/usr/src/flir-gtk# cp -rp /usr/local/share/applications/flirgtk.desktop /usr/share/applications/
root@ghost:/usr/src/flir-gtk# cp -rp /usr/local/share/icons/hicolor/256x256/apps/flirgtk.png /usr/share/icons/hicolor/256x256/apps/flirgtk.png
root@ghost:/usr/src/flir-gtk# udevadm control --reload-rules
root@ghost:/usr/src/flir-gtk# flir
flir-GetThermal flirgtk
root@ghost:/usr/src/flir-gtk# flir
flir-GetThermal flirgtk
root@ghost:/usr/src/flir-gtk# flirgtk
Could not find/open device
Could not find/open device
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.