Home
last modified time | relevance | path

Searched refs:pic (Results 1 – 25 of 87) sorted by relevance

1234

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/extras/
A Dextras.c36 width = pic->width; in WebPImportGray()
39 memcpy(pic->y + y * pic->y_stride, gray_data, width); in WebPImportGray()
42 memset(pic->u + (y >> 1) * pic->uv_stride, 128, uv_width); in WebPImportGray()
43 memset(pic->v + (y >> 1) * pic->uv_stride, 128, uv_width); in WebPImportGray()
54 pic->use_argb = 1; in WebPImportRGB565()
56 dst = pic->argb; in WebPImportRGB565()
87 pic->use_argb = 1; in WebPImportRGB4444()
89 dst = pic->argb; in WebPImportRGB4444()
124 if (pic == NULL || indexed == NULL || indexed_stride < pic->width || in WebPImportColorMappedARGB()
128 pic->use_argb = 1; in WebPImportColorMappedARGB()
[all …]
A Dextras.h39 WEBP_EXTERN int WebPImportRGB565(const uint8_t* rgb565, WebPPicture* pic);
43 WEBP_EXTERN int WebPImportRGB4444(const uint8_t* rgb4444, WebPPicture* pic);
52 WebPPicture* pic);
A Dget_disto.c31 static size_t ReadPicture(const char* const filename, WebPPicture* const pic, in ReadPicture() argument
39 pic->use_argb = 1; // force ARGB in ReadPicture()
44 ok = ReadPictureWithWIC(filename, pic, keep_alpha, NULL); in ReadPicture()
48 ok = reader(data, data_size, pic, keep_alpha, NULL); in ReadPicture()
198 static void ConvertToGray(WebPPicture* const pic) { in ConvertToGray() argument
200 assert(pic != NULL); in ConvertToGray()
201 assert(pic->use_argb); in ConvertToGray()
202 for (y = 0; y < pic->height; ++y) { in ConvertToGray()
203 uint32_t* const row = &pic->argb[y * pic->argb_stride]; in ConvertToGray()
204 for (x = 0; x < pic->width; ++x) { in ConvertToGray()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dpicture_rescale_enc.c141 WebPCopyPlane(pic->y + y_offset, pic->y_stride, in WebPPictureCrop()
143 WebPCopyPlane(pic->u + uv_offset, pic->uv_stride, in WebPPictureCrop()
145 WebPCopyPlane(pic->v + uv_offset, pic->uv_stride, in WebPPictureCrop()
150 WebPCopyPlane(pic->a + a_offset, pic->a_stride, in WebPPictureCrop()
160 *pic = tmp; in WebPPictureCrop()
187 WebPMultARGBRows((uint8_t*)pic->argb, pic->argb_stride * sizeof(*pic->argb), in AlphaMultiplyARGB()
188 pic->width, pic->height, inverse); in AlphaMultiplyARGB()
193 WebPMultRows(pic->y, pic->y_stride, pic->a, pic->a_stride, in AlphaMultiplyY()
194 pic->width, pic->height, inverse); in AlphaMultiplyY()
295 (void)pic; in WebPPictureCrop()
[all …]
A Dpicture_tools_enc.c89 w = pic->width / SIZE; in WebPCleanupTransparentArea()
90 h = pic->height / SIZE; in WebPCleanupTransparentArea()
93 if (pic->use_argb) { in WebPCleanupTransparentArea()
99 if (IsTransparentARGBArea(pic->argb + off, pic->argb_stride, SIZE)) { in WebPCleanupTransparentArea()
104 FlattenARGB(pic->argb + off, argb_value, pic->argb_stride, SIZE); in WebPCleanupTransparentArea()
171 assert(pic != NULL && pic->use_argb); in WebPCleanupTransparentAreaLossless()
172 w = pic->width; in WebPCleanupTransparentAreaLossless()
173 h = pic->height; in WebPCleanupTransparentAreaLossless()
174 argb = pic->argb; in WebPCleanupTransparentAreaLossless()
204 if (!pic->use_argb) { in WebPBlendAlpha()
[all …]
A Dsyntax_enc.c31 return !!pic->writer(pad_byte, 1, pic); in PutPaddingByte()
45 if (!pic->writer(riff, sizeof(riff), pic)) { in PutRIFFHeader()
59 assert(pic->width >= 1 && pic->height >= 1); in PutVP8XHeader()
70 if (!pic->writer(vp8x, sizeof(vp8x), pic)) { in PutVP8XHeader()
86 if (!pic->writer(alpha_chunk_hdr, sizeof(alpha_chunk_hdr), pic)) { in PutAlphaChunk()
91 if (!pic->writer(enc->alpha_data_, enc->alpha_data_size_, pic)) { in PutAlphaChunk()
109 if (!pic->writer(vp8_chunk_hdr, sizeof(vp8_chunk_hdr), pic)) { in PutVP8Header()
142 if (!pic->writer(vp8_frm_hdr, sizeof(vp8_frm_hdr), pic)) { in PutVP8FrameHeader()
261 return p ? pic->writer(buf, 3 * p, pic) : 1; in EmitPartitionsSize()
362 && pic->writer(part0, size0, pic) in VP8EncWrite()
[all …]
A Dwebp_enc.c310 ((WebPPicture*)pic)->error_code = error; in WebPEncodingSetError()
318 if (pic->progress_hook && !pic->progress_hook(percent, pic)) { in WebPReportProgress()
330 if (pic == NULL) return 0; in WebPEncode()
339 if (pic->width <= 0 || pic->height <= 0) { in WebPEncode()
342 if (pic->width > WEBP_MAX_DIMENSION || pic->height > WEBP_MAX_DIMENSION) { in WebPEncode()
346 if (pic->stats != NULL) memset(pic->stats, 0, sizeof(*pic->stats)); in WebPEncode()
351 if (pic->use_argb || pic->y == NULL || pic->u == NULL || pic->v == NULL) { in WebPEncode()
373 WebPCleanupTransparentArea(pic); in WebPEncode()
376 enc = InitVP8Encoder(config, pic); in WebPEncode()
398 if (pic->argb == NULL && !WebPPictureYUVAToARGB(pic)) { in WebPEncode()
[all …]
A Diterator_enc.c134 const WebPPicture* const pic = enc->pic_; in VP8IteratorImport() local
135 const uint8_t* const ysrc = pic->y + (y * pic->y_stride + x) * 16; in VP8IteratorImport()
136 const uint8_t* const usrc = pic->u + (y * pic->uv_stride + x) * 8; in VP8IteratorImport()
137 const uint8_t* const vsrc = pic->v + (y * pic->uv_stride + x) * 8; in VP8IteratorImport()
138 const int w = MinSize(pic->width - x * 16, 16); in VP8IteratorImport()
195 const WebPPicture* const pic = enc->pic_; in VP8IteratorExport() local
196 uint8_t* const ydst = pic->y + (y * pic->y_stride + x) * 16; in VP8IteratorExport()
197 uint8_t* const udst = pic->u + (y * pic->uv_stride + x) * 8; in VP8IteratorExport()
198 uint8_t* const vdst = pic->v + (y * pic->uv_stride + x) * 8; in VP8IteratorExport()
199 int w = (pic->width - x * 16); in VP8IteratorExport()
[all …]
A Dpicture_enc.c235 WebPPicture pic; in Encode() local
243 !WebPPictureInit(&pic)) { in Encode()
248 pic.use_argb = !!lossless; in Encode()
249 pic.width = width; in Encode()
250 pic.height = height; in Encode()
251 pic.writer = WebPMemoryWrite; in Encode()
252 pic.custom_ptr = &wrt; in Encode()
255 ok = import(&pic, rgba, stride) && WebPEncode(&config, &pic); in Encode()
256 WebPPictureFree(&pic); in Encode()
A Dalpha_enc.c296 const WebPPicture* const pic = enc->pic_; in EncodeAlpha() local
297 const int width = pic->width; in EncodeAlpha()
298 const int height = pic->height; in EncodeAlpha()
308 assert(enc != NULL && pic != NULL && pic->a != NULL); in EncodeAlpha()
311 assert(pic->a_stride >= width); in EncodeAlpha()
333 WebPCopyPlane(pic->a, pic->a_stride, quant_alpha, width, width, height); in EncodeAlpha()
348 output_size, pic->stats); in EncodeAlpha()
350 if (pic->stats != NULL) { // need stats? in EncodeAlpha()
351 pic->stats->coded_size += (int)(*output_size); in EncodeAlpha()
A Dvp8l_enc.c371 const int width = pic->width; in EncoderAnalyze()
372 const int height = pic->height; in EncoderAnalyze()
379 assert(pic != NULL && pic->argb != NULL); in EncoderAnalyze()
387 pic->width, pic->height); in EncoderAnalyze()
399 if (!AnalyzeEntropy(pic->argb, width, height, pic->argb_stride, use_palette, in EncoderAnalyze()
434 const int width = pic->width; in EncoderInit()
435 const int height = pic->height; in EncoderInit()
1134 if (!pic->writer(riff, sizeof(riff), pic)) { in WriteRiffHeader()
1170 if (!pic->writer(webpll_data, webpll_size, pic)) { in WriteImage()
1177 if (!pic->writer(pad_byte, 1, pic)) { in WriteImage()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A Dwebpdec.c169 pic->width = bitstream->width; in ReadWebP()
171 if (pic->use_argb) { in ReadWebP()
183 ok = WebPPictureAlloc(pic); in ReadWebP()
188 if (pic->use_argb) { in ReadWebP()
207 output_buffer->u.YUVA.y_size = pic->height * pic->y_stride; in ReadWebP()
208 output_buffer->u.YUVA.u_size = (pic->height + 1) / 2 * pic->uv_stride; in ReadWebP()
209 output_buffer->u.YUVA.v_size = (pic->height + 1) / 2 * pic->uv_stride; in ReadWebP()
210 output_buffer->u.YUVA.a_size = pic->height * pic->a_stride; in ReadWebP()
219 uint32_t* argb = pic->argb; in ReadWebP()
222 argb += pic->argb_stride; in ReadWebP()
[all …]
A Dtiffdec.c155 WebPPicture* const pic, int keep_alpha, in ReadTIFF() argument
168 if (data == NULL || data_size == 0 || data_size > INT_MAX || pic == NULL) { in ReadTIFF()
216 pic->width = width; in ReadTIFF()
217 pic->height = height; in ReadTIFF()
233 ? WebPPictureImportRGBA(pic, (const uint8_t*)raster, stride) in ReadTIFF()
234 : WebPPictureImportRGBX(pic, (const uint8_t*)raster, stride); in ReadTIFF()
247 WebPPictureFree(pic); in ReadTIFF()
257 struct WebPPicture* const pic, int keep_alpha, in ReadTIFF() argument
261 (void)pic; in ReadTIFF()
A Dpngdec.c231 struct WebPPicture* const pic, in ReadPNG() argument
246 if (data == NULL || data_size == 0 || pic == NULL) return 0; in ReadPNG()
333 pic->width = (int)width; in ReadPNG()
334 pic->height = (int)height; in ReadPNG()
335 ok = has_alpha ? WebPPictureImportRGBA(pic, rgb, (int)stride) in ReadPNG()
336 : WebPPictureImportRGB(pic, rgb, (int)stride); in ReadPNG()
352 struct WebPPicture* const pic, in ReadPNG() argument
356 (void)pic; in ReadPNG()
A Djpegdec.c258 WebPPicture* const pic, int keep_alpha, in ReadJPEG() argument
269 if (data == NULL || data_size == 0 || pic == NULL) return 0; in ReadJPEG()
335 pic->width = width; in ReadJPEG()
336 pic->height = height; in ReadJPEG()
337 ok = WebPPictureImportRGB(pic, rgb, (int)stride); in ReadJPEG()
346 struct WebPPicture* const pic, int keep_alpha, in ReadJPEG() argument
350 (void)pic; in ReadJPEG()
A Dwicdec.c246 WebPPicture* const pic, int keep_alpha, in ReadPictureWithWIC() argument
282 if (filename == NULL || pic == NULL) return 0; in ReadPictureWithWIC()
359 pic->width = width; in ReadPictureWithWIC()
360 pic->height = height; in ReadPictureWithWIC()
361 pic->use_argb = 1; // For WIC, we always force to argb in ReadPictureWithWIC()
362 ok = importer->import(pic, rgb, (int)stride); in ReadPictureWithWIC()
385 struct WebPPicture* const pic, int keep_alpha, in ReadPictureWithWIC() argument
388 (void)pic; in ReadPictureWithWIC()
A Dpnmdec.c177 WebPPicture* const pic, int keep_alpha, in ReadPNM() argument
200 if (pic == NULL) goto End; in ReadPNM()
242 pic->width = info.width; in ReadPNM()
243 pic->height = info.height; in ReadPNM()
244 ok = (info.depth == 4) ? WebPPictureImportRGBA(pic, rgb, (int)stride) in ReadPNM()
245 : WebPPictureImportRGB(pic, rgb, (int)stride); in ReadPNM()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/examples/
A Dcwebp.c51 const int y_plane_size = pic->width * pic->height; in ReadYUV()
62 pic->use_argb = 0; in ReadYUV()
64 ImgIoUtilCopyPlane(data, pic->width, pic->y, pic->y_stride, in ReadYUV()
65 pic->width, pic->height); in ReadYUV()
67 pic->u, pic->uv_stride, uv_width, uv_height); in ReadYUV()
69 pic->v, pic->uv_stride, uv_width, uv_height); in ReadYUV()
80 if (pic->width != 0 && pic->height != 0) { in ReadPicture()
110 if (pic->width == 0 || pic->height == 0) { in ReadPicture()
194 8.f * stats->coded_size / pic->width / pic->height); in PrintExtraInfoLossless()
212 pic->width, pic->height, in PrintExtraInfoLossy()
[all …]
A Dimg2webp.c81 ok = ReadPictureWithWIC(filename, pic, 1, NULL); in ReadImage()
86 ok = reader(data, data_size, pic, 1, NULL); in ReadImage()
137 WebPPicture pic; in main() local
155 !WebPPictureInit(&pic)) { in main()
253 pic.use_argb = 1; in main()
258 width = pic.width; in main()
259 height = pic.height; in main()
268 ok = (width == pic.width && height == pic.height); in main()
272 pic_num, pic.width, pic.height, width, height); in main()
277 ok = WebPAnimEncoderAdd(enc, &pic, timestamp_ms, &config); in main()
[all …]
A Dvwebp.c69 const WebPDecBuffer* pic; member
78 WebPFreeDecBuffer((WebPDecBuffer*)kParams.pic); in ClearPreviousPic()
79 kParams.pic = NULL; in ClearPreviousPic()
179 kParams.pic = output_buffer; in Decode()
357 const WebPDecBuffer* const pic = kParams.pic; in HandleDisplay() local
361 if (pic == NULL) return; in HandleDisplay()
369 glPixelStorei(GL_UNPACK_ROW_LENGTH, pic->u.RGBA.stride / 4); in HandleDisplay()
391 glDrawPixels(pic->width, pic->height, in HandleDisplay()
393 (GLvoid*)pic->u.RGBA.rgba); in HandleDisplay()
401 snprintf(tmp, sizeof(tmp), "Dimension:%d x %d", pic->width, pic->height); in HandleDisplay()
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/gregbook/
A DMakefile.mingw3268 ROBJSd = $(RPNG)$(O) readpng.pic$(O)
69 ROBJS2d = $(RPNG2)$(O) readpng2.pic$(O)
70 WOBJSd = $(WPNG)$(O) writepng.pic$(O)
91 %.pic$(O): %.c
121 readpng$(O) readpng.pic$(O): readpng.c readpng.h
122 readpng2$(O) readpng2.pic$(O): readpng2.c readpng2.h
123 writepng$(O) writepng.pic$(O): writepng.c writepng.h
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dutils.c250 int WebPGetColorPalette(const WebPPicture* const pic, uint32_t* const palette) { in WebPGetColorPalette() argument
256 const uint32_t* argb = pic->argb; in WebPGetColorPalette()
257 const int width = pic->width; in WebPGetColorPalette()
258 const int height = pic->height; in WebPGetColorPalette()
260 assert(pic != NULL); in WebPGetColorPalette()
261 assert(pic->use_argb); in WebPGetColorPalette()
289 argb += pic->argb_stride; in WebPGetColorPalette()
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/scripts/
A Dmakefile.darwin73 OBJSDLL = $(OBJS:.o=.pic.o)
75 .SUFFIXES: .c .o .pic.o
80 .c.pic.o:
A Dmakefile.hpux77 OBJSDLL = $(OBJS:.o=.pic.o)
79 .SUFFIXES: .c .o .pic.o
84 .c.pic.o:
A Dmakefile.sco73 OBJSDLL = $(OBJS:.o=.pic.o)
75 .SUFFIXES: .c .o .pic.o
80 .c.pic.o:

Completed in 3713 milliseconds

1234