œ_#ÁÕ§TE NAŒ“KeÉ:”(åŽÖJÞùY’‚ñùž7; «]Û ý`8g“¯B© jdÖÖ¸ðzœ¸¦4Ç3Kó^(ÍÖ¼ Õ€pvìwšõB4df$Èü^0˜…åÌC$#2FŽÑ§±¦ÛZ/÷š&m£ñzÒÖ ’.Î]!Î;ƒ(Õ–¢d/—#Kª+tZyuÏB>NÛÖ†(¸ŒSà'³„Y˜´-_•¦¼´˜OlNK§¶ÒàŠˆTHµƒeTPå·fïM’…þuÏÍüp6دªE£åü‡ZØ'CKF#â«;‹eyO Qp„†l"ö1èíÙP ÏŒúl! BÝ2ñª•_VÁÉ÷3eu`–F¸ìI--ö<¿žë¯4õ캿¢)34Å{wMÉ2ÆÖFŸ¥`e9Ú¶¸P‡.”FÔï rY ‚²ÈTB,{ÛœéJ}«àQ4¹0Rû4D‚B§S‘ dO•v¾„™Sן¯3FeŸ™«+ÓâwH dÕÛÌì·P4ë&¥#rÜÉ Ù¦ê†ý·xòqk¯2,¹§™E\ék‚×Sá”ÚºÙ⺷ö£6…à ʾ qSá³Å|;àû}4Ÿ($â¹VY~óÍ!èÜÒŒËX½Ù1j‚VíÍŸš³+œ]«½g{_{/vµ½\¢¶vÉWKÿ:ñám½ ¥ S²x‘t ŽšÝÙÿÀÇ^ný PK IW™k‚½÷ á _rels/.relsUT dìd dìd dìd’ÏNÃ0‡ï{ŠÈ÷ÕÝ@¡¥» ¤Ý*`%îÑ&QâÁöö‚J£ì°cœŸ¿|¶²ÙÆA½rL½wVE Šñ¶w†çúay * 9Kƒw¬áÈ ¶ÕbóÄIîI]’Ê—4t"á1™ŽGJ…ìòMããH’±Å@æ…ZÆuYÞ`üÍ€jÂT;«!îì T}|Û7MoøÞ›ýÈNN<|v–í2ÄÜ¥ÏèšbË¢Ázó˜Ë )„"£OÏ7ú{ZYÈ’yÞç#1'tuÉM?6o>Z´_å9›ëKÚ˜}?þ³žÏÌ·N>fµx PK IWª½e ¢ U € word/document.xmlUT dìdPK IWþË3” z €J¢ word/settings.xmlUT dìdPK IWC‡{š' ƒ €¤ docProps/custom.xmlUT dìdPK IW츱=Œ €‡¥ [Content_Types].xmlUT dìdPK IWV%ë±" €U§ docProps/app.xmlUT dìdPK IW€RŒ 3 €¶¨ docProps/core.xmlUT dìdPK IWkòDn ô €ª word/_rels/document.xml.relsUT dìdPK IW;$î €Î« word/fontTable.xmlUT dìdPK IW+åäz] ÷. €ý¬ word/numbering.xmlUT dìdPK IW¤2×r- ¿ €›° word/styles.xmlUT dìdPK IWMFÒ ø €´ word/header1.xmlUT dìdPK IWF— T e €· word/media/image1.jpegUT dìdPK IW!Yéáå €°Ë word/media/image2.pngUT dìdPK IW°Àºë ú €ÙÌ word/media/image3.pngUT dìdPK IW$“†ª L €Î word/footer1.xmlUT dìdPK IWzaGôM €ñÑ word/footer2.xmlUT dìdPK IW–µâº P €}Õ word/theme/theme1.xmlUT dìdPK IW™k‚½÷ á €{Û _rels/.relsUT PK ! bîh^ [Content_Types].xml ¢( ¬”ËNÃ0E÷HüCä-Jܲ@5í‚Ç*Q>Àēƪc[žiiÿž‰ûB¡j7±ÏÜ{2ñÍh²nm¶‚ˆÆ»R‹ÈÀU^7/ÅÇì%¿’rZYï @1__f› ˜q·ÃR4DáAJ¬h>€ãÚÇV߯¹ªZ¨9ÈÛÁàNVÞ8Ê©ÓãÑÔji){^óã-I‹"{Üv^¥P!XS)bR¹rú—K¾s(¸3Õ`cÞ0†½ÝÎß»¾7M4²©ŠôªZÆk+¿|\|z¿(Ž‹ôPúº6h_-[ž@!‚ÒØ Pk‹´2nÏ}Ä?£LËð Ýû%áÄßdºždN"m,à¥ÇžDO97*‚~§Èɸ8ÀOíc|n¦Ñ äEøÿöéºóÀBÉÀ!$}‡íàÈé;{ìÐå[ƒîñ–é2þ ÿÿ PK ! µU0#ô L _rels/.rels ¢( ¬’MOÃ0†ïHü‡È÷ÕÝBKwAH»!T~€Iܵ£$Ý¿'TƒG½~üÊÛÝ<êÈ!öâ4¬‹;#¶w†—úqu *&r–Fq¬áÄvÕõÕö™GJy(v½*«¸¨¡KÉß#FÓñD±Ï.W ¥†=™ZÆMYÞbø®ÕBS톰·7 ê“Ï›×–¦é ?ˆ9LìÒ™ÈsbgÙ®|Èl!õùUSh9i°bžr:"y_dlÀóD›¿ý|-NœÈR"4ø2ÏGÇ% õZ´4ñËyÄ7 ëÈðÉ‚‹¨Þ ÿÿ PK ! Q48wÛ — xl/workbook.xml¤UÙnâ0}iþ!cñ‡ *–¢AšVU×$dC¬&vÆv UÕŸë@XÊK§/¹p|Žï¹N÷b“¥Ö •Š ÞC¸î"‹òHÄŒ¯zèá~b·‘¥4á1I§=ôJºèÿüÑ] ù¼âÙ ®z(Ñ:GE ͈ª‹œrˆ,…̈†©\9*—”Ä*¡Tg©ã¹nàd„q´Eåg0ÄrÉ":Q‘Q®· ’¦D}•°\UhYô¸ŒÈç"·#‘å ±`)Ó¯%(²²(œ®¸d‘‚ì nZ w v¡ñª• t¶TÆ")”Xê:@;[Ògú±ë`|²›ó=ø’ïHúÂL÷¬dðEVÁ+8€a÷Ûh¬Uz%„Íû"ZsÏÍCýî’¥ôqk]‹äù5ÉL¦Rd¥Dé˘i÷P ¦bM/|dÉ",…¨çãFNoçiûéë>aêiçsó#ðÄ ÕTr¢éHp ÜIú®ÝJìQ"ÀÜÖ-ý[0I¡¦ÀZ Z…d¡nˆN¬B¦=4 g %PDF-1.4 %âãÏÓ 3 0 obj << /Linearized 1 /L 422775 ÿØÿà JFIF ÿÛ C ÿÛ C ÿÀ X" ÿÄ ÿÄ H !1A"Qaq2‘¡#±ÁBRÑ3Cbrá$S‚¢²ð4ñ%6DTc’ÂsÿÄ ÿÄ = !1AQ"aq‘Á2R¡±BÑð#3br’²4á$‚¢ÂñÿÚ ? áHBßÝ`„! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! ! stream
/*===========================================================================*
- Copyright 2010 Google Inc.
-
- This code is licensed under the same terms as WebM:
- Software License Agreement: http://www.webmproject.org/license/software/
- Additional IP Rights Grant: http://www.webmproject.org/license/additional/
*===========================================================================*/
/*
* Encoding/Decoding of WebP still image compression format.
*
* 1. WebPDecode: Takes an array of bytes (string) corresponding to the WebP
* encoded image and generates output in the YUV format with
* the color components U, V subsampled to 1/2 resolution along
* each dimension.
*
* 2. YUV420toRGBA: Converts from YUV (with color subsampling) such as produced
* by the WebPDecode routine into 32 bits per pixel RGBA data
* array. This data array can be directly used by the Leptonica
* Pix in-memory image format.
*
* 3. WebPEncode: Takes a Y, U, V data buffers (with color components U and V
* subsampled to 1/2 resolution) and generates the WebP string
*
* 4. RGBAToYUV420: Generates Y, U, V data (with color subsampling) from 32 bits
* per pixel RGBA data buffer. The resulting YUV data can be
* directly fed into the WebPEncode routine.
*
* 5. AdjustColorspace:
*
* 6. AdjustColorspaceBack:
*/
#ifndef THIRD_PARTY_VP8_VP8IMG_H_
#define THIRD_PARTY_VP8_VP8IMG_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef unsigned char uint8;
typedef unsigned int uint32;
typedef enum WebPResultType {
webp_success = 0,
webp_failure = -1
} WebPResult;
/* Takes an array of bytes (string) corresponding to the WebP
* encoded image and generates output in the YUV format with
* the color components U, V subsampled to 1/2 resolution along
* each dimension.
* Input:
* 1. data: the WebP data stream (array of bytes)
* 2. data_size: count of bytes in the WebP data stream
*
* Output:
* 3. p_Y/p_U/p_V : pointer to the Y/U/V data buffer (this routine will
* allocate memory for the buffer, fill the buffer with
* appropriate data and transfer owner ship of the buffer
* to caller. Caller is responsible for freeing the memory).
* Note that the memory for Y, U, V buffers is alloacted
* in one chunk, hence one should call free(*p_Y) only.
* Do not try to free the U and V buffers.
*
* 6. p_width: this routine returns the width of the decoded image here
* 7. p_height: this routine returns the width of the decoded image here
* Return: success/failure
*/
WebPResult WebPDecode(const uint8* data,
int data_size,
uint8** p_Y,
uint8** p_U,
uint8** p_V,
int* p_width,
int* p_height);
/* WebPEncode: Takes a Y, U, V data buffers (with color components U and V
* subsampled to 1/2 resolution) and generates the WebP string.
* Input:
* 1, 2, 3. Y, U, V: The input YUV data buffers
* 4, 5. y_width, y_height: The width and height of the image whose data
* is in Y, U, V. This matches the Y plane. The U
* and V planes typically have 1/2 width and
* height.
* 6. y_stride: The width (in bytes) of one row of Y data. This may not
* match width if there is end of row padding (e.g., for 32
* bit row alignment).
* 7. QP: the quantization parameter. This parameter controls the
* compression vs quality tradeoff. Use smaller numbers for better
* quality (compression will be lesser) and vice versa. 20 is a
* good optimal value.
* Output:
* 8. p_out: the output array of bytes corresponding to the encoded WebP
* image. This routine allocates memory for the buffer, fills it
* with appropriate values and transfers ownership to caller.
* Caller responsible for freeing of memory.
* Return: success/failure
*/
WebPResult WebPEncode(const uint8* Y,
const uint8* U,
const uint8* V,
int y_width,
int y_height,
int y_stride,
int uv_width,
int uv_height,
int uv_stride,
int QP,
unsigned char** p_out,
int* p_out_size_bytes,
double* psnr);
/* Converts from YUV (with color subsampling) such as produced by the WebPDecode
* routine into 32 bits per pixel RGBA data array. This data array can be
* directly used by the Leptonica Pix in-memory image format.
* Input:
* 1, 2, 3. Y, U, V: the input data buffers
* 4. pixwpl: the desired words per line corresponding to the supplied
* output pixdata.
* 5. width, height: the dimensions of the image whose data resides in Y,
* U, V.
* Output:
* 6. pixdata: the output data buffer. Caller should allocate
* height * pixwpl bytes of memory before calling this routine.
*/
void YUV420toRGBA(uint8* Y,
uint8* U,
uint8* V,
int words_per_line,
int width,
int height,
uint32* pixdata);
/* Generates Y, U, V data (with color subsampling) from 32 bits
* per pixel RGBA data buffer. The resulting YUV data can be directly fed into
* the WebPEncode routine.
* Input:
* 1. pix data input rgba data buffer
* 2. words per line corresponding to pixdata
* 3, 4. image width and height respectively
* Output:
* 5, 6, 7. Output YUV data buffers
*/
void RGBAToYUV420(uint32* pixdata,
int words_per_line,
int width,
int height,
uint8* Y,
uint8* U,
uint8* V);
/* This function adjust from YUV420J (jpeg decoding) to YUV420 (webp input)
* Hints: http://en.wikipedia.org/wiki/YCbCr
*/
void AdjustColorspace(uint8* Y, uint8* U, uint8* V, int width, int height);
/* Inverse function: convert from YUV420 to YUV420J */
void AdjustColorspaceBack(uint8* Y, uint8* U, uint8* V, int width, int height);
/* Checks WebP image header and outputs height and width information of
* the image
*
* Input:
* 1. data: the WebP data stream (array of bytes)
* 2. data_size: count of bytes in the WebP data stream
*
* Outut:
* width/height: width and height of the image
*
* Return: success/failure
*/
WebPResult WebPGetInfo(const uint8* data,
int data_size,
int *width,
int *height);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* THIRD_PARTY_VP8_VP8IMG_H_ */