Searched refs:SAFE_ALLOC (Results 1 – 1 of 1) sorted by relevance
/external/webp/sharpyuv/ |
D | sharpyuv.c | 288 #define SAFE_ALLOC(W, H, T) ((T*)SafeMalloc((W) * (H), sizeof(T))) macro 307 fixed_y_t* const tmp_buffer = SAFE_ALLOC(w * 3, 2, fixed_y_t); // scratch in DoSharpArgbToYuv() 308 fixed_y_t* const best_y_base = SAFE_ALLOC(w, h, fixed_y_t); in DoSharpArgbToYuv() 309 fixed_y_t* const target_y_base = SAFE_ALLOC(w, h, fixed_y_t); in DoSharpArgbToYuv() 310 fixed_y_t* const best_rgb_y = SAFE_ALLOC(w, 2, fixed_y_t); in DoSharpArgbToYuv() 311 fixed_t* const best_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in DoSharpArgbToYuv() 312 fixed_t* const target_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in DoSharpArgbToYuv() 313 fixed_t* const best_rgb_uv = SAFE_ALLOC(uv_w * 3, 1, fixed_t); in DoSharpArgbToYuv() 421 #undef SAFE_ALLOC
|