display.h 485 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * display.h
  3. *
  4. * Created on: 2021年8月11日
  5. * Author: pengzc
  6. */
  7. #ifndef JNI_DISPLAY_H_
  8. #define JNI_DISPLAY_H_
  9. #include <string>
  10. namespace voip {
  11. enum ImageFormat {
  12. IMAGE_FORMAT_I420,
  13. IMAGE_FORMAT_NV21,
  14. IMAGE_FORMAT_INVALID = 999,
  15. };
  16. int DisplayUpdate(ImageFormat format, const char* image,
  17. int w, int h,
  18. int out_w, int out_h);
  19. /**
  20. * 将视频层置为黑色
  21. */
  22. void DisplayInvalidate(int out_w, int out_h);
  23. }
  24. #endif /* JNI_DISPLAY_H_ */