You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
457 B
C++
21 lines
457 B
C++
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <cstdint>
|
|
#include <cstddef>
|
|
|
|
// YUV conversion utilities
|
|
namespace utils {
|
|
|
|
// Convert YUV420 to NV21
|
|
void YUV420ToNV21(const uint8_t* yuv420, uint8_t* nv21, int width, int height);
|
|
|
|
// Convert YUV420 to NV12
|
|
void YUV420ToNV12(const uint8_t* yuv420, uint8_t* nv12, int width, int height);
|
|
|
|
// Get current timestamp in microseconds
|
|
int64_t getCurrentTimeMicro();
|
|
|
|
} // namespace utils
|
|
|
|
#endif // UTILS_H
|