76 const unsigned x_offset,
77 const unsigned y_offset,
79 const unsigned height);
108 unsigned width,
unsigned height,
109 unsigned orig_stride,
unsigned dst_stride);
Header that is included in every other header.
#define LCU_LUMA_SIZE
Definition: global.h:168
#define LCU_CHROMA_SIZE
Definition: global.h:169
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.
Definition: image.c:451
kvz_picture * kvz_image_alloc(enum kvz_chroma_format chroma_format, const int32_t width, const int32_t height)
Allocate a new image.
Definition: image.c:56
void kvz_yuv_t_free(yuv_t *yuv)
Definition: image.c:218
kvz_picture * kvz_image_copy_ref(kvz_picture *im)
Get a new pointer to an image.
Definition: image.c:150
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.
Definition: image.c:407
yuv_t * kvz_yuv_t_alloc(int luma_size, int chroma_size)
Definition: image.c:199
void kvz_pixels_blit(const kvz_pixel *orig, kvz_pixel *dst, unsigned width, unsigned height, unsigned orig_stride, unsigned dst_stride)
Definition: image.c:547
kvz_picture * kvz_image_alloc_420(const int32_t width, const int32_t height)
Allocate a new image with 420.
Definition: image.c:47
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)
Definition: image.c:159
void kvz_image_free(kvz_picture *im)
Free an image.
Definition: image.c:118
This file defines the public API of Kvazaar when used as a library.
uint8_t kvz_pixel
Definition: kvazaar.h:95
int16_t kvz_pixel_im
Definition: kvazaar.h:100
kvz_chroma_format
Chroma subsampling format used for encoding.
Definition: kvazaar.h:209
uint32_t(* optimized_sad_func_ptr_t)(const kvz_pixel *const, const kvz_pixel *const, const int32_t, const uint32_t, const uint32_t)
Definition: optimized_sad_func_ptr_t.h:13
Struct which contains all picture data.
Definition: kvazaar.h:504
enum kvz_chroma_format chroma_format
Definition: image.h:51
kvz_pixel_im * u
Definition: image.h:64
kvz_pixel_im * v
Definition: image.h:65
int size
Definition: image.h:62
kvz_pixel_im * y
Definition: image.h:63
int size
Definition: image.h:55
kvz_pixel * v
Definition: image.h:58
kvz_pixel * u
Definition: image.h:57
kvz_pixel * y
Definition: image.h:56