Lines Matching refs:picture

84   WEBP_HINT_PICTURE,      // digital picture, like portrait, inner shot
118 int show_compressed; // if true, export the compressed picture back.
138 // of source picture. These presets are used when calling WebPConfigPreset().
141 WEBP_PRESET_PICTURE, // digital picture, like portrait, inner shot
217 // data/data_size is the segment of data to write, and 'picture' is for
218 // reference (and so one can make use of picture->custom_ptr).
220 const WebPPicture* picture);
247 const WebPPicture* picture);
252 typedef int (*WebPProgressHook)(int percent, const WebPPicture* picture);
270 VP8_ENC_ERROR_BAD_DIMENSION, // picture has invalid width/height
354 // 'picture' object.
356 static WEBP_INLINE int WebPPictureInit(WebPPicture* picture) {
357 return WebPPictureInitInternal(picture, WEBP_ENCODER_ABI_VERSION);
363 // Convenience allocation / deallocation based on picture->width/height:
367 WEBP_EXTERN(int) WebPPictureAlloc(WebPPicture* picture);
370 // Note that this function does _not_ free the memory used by the 'picture'
372 // Besides memory (which is reclaimed) all other fields of 'picture' are
374 WEBP_EXTERN(void) WebPPictureFree(WebPPicture* picture);
377 // will fully own the copied pixels (this is not a view). The 'dst' picture need
391 // self-crops a picture to the rectangle defined by top/left/width/height.
393 // outside of the source picture.
396 // must be fully be comprised inside the 'src' source picture. If the source
397 // picture uses the YUV420 colorspace, the top and left coordinates will be
399 WEBP_EXTERN(int) WebPPictureCrop(WebPPicture* picture,
402 // Extracts a view from 'src' picture into 'dst'. The rectangle for the view
405 // the 'src' source picture. If the source picture uses the YUV420 colorspace,
407 // Picture 'src' must out-live 'dst' picture. Self-extraction of view is allowed
417 // Returns true if the 'picture' is actually a view and therefore does
419 WEBP_EXTERN(int) WebPPictureIsView(const WebPPicture* picture);
421 // Rescale a picture to new dimension width x height.
431 WebPPicture* picture, const uint8_t* rgb, int rgb_stride);
434 WebPPicture* picture, const uint8_t* rgba, int rgba_stride);
439 WebPPicture* picture, const uint8_t* rgbx, int rgbx_stride);
443 WebPPicture* picture, const uint8_t* bgr, int bgr_stride);
445 WebPPicture* picture, const uint8_t* bgra, int bgra_stride);
447 WebPPicture* picture, const uint8_t* bgrx, int bgrx_stride);
449 // Converts picture->argb data to the YUVA format specified by 'colorspace'.
450 // Upon return, picture->use_argb is set to false. The presence of real
454 WEBP_EXTERN(int) WebPPictureARGBToYUVA(WebPPicture* picture,
460 // for photographic picture.
462 WebPPicture* picture, WebPEncCSP colorspace, float dithering);
464 // Converts picture->yuv to picture->argb and sets picture->use_argb to true.
470 WEBP_EXTERN(int) WebPPictureYUVAToARGB(WebPPicture* picture);
475 WEBP_EXTERN(void) WebPCleanupTransparentArea(WebPPicture* picture);
477 // Scan the picture 'picture' for the presence of non fully opaque alpha values.
480 WEBP_EXTERN(int) WebPPictureHasTransparency(const WebPPicture* picture);
490 // Main encoding call, after config and picture have been initialized.
491 // 'picture' must be less than 16384x16384 in dimension (cf WEBP_MAX_DIMENSION),
494 // In case of error, picture->error_code is updated accordingly.
495 // 'picture' can hold the source samples in both YUV(A) or ARGB input, depending
496 // on the value of 'picture->use_argb'. It is highly recommended to use
500 WEBP_EXTERN(int) WebPEncode(const WebPConfig* config, WebPPicture* picture);