28 lines
355 B
C++
28 lines
355 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace rk3588 {
|
|
|
|
enum class PixelFormat {
|
|
NV12,
|
|
YUV420,
|
|
RGB,
|
|
BGR,
|
|
UNKNOWN
|
|
};
|
|
|
|
struct Frame {
|
|
int width = 0;
|
|
int height = 0;
|
|
PixelFormat format = PixelFormat::UNKNOWN;
|
|
|
|
int stride = 0;
|
|
|
|
int dma_fd = -1;
|
|
uint64_t pts = 0;
|
|
uint64_t frame_id = 0;
|
|
};
|
|
|
|
} // namespace rk3588
|