MartinEesmaa

error dav1d 1.0.0 for ffmpeg compile of mpv-android-vvc

Jun 10th, 2022
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 0 0
  1. src/libavcodec/libdav1d.c:148:7: error: no member named 'n_tile_threads' in 'struct Dav1dSettings'
  2. s.n_tile_threads = dav1d->tile_threads
  3. ~ ^
  4. CC libavcodec/mediacodecdec.o
  5. src/libavcodec/libdav1d.c:150:52: error: use of undeclared identifier 'DAV1D_MAX_TILE_THREADS'
  6. : FFMIN(floor(sqrt(threads)), DAV1D_MAX_TILE_THREADS);
  7. ^
  8. src/libavcodec/libdav1d.c:150:52: error: use of undeclared identifier 'DAV1D_MAX_TILE_THREADS'
  9. src/libavcodec/libdav1d.c:151:7: error: no member named 'n_frame_threads' in 'struct Dav1dSettings'
  10. s.n_frame_threads = dav1d->frame_threads
  11. ~ ^
  12. src/libavcodec/libdav1d.c:153:48: error: no member named 'n_tile_threads' in 'struct Dav1dSettings'
  13. : FFMIN(ceil(threads / s.n_tile_threads), DAV1D_MAX_FRAME_THREADS);
  14. ~ ^
  15. src/libavutil/common.h:105:22: note: expanded from macro 'FFMIN'
  16. #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  17. ^
  18. CC libavcodec/mediacodecdec_common.o
  19. src/libavcodec/libdav1d.c:153:65: error: use of undeclared identifier 'DAV1D_MAX_FRAME_THREADS'; did you mean 'DAV1D_OBU_FRAME_HDR'?
  20. : FFMIN(ceil(threads / s.n_tile_threads), DAV1D_MAX_FRAME_THREADS);
  21. ^~~~~~~~~~~~~~~~~~~~~~~
  22. DAV1D_OBU_FRAME_HDR
  23. src/libavutil/common.h:105:28: note: expanded from macro 'FFMIN'
  24. #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  25. ^
  26. /home/martineesmaa/mpv-android-vvc/buildscripts/prefix/arm64/include/dav1d/headers.h:48:5: note: 'DAV1D_OBU_FRAME_HDR' declared here
  27. DAV1D_OBU_FRAME_HDR = 3,
  28. ^
  29. src/libavcodec/libdav1d.c:153:65: error: use of undeclared identifier 'DAV1D_MAX_FRAME_THREADS'; did you mean 'DAV1D_OBU_FRAME_HDR'?
  30. : FFMIN(ceil(threads / s.n_tile_threads), DAV1D_MAX_FRAME_THREADS);
  31. ^~~~~~~~~~~~~~~~~~~~~~~
  32. DAV1D_OBU_FRAME_HDR
  33. src/libavutil/common.h:105:34: note: expanded from macro 'FFMIN'
  34. #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  35. ^
  36. /home/martineesmaa/mpv-android-vvc/buildscripts/prefix/arm64/include/dav1d/headers.h:48:5: note: 'DAV1D_OBU_FRAME_HDR' declared here
  37. DAV1D_OBU_FRAME_HDR = 3,
  38. ^
  39. src/libavcodec/libdav1d.c:153:48: error: no member named 'n_tile_threads' in 'struct Dav1dSettings'
  40. : FFMIN(ceil(threads / s.n_tile_threads), DAV1D_MAX_FRAME_THREADS);
  41. ~ ^
  42. src/libavutil/common.h:105:40: note: expanded from macro 'FFMIN'
  43. #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  44. ^
  45. src/libavcodec/libdav1d.c:155:14: error: no member named 'n_frame_threads' in 'struct Dav1dSettings'
  46. s.n_frame_threads, s.n_tile_threads);
  47. ~ ^
  48. src/libavcodec/libdav1d.c:155:33: error: no member named 'n_tile_threads' in 'struct Dav1dSettings'
  49. s.n_frame_threads, s.n_tile_threads);
  50. ~ ^
  51. CC libavcodec/metasound.o
  52. src/libavcodec/libdav1d.c:462:94: error: use of undeclared identifier 'DAV1D_MAX_TILE_THREADS'
  53. { "tilethreads", "Tile threads", OFFSET(tile_threads), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, DAV1D_MAX_TILE_THREADS, VD },
  54. ^
  55. CC libavcodec/metasound_data.o
  56. src/libavcodec/libdav1d.c:463:97: error: use of undeclared identifier 'DAV1D_MAX_FRAME_THREADS'; did you mean 'DAV1D_OBU_FRAME_HDR'?
  57. { "framethreads", "Frame threads", OFFSET(frame_threads), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, DAV1D_MAX_FRAME_THREADS, VD },
  58. ^~~~~~~~~~~~~~~~~~~~~~~
  59. DAV1D_OBU_FRAME_HDR
  60. /home/martineesmaa/mpv-android-vvc/buildscripts/prefix/arm64/include/dav1d/headers.h:48:5: note: 'DAV1D_OBU_FRAME_HDR' declared here
  61. CC libavcodec/microdvddec.o
  62. DAV1D_OBU_FRAME_HDR = 3,
  63. ^
  64. 12 errors generated.
  65. make: *** [src/ffbuild/common.mak:67: libavcodec/libdav1d.o] Error 1
  66. make: *** Waiting for unfinished jobs....
  67. src/libavcodec/libopenvvc.c:155:40: warning: incompatible pointer types passing 'const OVFrame *' (aka 'const struct Frame *') to parameter of type 'uint8_t *' (aka 'unsigned char *') [-Wincompatible-pointer-types]
  68. avframe->buf[0] = av_buffer_create(ovframe, sizeof(ovframe),
  69. ^~~~~~~
  70. src/libavutil/buffer.h:146:40: note: passing argument to parameter 'data' here
  71. AVBufferRef *av_buffer_create(uint8_t *data, int size,
  72. ^
  73. src/libavcodec/libopenvvc.c:158:79: warning: implicit conversion from enumeration type 'enum AVPixelFormat' to different enumeration type 'enum AVPictureType' [-Wenum-conversion]
  74. avframe->pict_type = ovframe->frame_info.chroma_format == OV_YUV_420_P8 ? AV_PIX_FMT_YUV420P : AV_PIX_FMT_YUV420P10;
  75. ~ ^~~~~~~~~~~~~~~~~~
  76. src/libavcodec/libopenvvc.c:158:100: warning: implicit conversion from enumeration type 'enum AVPixelFormat' to different enumeration type 'enum AVPictureType' [-Wenum-conversion]
  77. avframe->pict_type = ovframe->frame_info.chroma_format == OV_YUV_420_P8 ? AV_PIX_FMT_YUV420P : AV_PIX_FMT_YUV420P10;
  78. ~ ^~~~~~~~~~~~~~~~~~~~
  79. src/libavutil/pixfmt.h:399:30: note: expanded from macro 'AV_PIX_FMT_YUV420P10'
  80. #define AV_PIX_FMT_YUV420P10 AV_PIX_FMT_NE(YUV420P10BE, YUV420P10LE)
  81. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  82. src/libavutil/pixfmt.h:369:34: note: expanded from macro 'AV_PIX_FMT_NE'
  83. # define AV_PIX_FMT_NE(be, le) AV_PIX_FMT_##le
  84. ^~~~~~~~~~~~~~~
  85. <scratch space>:137:1: note: expanded from here
  86. AV_PIX_FMT_YUV420P10LE
  87. ^~~~~~~~~~~~~~~~~~~~~~
  88. src/libavcodec/libopenvvc.c:190:13: warning: variable 'general_tier_flag' set but not used [-Wunused-but-set-variable]
  89. int general_tier_flag;
  90. ^
  91. src/libavcodec/libopenvvc.c:194:13: warning: unused variable 'ols_idx' [-Wunused-variable]
  92. int ols_idx = (temp2 >> 7) & 0x1ff;
  93. ^
  94. src/libavcodec/libopenvvc.c:196:13: warning: unused variable 'constant_frame_rate' [-Wunused-variable]
  95. int constant_frame_rate = (temp2 >> 2) & 0x3;
  96. ^
  97. src/libavcodec/libopenvvc.c:164:53: warning: variable 'num_sublayers' set but not used [-Wunused-but-set-variable]
  98. int i, j, num_arrays, nal_len_size, b, has_ptl, num_sublayers;
  99. ^
  100. src/libavcodec/libopenvvc.c:251:33: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
  101. if (type != VVC_OPI_NUT || type != VVC_DCI_NUT)
  102. ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
  103. src/libavcodec/libopenvvc.c:413:15: warning: initializing 'AVClass *' (aka 'struct AVClass *') with an expression of type 'const AVClass *' (aka 'const struct AVClass *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  104. AVClass *avcl = &libovvc_decoder_class;
  105. ^ ~~~~~~~~~~~~~~~~~~~~~~
  106. src/libavcodec/libopenvvc.c:426:9: warning: unused variable 'display_output' [-Wunused-variable]
  107. int display_output = 1;
  108. ^
  109. src/libavcodec/libopenvvc.c:512:12: warning: unused function 'libovvc_update_thread_context' [-Wunused-function]
  110. static int libovvc_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) {
  111. ^
  112. 11 warnings generated.
Advertisement
Add Comment
Please, Sign In to add comment