Git Product home page Git Product logo

cairo_jpg's People

Contributors

rahra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cairo_jpg's Issues

How to get rid of Wpointer-to-int-cast warnings

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);

possible memory leak?

hi, rahra, possibly a problem?
case : if cairo_image_surface_write_to_jpeg_mem return error, memory allocaged to the pointer "data" may leak

Choose a license

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

Could not find/open device

[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

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.