Home | History | Annotate | Download | only in webp

Lines Matching refs:picture

87   WEBP_HINT_PICTURE,      // digital picture, like portrait, inner shot
124 int show_compressed; // if true, export the compressed picture back.
154 // of source picture. These presets are used when calling WebPConfigPreset().
157 WEBP_PRESET_PICTURE, // digital picture, like portrait, inner shot
233 // data/data_size is the segment of data to write, and 'picture' is for
234 // reference (and so one can make use of picture->custom_ptr).
236 const WebPPicture* picture);
257 const WebPPicture* picture);
262 typedef int (*WebPProgressHook)(int percent, const WebPPicture* picture);
280 VP8_ENC_ERROR_BAD_DIMENSION, // picture has invalid width/height
364 // 'picture' object.
366 static WEBP_INLINE int WebPPictureInit(WebPPicture* picture) {
367 return WebPPictureInitInternal(picture, WEBP_ENCODER_ABI_VERSION);
373 // Convenience allocation / deallocation based on picture->width/height:
377 WEBP_EXTERN int WebPPictureAlloc(WebPPicture* picture);
380 // Note that this function does _not_ free the memory used by the 'picture'
382 // Besides memory (which is reclaimed) all other fields of 'picture' are
384 WEBP_EXTERN void WebPPictureFree(WebPPicture* picture);
387 // will fully own the copied pixels (this is not a view). The 'dst' picture need
409 // picture will be internally converted to ARGB (just for the measurement).
416 // self-crops a picture to the rectangle defined by top/left/width/height.
418 // outside of the source picture.
421 // must be fully be comprised inside the 'src' source picture. If the source
422 // picture uses the YUV420 colorspace, the top and left coordinates will be
424 WEBP_EXTERN int WebPPictureCrop(WebPPicture* picture,
427 // Extracts a view from 'src' picture into 'dst'. The rectangle for the view
430 // the 'src' source picture. If the source picture uses the YUV420 colorspace,
432 // Picture 'src' must out-live 'dst' picture. Self-extraction of view is allowed
434 // the original dimension will be lost). Picture 'dst' need not be initialized
442 // Returns true if the 'picture' is actually a view and therefore does
444 WEBP_EXTERN int WebPPictureIsView(const WebPPicture* picture);
446 // Rescale a picture to new dimension width x height.
458 WebPPicture* picture, const uint8_t* rgb, int rgb_stride);
461 WebPPicture* picture, const uint8_t* rgba, int rgba_stride);
466 WebPPicture* picture, const uint8_t* rgbx, int rgbx_stride);
470 WebPPicture* picture, const uint8_t* bgr, int bgr_stride);
472 WebPPicture* picture, const uint8_t* bgra, int bgra_stride);
474 WebPPicture* picture, const uint8_t* bgrx, int bgrx_stride);
476 // Converts picture->argb data to the YUV420A format. The 'colorspace'
478 // Upon return, picture->use_argb is set to false. The presence of real
482 WEBP_EXTERN int WebPPictureARGBToYUVA(WebPPicture* picture,
488 // for photographic picture.
490 WebPPicture* picture, WebPEncCSP colorspace, float dithering);
497 WEBP_EXTERN int WebPPictureSharpARGBToYUVA(WebPPicture* picture);
499 WEBP_EXTERN int WebPPictureSmartARGBToYUVA(WebPPicture* picture);
501 // Converts picture->yuv to picture->argb and sets picture->use_argb to true.
507 WEBP_EXTERN int WebPPictureYUVAToARGB(WebPPicture* picture);
512 WEBP_EXTERN void WebPCleanupTransparentArea(WebPPicture* picture);
514 // Scan the picture 'picture' for the presence of non fully opaque alpha values.
517 WEBP_EXTERN int WebPPictureHasTransparency(const WebPPicture* picture);
527 // Main encoding call, after config and picture have been initialized.
528 // 'picture' must be less than 16384x16384 in dimension (cf WEBP_MAX_DIMENSION),
531 // In case of error, picture->error_code is updated accordingly.
532 // 'picture' can hold the source samples in both YUV(A) or ARGB input, depending
533 // on the value of 'picture->use_argb'. It is highly recommended to use
537 WEBP_EXTERN int WebPEncode(const WebPConfig* config, WebPPicture* picture);