#include <JPEGEncoder.h>
Public Member Functions | |
| JPEGEncoder () | |
| ~JPEGEncoder () | |
| bool | Init (const antStackRef &ipstack) |
| bool | GetJPEG (OFbkImageVectorData *imageVec, OFbkImageLayer layer, bool reconstruction, int quality, byte **jpeg, int *size) |
| void | FreeJPEG (byte *jpeg) |
| void | Save (OFbkImageVectorData *imageVec, OFbkImageLayer layer, int quality, char *path) |
Static Public Attributes | |
| const int | NUM_JPEG_BUF = 4 |
Private Member Functions | |
| byte * | Allocate () |
| void | Free (byte *buf) |
| void | ConvertYCbCr (OFbkImageVectorData *imageVec, OFbkImageLayer layer, byte *image, int *width, int *height) |
| void | ReconstructAndConvertYCbCr (OFbkImageVectorData *imageVec, OFbkImageLayer layer, byte *image, int *width, int *height) |
| void | PutYCbCrPixel (byte *img, int w, int x, int y, byte ypix, byte cb, byte cr) |
| byte | ClipRange (int val) |
Private Attributes | |
| antStackRef | ipstackRef |
| byte * | pixelInterleavedYCbCr |
| antSharedBuffer | jpegBuf [NUM_JPEG_BUF] |
| list< byte * > | freeJpegBufList |
Static Private Attributes | |
| const int | IMAGE_BUFSIZE = 3*(2*208)*(2*160) |
| const int | JPEG_BUFSIZE = 64*1024 |
|
|
Definition at line 17 of file JPEGEncoder.cc. |
|
|
Definition at line 23 of file JPEGEncoder.h. |
|
|
Definition at line 100 of file JPEGEncoder.cc. References byte, and freeJpegBufList. Referenced by GetJPEG(). |
|
|
Definition at line 69 of file JPEGEncoder.h. References byte. Referenced by ReconstructAndConvertYCbCr(). |
|
||||||||||||||||||||||||
|
Definition at line 116 of file JPEGEncoder.cc. References byte. |
|
|
Definition at line 110 of file JPEGEncoder.cc. References freeJpegBufList. Referenced by FreeJPEG(). |
|
|
Definition at line 54 of file JPEGEncoder.cc. References Free(). Referenced by W3AIBO::SendImageCont(). |
|
||||||||||||||||||||||||||||
|
Definition at line 60 of file JPEGEncoder.cc. References Allocate(), byte, ConvertYCbCr(), JPEG_BUFSIZE, pixelInterleavedYCbCr, ReconstructAndConvertYCbCr(), and write_jpeg_mem(). Referenced by W3AIBO::NotifyImage(). |
|
|
Definition at line 24 of file JPEGEncoder.cc. References byte, freeJpegBufList, IMAGE_BUFSIZE, ipstackRef, JPEG_BUFSIZE, jpegBuf, and pixelInterleavedYCbCr. Referenced by W3AIBO::DoInit(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 61 of file JPEGEncoder.h. References byte. Referenced by ReconstructAndConvertYCbCr(). |
|
||||||||||||||||||||||||
|
Definition at line 153 of file JPEGEncoder.cc. References byte, ClipRange(), and PutYCbCrPixel(). Referenced by GetJPEG(). |
|
||||||||||||||||||||
|
Definition at line 84 of file JPEGEncoder.cc. References ConvertYCbCr(), pixelInterleavedYCbCr, and write_jpeg_file(). |
|
|
Definition at line 78 of file JPEGEncoder.h. Referenced by Allocate(), Free(), and Init(). |
|
|
Definition at line 49 of file JPEGEncoder.h. Referenced by Init(). |
|
|
Definition at line 75 of file JPEGEncoder.h. Referenced by Init(). |
|
|
Definition at line 50 of file JPEGEncoder.h. |
|
|
Definition at line 77 of file JPEGEncoder.h. Referenced by Init(). |
|
|
Definition at line 35 of file JPEGEncoder.h. |
|
|
Definition at line 76 of file JPEGEncoder.h. |
1.3.9.1