A reference counted YUV pixel buffer.
More...
Go to the source code of this file.
|
kvz_picture * | kvz_image_alloc_420 (const int32_t width, const int32_t height) |
| Allocate a new image with 420. More...
|
|
kvz_picture * | kvz_image_alloc (enum kvz_chroma_format chroma_format, const int32_t width, const int32_t height) |
| Allocate a new image. More...
|
|
void | kvz_image_free (kvz_picture *im) |
| Free an image. More...
|
|
kvz_picture * | kvz_image_copy_ref (kvz_picture *im) |
| Get a new pointer to an image. More...
|
|
kvz_picture * | kvz_image_make_subimage (kvz_picture *const orig_image, const unsigned x_offset, const unsigned y_offset, const unsigned width, const unsigned height) |
|
yuv_t * | kvz_yuv_t_alloc (int luma_size, int chroma_size) |
|
void | kvz_yuv_t_free (yuv_t *yuv) |
|
unsigned | kvz_image_calc_sad (const kvz_picture *pic, const kvz_picture *ref, int pic_x, int pic_y, int ref_x, int ref_y, int block_width, int block_height, optimized_sad_func_ptr_t optimized_sad) |
| Calculate interpolated SAD between two blocks. More...
|
|
unsigned | kvz_image_calc_satd (const kvz_picture *pic, const kvz_picture *ref, int pic_x, int pic_y, int ref_x, int ref_y, int block_width, int block_height) |
| Calculate interpolated SATD between two blocks. More...
|
|
void | kvz_pixels_blit (const kvz_pixel *orig, kvz_pixel *dst, unsigned width, unsigned height, unsigned orig_stride, unsigned dst_stride) |
|
◆ kvz_image_alloc()
- Returns
- image pointer or NULL on failure
◆ kvz_image_alloc_420()
kvz_picture * kvz_image_alloc_420 |
( |
const int32_t |
width, |
|
|
const int32_t |
height |
|
) |
| |
This function signature is part of the libkvz API.
- Returns
- image pointer or NULL on failure
◆ kvz_image_calc_sad()
- Parameters
-
pic | Image for the block we are trying to find. |
ref | Image where we are trying to find the block. |
- Returns
- Sum of absolute differences
◆ kvz_image_calc_satd()
unsigned kvz_image_calc_satd |
( |
const kvz_picture * |
pic, |
|
|
const kvz_picture * |
ref, |
|
|
int |
pic_x, |
|
|
int |
pic_y, |
|
|
int |
ref_x, |
|
|
int |
ref_y, |
|
|
int |
block_width, |
|
|
int |
block_height |
|
) |
| |
- Parameters
-
pic | Image for the block we are trying to find. |
ref | Image where we are trying to find the block. |
◆ kvz_image_copy_ref()
Increment reference count and return the image.
◆ kvz_image_free()
Decrement reference count of the image and deallocate associated memory if no references exist any more.
- Parameters
-
◆ kvz_image_make_subimage()
kvz_picture * kvz_image_make_subimage |
( |
kvz_picture *const |
orig_image, |
|
|
const unsigned |
x_offset, |
|
|
const unsigned |
y_offset, |
|
|
const unsigned |
width, |
|
|
const unsigned |
height |
|
) |
| |
◆ kvz_pixels_blit()
void kvz_pixels_blit |
( |
const kvz_pixel * |
orig, |
|
|
kvz_pixel * |
dst, |
|
|
unsigned |
width, |
|
|
unsigned |
height, |
|
|
unsigned |
orig_stride, |
|
|
unsigned |
dst_stride |
|
) |
| |
◆ kvz_yuv_t_alloc()
yuv_t * kvz_yuv_t_alloc |
( |
int |
luma_size, |
|
|
int |
chroma_size |
|
) |
| |
◆ kvz_yuv_t_free()
void kvz_yuv_t_free |
( |
yuv_t * |
yuv | ) |
|