hw: add draft rockchip-mpp hw video encoding

This commit is contained in:
Artem
2024-11-19 22:08:12 +01:00
parent c5f77df6b0
commit fc2273d40b
9 changed files with 429 additions and 32 deletions

10
external/mpp/mpp.h vendored Normal file
View File

@@ -0,0 +1,10 @@
#ifndef MPP_H
#define MPP_H
int video_init(const char *device);
int mpp_init_wrapper(int fps, int bitrate);
int get_sps(unsigned char *output, int *output_len);
int capture_and_encode(unsigned char *output, int *output_len);
void cleanup();
#endif