[DO-977] add libyuv package (!12)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/12
This commit is contained in:
17
recipes/libyuv/all/test_package/test_package.cpp
Normal file
17
recipes/libyuv/all/test_package/test_package.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "libyuv.h"
|
||||
#if HAS_JPEG
|
||||
#include "libyuv/mjpeg_decoder.h"
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
uint8_t in[16] = {};
|
||||
uint8_t out[16] = {};
|
||||
libyuv::ConvertToARGB(in, 16, out, 0, 0, 0, 1, 1, 0, 0,
|
||||
libyuv::RotationMode::kRotate0, 0);
|
||||
#if HAS_JPEG
|
||||
// Test jpeg implementaiton is correctly linked
|
||||
libyuv::MJpegDecoder decoder;
|
||||
decoder.LoadFrame(in, 0);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user