Lines Matching full:picture
84 WEBP_HINT_PICTURE, // digital picture, like portrait, inner shot
118 int show_compressed; // if true, export the compressed picture back.
137 // of source picture. These presets are used when calling WebPConfigPreset().
140 WEBP_PRESET_PICTURE, // digital picture, like portrait, inner shot
206 // data/data_size is the segment of data to write, and 'picture' is for
207 // reference (and so one can make use of picture->custom_ptr).
209 const WebPPicture* picture);
227 const WebPPicture* picture);
232 typedef int (*WebPProgressHook)(int percent, const WebPPicture* picture);
257 VP8_ENC_ERROR_BAD_DIMENSION, // picture has invalid width/height
343 // 'picture' object.
345 static WEBP_INLINE int WebPPictureInit(WebPPicture* picture) { in WebPPictureInit() argument
346 return WebPPictureInitInternal(picture, WEBP_ENCODER_ABI_VERSION); in WebPPictureInit()
352 // Convenience allocation / deallocation based on picture->width/height:
356 WEBP_EXTERN(int) WebPPictureAlloc(WebPPicture* picture);
359 // Note that this function does _not_ free the memory used by the 'picture'
361 // Besides memory (which is reclaimed) all other fields of 'picture' are
363 WEBP_EXTERN(void) WebPPictureFree(WebPPicture* picture);
366 // will fully own the copied pixels (this is not a view). The 'dst' picture need
380 // self-crops a picture to the rectangle defined by top/left/width/height.
382 // outside of the source picture.
385 // must be fully be comprised inside the 'src' source picture. If the source
386 // picture uses the YUV420 colorspace, the top and left coordinates will be
388 WEBP_EXTERN(int) WebPPictureCrop(WebPPicture* picture,
391 // Extracts a view from 'src' picture into 'dst'. The rectangle for the view
394 // the 'src' source picture. If the source picture uses the YUV420 colorspace,
396 // Picture 'src' must out-live 'dst' picture. Self-extraction of view is allowed
398 // the original dimension will be lost). Picture 'dst' need not be initialized
406 // Returns true if the 'picture' is actually a view and therefore does
408 WEBP_EXTERN(int) WebPPictureIsView(const WebPPicture* picture);
410 // Rescale a picture to new dimension width x height.
420 WebPPicture* picture, const uint8_t* rgb, int rgb_stride);
423 WebPPicture* picture, const uint8_t* rgba, int rgba_stride);
428 WebPPicture* picture, const uint8_t* rgbx, int rgbx_stride);
432 WebPPicture* picture, const uint8_t* bgr, int bgr_stride);
434 WebPPicture* picture, const uint8_t* bgra, int bgra_stride);
436 WebPPicture* picture, const uint8_t* bgrx, int bgrx_stride);
438 // Converts picture->argb data to the YUVA format specified by 'colorspace'.
439 // Upon return, picture->use_argb is set to false. The presence of real
443 WEBP_EXTERN(int) WebPPictureARGBToYUVA(WebPPicture* picture,
446 // Converts picture->yuv to picture->argb and sets picture->use_argb to true.
452 WEBP_EXTERN(int) WebPPictureYUVAToARGB(WebPPicture* picture);
457 WEBP_EXTERN(void) WebPCleanupTransparentArea(WebPPicture* picture);
459 // Scan the picture 'picture' for the presence of non fully opaque alpha values.
462 WEBP_EXTERN(int) WebPPictureHasTransparency(const WebPPicture* picture);
467 // Main encoding call, after config and picture have been initialized.
468 // 'picture' must be less than 16384x16384 in dimension (cf WEBP_MAX_DIMENSION),
471 // In case of error, picture->error_code is updated accordingly.
472 // 'picture' can hold the source samples in both YUV(A) or ARGB input, depending
473 // on the value of 'picture->use_argb'. It is highly recommended to use
477 WEBP_EXTERN(int) WebPEncode(const WebPConfig* config, WebPPicture* picture);