Tag Archives: code

Writing RGB or GREY buffer into a JPEG file

      Comments Off on Writing RGB or GREY buffer into a JPEG file

Import issue: This example code is for Linux ( or possible for MacOSX ). and .. Fixed some wrong code Makefile It must be declared to link with jpeg library in system, or it should not be switched with turbo-jpeg.

Code for jpeglib.

Code for TURBOJPEG

Read more »

V4L2 + V4l-utils, Capture for multi-planar #2

      Comments Off on V4L2 + V4l-utils, Capture for multi-planar #2

This article continued from “V4L2 + V4l-utils, Capture for multi-planar #1“ Querying external controls Getting external conrol should be an optional job, but it may needed to control birghtness and gain for good to get excellent balanced image. Little bit difficult to understand in first time but can be understand… Read more »

FLTK tech, HICON to Fl_RGB_Image

      Comments Off on FLTK tech, HICON to Fl_RGB_Image

This is a simple source code for converting Windows HICON to Fl_RGB_Image for my own customized FLTK window. Before understanding how it works, It must be requires understanding of some Windows API like LoadImage(). API, icon_to_flrgb()

Plus, to remove Fl_RGB_Image in safe, use this. remove_fl_rgb_image()

And, let know… Read more »

How to fix wrong HTML expressions for Crayon Syntax Highlight plug-in.

      Comments Off on How to fix wrong HTML expressions for Crayon Syntax Highlight plug-in.

If you have a problem like me in your code embedded posts for expression gone to wrong, just do like me. First, Go wp-admin and see CSH plug-in area. And then click to Settings.   You will see CSH plug-in page and find “Code” area.   There’s will be no… Read more »

Printing bits from unsigned char (BYTE) in C.

      Comments Off on Printing bits from unsigned char (BYTE) in C.

Anybody knows what numbers made in our computer if you have experience in programming. But did you have try to print what ‘unsigned char’ or ‘BYTE’, 1 byte data to bits? ‘unsigned char’ and ‘BYTE’ contain a number in ranged 0 to 255 in 8 bits. 0000:0000 to 1111:1111. Every… Read more »