libsharpyuv: add colorspace utilities

Change-Id: I620c8593dc81f39e747de5ed354332adb7278bed
This commit is contained in:
Maryla
2022-04-06 15:38:21 +02:00
parent b8bca81fb6
commit 01a05de1a7
11 changed files with 185 additions and 22 deletions

View File

@ -16,6 +16,7 @@
#include <math.h>
#include "sharpyuv/sharpyuv.h"
#include "sharpyuv/sharpyuv_csp.h"
#include "src/enc/vp8i_enc.h"
#include "src/utils/random_utils.h"
#include "src/utils/utils.h"
@ -202,7 +203,8 @@ static int PreprocessARGB(const uint8_t* r_ptr,
const int ok = SharpYuvConvert(
r_ptr, g_ptr, b_ptr, step, rgb_stride, picture->y, picture->y_stride,
picture->u, picture->uv_stride, picture->v, picture->uv_stride,
picture->width, picture->height, SharpYuvGetWebpMatrix());
picture->width, picture->height,
SharpYuvGetConversionMatrix(kSharpYuvMatrixWebp));
if (!ok) {
return WebPEncodingSetError(picture, VP8_ENC_ERROR_OUT_OF_MEMORY);
}