diff options
Diffstat (limited to 'tensorflow/examples/android/jni/rgb2yuv.h')
-rwxr-xr-x | tensorflow/examples/android/jni/rgb2yuv.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tensorflow/examples/android/jni/rgb2yuv.h b/tensorflow/examples/android/jni/rgb2yuv.h new file mode 100755 index 0000000000..e5eb5aa419 --- /dev/null +++ b/tensorflow/examples/android/jni/rgb2yuv.h @@ -0,0 +1,23 @@ +#ifndef ORG_TENSORFLOW_JNI_IMAGEUTILS_RGB2YUV_H_ +#define ORG_TENSORFLOW_JNI_IMAGEUTILS_RGB2YUV_H_ + +#include "tensorflow/core/platform/port.h" + +using namespace tensorflow; + +#ifdef __cplusplus +extern "C" { +#endif + +void ConvertARGB8888ToYUV420SP(const uint32* const input, uint8* const output, + int width, int height); + +void ConvertRGB565ToYUV420SP(const uint16* const input, + uint8* const output, + const int width, const int height); + +#ifdef __cplusplus +} +#endif + +#endif // ORG_TENSORFLOW_JNI_IMAGEUTILS_RGB2YUV_H_ |