v4l2_vidc_extensions.h 885 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef __V4l2_VIDC_EXTENSIONS_H__
  7. #define __V4l2_VIDC_EXTENSIONS_H__
  8. #include <linux/types.h>
  9. #include <linux/v4l2-controls.h>
  10. /* AV1 */
  11. #ifndef V4L2_PIX_FMT_AV1
  12. #define V4L2_PIX_FMT_AV1 v4l2_fourcc('A', 'V', '1', '0')
  13. #endif
  14. #ifndef V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE
  15. #define V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10_STILL_PICTURE (3)
  16. #endif
  17. /* vendor controls start */
  18. #ifdef V4L2_CTRL_CLASS_CODEC
  19. #define V4L2_CID_MPEG_VIDC_BASE (V4L2_CTRL_CLASS_CODEC | 0x2000)
  20. #else
  21. #define V4L2_CID_MPEG_VIDC_BASE (V4L2_CTRL_CLASS_MPEG | 0x2000)
  22. #endif
  23. #define V4L2_MPEG_MSM_VIDC_DISABLE 0
  24. #define V4L2_MPEG_MSM_VIDC_ENABLE 1
  25. #endif