~ubuntu-branches/ubuntu/vivid/transcode/vivid

« back to all changes in this revision

Viewing changes to import/nuv/README.rtjpeg

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2009-01-08 22:33:52 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090108223352-xzwpx7r22tzm7grp
Tags: 2:1.0.7-0ubuntu1
* New upstream release. (LP: #311202)
* debian/watch: Update 
* debian/patches/01_configure.dpatch, 03_imagemagick.dpatch,
  05_filter.c.dpatch, 06_libavcodec.dpatch: Dropped, applied upstream 
* debian/control: libmagickwand-dev, build-depend on new Imagemagick dev
  package.
* debian/patches/01_configure_magickcore.dpatch, 98_autoreconf.dpatch:
  Link against -lMagickCore instead of -lMagick, upstream changed name.
* debian/control: Bump s-v to 3.8.0, add homepage field 
* debian/control: Recommend mawk to run provided scripts 
* debian/control: linux -> Linux spelling fix (Lintian) 
* debian/control, debian/rules: Strip rpath from
  /usr/lib/transcode/export_fame.so 
* debian/transcode-doc.doc-base, debian/copyright, debian/changelog: Fix
  encoding.
* debian/transcode-doc.doc-base: Use valid section.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
To decompress a single image:
63
63
1) Read saved tables (or call RTjpeg_init_compress with the same Q factor as
64
 
was used to compress the data) 
 
64
was used to compress the data)
65
65
2) RTjpeg_init_decompress
66
66
3) store the YUV420 image, or
67
67
3) RTjpeg_yuvrgbXX where XX is the desired RGB depth (8 (grey) 16 (565) 24
82
82
=================
83
83
(some functions may not yet be implemented for all module types)
84
84
 
85
 
extern void RTjpeg_init_Q(__u8 Q);
 
85
extern void RTjpeg_init_Q(uint8_t Q);
86
86
----------------------------------
87
87
Change the quality factor for future compressions/decompressions to Q.
88
88
Q=255 ==> IJG jpeg 75% (max)
90
90
Q=32 (min usable)
91
91
Q=1 (abstract art)
92
92
 
93
 
extern void RTjpeg_init_compress(__u32 *buf, int width, int height, __u8 Q);
 
93
extern void RTjpeg_init_compress(uint32_t *buf, int width, int height, uint8_t Q);
94
94
----------------------------------------------------------------------------
95
95
Initialise the compressor.
96
96
  *buf is a pointer to 128 ints.  The de-quantizer values are stored in this
100
100
  height is the height of the Y component of the image.
101
101
  Q is the quality factor (see above)
102
102
 
103
 
extern void RTjpeg_init_decompress(__u32 *buf, int width, int height);
 
103
extern void RTjpeg_init_decompress(uint32_t *buf, int width, int height);
104
104
----------------------------------------------------------------------
105
105
Initialise decompressor (and color convertor).
106
106
  *buf is a pointer to the 128 ints produced by init_compress.
107
107
  width and height, as before.
108
108
 
109
 
extern int RTjpeg_compress(__s8 *sp, unsigned char *bp);
 
109
extern int RTjpeg_compress(int8_t *sp, unsigned char *bp);
110
110
--------------------------------------------------------
111
111
Compress the image.
112
 
  *sp is a pointer to the output data (for safety, this buffer should be as 
 
112
  *sp is a pointer to the output data (for safety, this buffer should be as
113
113
    large as the uncompressed data).
114
114
  *bp is a pointer to the input data (YUV420P format).
115
115
  RETURN: the number of bytes actually used for the output stream.
116
116
 
117
 
extern void RTjpeg_decompress(__s8 *sp, __u8 *bp);
 
117
extern void RTjpeg_decompress(int8_t *sp, uint8_t *bp);
118
118
--------------------------------------------------
119
119
Decompress the image.
120
120
  as before (no RETURN).
123
123
----------------------------------------
124
124
Initialise interframe compression.
125
125
 
126
 
extern int RTjpeg_mcompress(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask);
 
126
extern int RTjpeg_mcompress(int8_t *sp, unsigned char *bp, uint16_t lmask, uint16_t cmask);
127
127
-----------------------------------------------------------------------------------
128
128
Perform interframe compression.
129
129
 *sp, *bp as for compress
141
141
test multiple compression factors for compressed block size. Remember to
142
142
call mcompress with test mode = 0 BEFORE transmitting an encoded block.)
143
143
 
144
 
extern void RTjpeg_yuvrgb(__u8 *buf, __u8 *rgb);
 
144
extern void RTjpeg_yuvrgb(uint8_t *buf, uint8_t *rgb);
145
145
------------------------------------------------
146
146
Convert decompressed YUV420P data to RGB data
147
147
  *buf pointer to YUV420P data
148
148
  *rgb pointer to RGB data
149
149
 
150
 
extern void RTjpeg_yuvrgb32(__u8 *buf, __u8 *rgb);
 
150
extern void RTjpeg_yuvrgb32(uint8_t *buf, uint8_t *rgb);
151
151
--------------------------------------------------
152
152
convert to RGB32 data (display order)
153
153
 
154
 
extern void RTjpeg_yuvrgb24(__u8 *buf, __u8 *rgb);
 
154
extern void RTjpeg_yuvrgb24(uint8_t *buf, uint8_t *rgb);
155
155
--------------------------------------------------
156
156
convert to RGB24 (display order)
157
157
 
158
 
extern void RTjpeg_yuvrgb16(__u8 *buf, __u8 *rgb);
 
158
extern void RTjpeg_yuvrgb16(uint8_t *buf, uint8_t *rgb);
159
159
--------------------------------------------------
160
160
convert to RGB 565
161
161
 
162
 
extern void RTjpeg_yuvrgb8(__u8 *buf, __u8 *rgb);
 
162
extern void RTjpeg_yuvrgb8(uint8_t *buf, uint8_t *rgb);
163
163
-------------------------------------------------
164
164
convert to grey-scale (grin)
165
165
 
166
 
extern void RTjpeg_double32(__u32 *buf);
167
 
extern void RTjpeg_double24(__u8 *buf);
168
 
extern void RTjpeg_double16(__u16 *buf);
169
 
extern void RTjpeg_double8(__u8 *buf);
 
166
extern void RTjpeg_double32(uint32_t *buf);
 
167
extern void RTjpeg_double24(uint8_t *buf);
 
168
extern void RTjpeg_double16(uint16_t *buf);
 
169
extern void RTjpeg_double8(uint8_t *buf);
170
170
--------------------------------------
171
171
convert the image pointed to by *buf to double size (size is determined by
172
172
with and height from init_decompress).