image.media\media_scene.mbt

100% · 0 / 0 points · 515 lines

Background color reports the state of each line. Underlined characters mark exact instrumented byte offsets; hover them to inspect the visit count.

  1. 1// Generated by scripts/gen_scenes.mjs from docs/scenes.json + pkg.generated.mbti.
  2. 2// DON'T EDIT IT —— 改归属请改 docs/scenes.json,然后 node scripts/gen_scenes.mjs。
  3. 3// 媒体场景(编解码 / 元数据 / 变换 / 加密 / 流水线):7 个原子包合成为一个入口,
  4. 4// 下游 `moon add walkzzz/image.media` 后不必再记子包路径。
  5. 5// 本包零实现:全部是同签名再导出(`pub using`),实现与测试仍在原子包内。
  6. 6
  7. 7///|
  8. 8pub using @codec {type ApngInfoExtended}
  9. 9
  10. 10///|
  11. 11pub using @codec {type AvifInfo}
  12. 12
  13. 13///|
  14. 14pub using @codec {type AvifInfoExtended}
  15. 15
  16. 16///|
  17. 17pub using @codec {type BmpInfoExtended}
  18. 18
  19. 19///|
  20. 20pub using @codec {type CurInfoExtended}
  21. 21
  22. 22///|
  23. 23pub using @codec {type GifInfoExtended}
  24. 24
  25. 25///|
  26. 26pub using @codec {type HdrInfoExtended}
  27. 27
  28. 28///|
  29. 29pub using @codec {type HeifInfo}
  30. 30
  31. 31///|
  32. 32pub using @codec {type HeifInfoExtended}
  33. 33
  34. 34///|
  35. 35pub using @codec {type IcnsInfoExtended}
  36. 36
  37. 37///|
  38. 38pub using @codec {type IcoInfoExtended}
  39. 39
  40. 40///|
  41. 41pub using @codec {type ImageInfoExtended}
  42. 42
  43. 43///|
  44. 44pub using @codec {type JpegHeader}
  45. 45
  46. 46///|
  47. 47pub using @codec {type JpegHuffmanTable}
  48. 48
  49. 49///|
  50. 50pub using @codec {type JpegInfoExtended}
  51. 51
  52. 52///|
  53. 53pub using @codec {type JpegProgAdvance}
  54. 54
  55. 55///|
  56. 56pub using @codec {type JpegProgCtx}
  57. 57
  58. 58///|
  59. 59pub using @codec {type JpegProgPartial}
  60. 60
  61. 61///|
  62. 62pub using @codec {type JpegProgPreview}
  63. 63
  64. 64///|
  65. 65pub using @codec {type JpegProgScan}
  66. 66
  67. 67///|
  68. 68pub using @codec {type JpegProgStream}
  69. 69
  70. 70///|
  71. 71pub using @codec {type JpegScanSpec}
  72. 72
  73. 73///|
  74. 74pub using @codec {type JpegXlInfo}
  75. 75
  76. 76///|
  77. 77pub using @codec {type JpegXlInfoExtended}
  78. 78
  79. 79///|
  80. 80pub using @codec {type PdfPageImage}
  81. 81
  82. 82///|
  83. 83pub using @codec {type PngInfoExtended}
  84. 84
  85. 85///|
  86. 86pub using @codec {type PnmInfoExtended}
  87. 87
  88. 88///|
  89. 89pub using @codec {type PsdInfoExtended}
  90. 90
  91. 91///|
  92. 92pub using @codec {type QoiInfoExtended}
  93. 93
  94. 94///|
  95. 95pub using @codec {type TgaInfoExtended}
  96. 96
  97. 97///|
  98. 98pub using @codec {type TiffInfoExtended}
  99. 99
  100. 100///|
  101. 101pub using @codec {type Vp8ReferenceFrames}
  102. 102
  103. 103///|
  104. 104pub using @codec {type WebpInfoExtended}
  105. 105
  106. 106///|
  107. 107pub using @codec {
  108. 108 apng_info_extended,
  109. 109 avif_decode,
  110. 110 avif_info,
  111. 111 avif_info_extended,
  112. 112 bmp_info_extended,
  113. 113 codec_decode_auto,
  114. 114 codec_detect_format,
  115. 115 cur_info_extended,
  116. 116 decode_apng_pure,
  117. 117 decode_bmp_pure,
  118. 118 decode_bmp_region,
  119. 119 decode_cur_pure,
  120. 120 decode_gif_animation_pure,
  121. 121 decode_gif_pure,
  122. 122 decode_hdr_pure,
  123. 123 decode_icns_pure,
  124. 124 decode_ico_pure,
  125. 125 decode_jpeg_progressive_previews,
  126. 126 decode_jpeg_pure,
  127. 127 decode_png_16_pure,
  128. 128 decode_png_pure,
  129. 129 decode_png_region,
  130. 130 decode_pnm_16_pure,
  131. 131 decode_pnm_pure,
  132. 132 decode_psd_pure,
  133. 133 decode_qoi_pure,
  134. 134 decode_qoi_region,
  135. 135 decode_tga_pure,
  136. 136 decode_tiff_pure,
  137. 137 decode_vp8_frame,
  138. 138 decode_vp8_inter_frame,
  139. 139 decode_webp_pure,
  140. 140 decode_webp_vp8l_rfc,
  141. 141 detect_image_format,
  142. 142 encode_apng_pure,
  143. 143 encode_bmp_pure,
  144. 144 encode_cur_pure,
  145. 145 encode_cur_with_hotspot_pure,
  146. 146 encode_gif_animation_pure,
  147. 147 encode_gif_pure,
  148. 148 encode_hdr_pure,
  149. 149 encode_icns_pure,
  150. 150 encode_ico_pure,
  151. 151 encode_ico_with_sizes_pure,
  152. 152 encode_jpeg_progressive,
  153. 153 encode_jpeg_progressive_420,
  154. 154 encode_jpeg_progressive_420_scripted,
  155. 155 encode_jpeg_pure,
  156. 156 encode_jpeg_with_quality,
  157. 157 encode_pgm_pure,
  158. 158 encode_png_pure,
  159. 159 encode_pnm_pure,
  160. 160 encode_ppm_pure,
  161. 161 encode_qoi_pure,
  162. 162 encode_tga_pure,
  163. 163 encode_tiff_pure,
  164. 164 encode_webp_lossless,
  165. 165 encode_webp_vp8l_literal,
  166. 166 encode_webp_vp8l_lz77,
  167. 167 get_image_info_extended,
  168. 168 gif_info_extended,
  169. 169 hdr_info_extended,
  170. 170 heif_decode,
  171. 171 heif_info,
  172. 172 heif_info_extended,
  173. 173 icns_info_extended,
  174. 174 ico_info_extended,
  175. 175 is_apng_format,
  176. 176 is_avif_format,
  177. 177 is_bmp_format,
  178. 178 is_cur_format,
  179. 179 is_gif_format,
  180. 180 is_hdr_format,
  181. 181 is_heif_format,
  182. 182 is_icns_format,
  183. 183 is_ico_format,
  184. 184 is_jpeg_format,
  185. 185 is_jpegxl_codestream,
  186. 186 is_jpegxl_container,
  187. 187 is_jpegxl_format,
  188. 188 is_png_format,
  189. 189 is_pnm_format,
  190. 190 is_psd_format,
  191. 191 is_qoi_format,
  192. 192 is_tga_format,
  193. 193 is_tiff_format,
  194. 194 is_webp_format,
  195. 195 jpeg_info_extended,
  196. 196 jpeg_progressive_partial_advance,
  197. 197 jpeg_progressive_partial_advance_to_scan,
  198. 198 jpeg_progressive_partial_bytes_used,
  199. 199 jpeg_progressive_partial_feed,
  200. 200 jpeg_progressive_partial_image,
  201. 201 jpeg_progressive_partial_open,
  202. 202 jpeg_progressive_partial_position,
  203. 203 jpeg_progressive_partial_scan_count,
  204. 204 jpeg_progressive_scan_count,
  205. 205 jpeg_progressive_script_eight,
  206. 206 jpeg_progressive_script_libjpeg,
  207. 207 jpeg_progressive_stream_done,
  208. 208 jpeg_progressive_stream_finish,
  209. 209 jpeg_progressive_stream_open,
  210. 210 jpeg_progressive_stream_remaining,
  211. 211 jpeg_progressive_stream_step,
  212. 212 jpegxl_decode,
  213. 213 jpegxl_info,
  214. 214 jpegxl_info_extended,
  215. 215 pdf_image_count,
  216. 216 pdf_page_count,
  217. 217 pdf_page_images,
  218. 218 pdf_page_images_by_tree,
  219. 219 pdf_page_images_limited,
  220. 220 png_info_extended,
  221. 221 pnm_info_extended,
  222. 222 psd_info_extended,
  223. 223 qoi_info_extended,
  224. 224 tga_info_extended,
  225. 225 tiff_ccitt1d_bits,
  226. 226 tiff_ccitt1d_decode,
  227. 227 tiff_ccitt1d_encode,
  228. 228 tiff_deflate_decode,
  229. 229 tiff_info_extended,
  230. 230 tiff_lzw_decode,
  231. 231 tiff_packbits_decode,
  232. 232 webp_info_extended,
  233. 233 zlib_compress,
  234. 234}
  235. 235
  236. 236///|
  237. 237pub using @lib {type EncodedImage}
  238. 238
  239. 239///|
  240. 240pub using @lib {type StreamInfo}
  241. 241
  242. 242///|
  243. 243pub using @lib {type UnifiedImageInfo}
  244. 244
  245. 245///|
  246. 246pub using @lib {
  247. 247 best_format,
  248. 248 check_decode_budget,
  249. 249 decode_animation,
  250. 250 decode_region,
  251. 251 decode_stream,
  252. 252 decode_stream_channels,
  253. 253 decode_stream_chunked,
  254. 254 decode_webp,
  255. 255 decode_with_limits,
  256. 256 detect_format,
  257. 257 encode_apng,
  258. 258 encode_best,
  259. 259 encode_best_limited,
  260. 260 encode_bmp,
  261. 261 encode_gif,
  262. 262 encode_hdr,
  263. 263 encode_jpeg,
  264. 264 encode_pgm_auto,
  265. 265 encode_png,
  266. 266 encode_pnm_auto,
  267. 267 encode_ppm_auto,
  268. 268 encode_qoi,
  269. 269 encode_tga,
  270. 270 format_supports_16bit,
  271. 271 format_supports_float,
  272. 272 get_image_info,
  273. 273 get_image_summary,
  274. 274 has_alpha,
  275. 275 info_dims,
  276. 276 load_16_from_bytes_auto,
  277. 277 load_any_f,
  278. 278 load_from_bytes_auto,
  279. 279 save_any_f,
  280. 280 save_image_auto,
  281. 281 save_image_with_quality,
  282. 282}
  283. 283
  284. 284///|
  285. 285pub using @util {
  286. 286 adler32,
  287. 287 convert_iphone_png_to_rgb_pure,
  288. 288 crc32,
  289. 289 failure_reason_pure,
  290. 290 flip_vertically_on_write_pure,
  291. 291 get_convert_iphone_png_to_rgb_pure,
  292. 292 get_flip_vertically_on_load_pure,
  293. 293 get_flip_vertically_on_write_pure,
  294. 294 get_hdr_to_ldr_gamma_pure,
  295. 295 get_hdr_to_ldr_scale_pure,
  296. 296 get_ldr_to_hdr_gamma_pure,
  297. 297 get_ldr_to_hdr_scale_pure,
  298. 298 get_unpremultiply_on_load_pure,
  299. 299 hdr_to_ldr_gamma_pure,
  300. 300 hdr_to_ldr_scale_pure,
  301. 301 info_from_bytes_pure,
  302. 302 is_16_bit_from_bytes_pure,
  303. 303 is_hdr_from_bytes_pure,
  304. 304 ldr_to_hdr_gamma_pure,
  305. 305 ldr_to_hdr_scale_pure,
  306. 306 resize_pure,
  307. 307 set_flip_vertically_on_load_pure,
  308. 308 set_unpremultiply_on_load_pure,
  309. 309 zlib_inflate,
  310. 310}
  311. 311
  312. 312///|
  313. 313pub using @color {
  314. 314 convert_channels_pure,
  315. 315 premultiply_alpha_pure,
  316. 316 to_grayscale_pure,
  317. 317 to_rgb_pure,
  318. 318 to_rgba_pure,
  319. 319 unpremultiply_alpha_pure,
  320. 320}
  321. 321
  322. 322///|
  323. 323pub using @transform {type AffineMatrix}
  324. 324
  325. 325///|
  326. 326pub using @transform {type PerspectiveMatrix}
  327. 327
  328. 328///|
  329. 329pub using @transform {
  330. 330 build_gaussian_pyramid,
  331. 331 build_gaussian_pyramid_16,
  332. 332 build_gaussian_pyramid_f,
  333. 333 build_laplacian_pyramid,
  334. 334 build_laplacian_pyramid_16,
  335. 335 build_laplacian_pyramid_float,
  336. 336 compute_energy,
  337. 337 compute_energy_16,
  338. 338 compute_energy_f,
  339. 339 crop,
  340. 340 crop_16,
  341. 341 crop_f,
  342. 342 crop_region,
  343. 343 draw_circle,
  344. 344 draw_circle_16,
  345. 345 draw_circle_f,
  346. 346 draw_copy,
  347. 347 draw_line,
  348. 348 draw_line_16,
  349. 349 draw_line_f,
  350. 350 draw_over,
  351. 351 draw_polygon,
  352. 352 draw_polygon_16,
  353. 353 draw_polygon_f,
  354. 354 draw_rectangle,
  355. 355 draw_rectangle_16,
  356. 356 draw_rectangle_f,
  357. 357 find_horizontal_seam,
  358. 358 find_vertical_seam,
  359. 359 flip_horizontal,
  360. 360 flip_horizontal_16,
  361. 361 flip_horizontal_f,
  362. 362 flip_vertical,
  363. 363 flip_vertical_16,
  364. 364 flip_vertical_f,
  365. 365 get_affine_transform,
  366. 366 get_perspective_transform,
  367. 367 get_rotation_matrix_2d,
  368. 368 multi_band_blend,
  369. 369 multi_band_blend_16,
  370. 370 multi_band_blend_f,
  371. 371 pyr_down,
  372. 372 pyr_down_16,
  373. 373 pyr_down_f,
  374. 374 pyr_up,
  375. 375 pyr_up_16,
  376. 376 pyr_up_f,
  377. 377 remove_horizontal_seam,
  378. 378 remove_horizontal_seam_16,
  379. 379 remove_horizontal_seam_f,
  380. 380 remove_vertical_seam,
  381. 381 remove_vertical_seam_16,
  382. 382 remove_vertical_seam_f,
  383. 383 resize_16,
  384. 384 resize_f,
  385. 385 resize_subsample,
  386. 386 resize_to_contain,
  387. 387 resize_to_cover,
  388. 388 rotate,
  389. 389 rotate_180,
  390. 390 rotate_180_16,
  391. 391 rotate_180_f,
  392. 392 rotate_270,
  393. 393 rotate_270_16,
  394. 394 rotate_270_f,
  395. 395 rotate_90,
  396. 396 rotate_90_16,
  397. 397 rotate_90_f,
  398. 398 seam_carve_resize,
  399. 399 seam_carve_resize_16,
  400. 400 seam_carve_resize_f,
  401. 401 thumbnail,
  402. 402 thumbnail_budgeted,
  403. 403 thumbnail_dims,
  404. 404 transpose_16,
  405. 405 transpose_f,
  406. 406 warp_affine,
  407. 407 warp_affine_16,
  408. 408 warp_affine_f,
  409. 409 warp_perspective,
  410. 410 warp_perspective_16,
  411. 411 warp_perspective_f,
  412. 412}
  413. 413
  414. 414///|
  415. 415pub using @encryption {type ArnoldParams}
  416. 416
  417. 417///|
  418. 418pub using @encryption {type ChaoticParams}
  419. 419
  420. 420///|
  421. 421pub using @encryption {type EncryptionAlgorithm}
  422. 422
  423. 423///|
  424. 424pub using @encryption {type EncryptionConfig}
  425. 425
  426. 426///|
  427. 427pub using @encryption {type EncryptionQuality}
  428. 428
  429. 429///|
  430. 430pub using @encryption {type EncryptionResult}
  431. 431
  432. 432///|
  433. 433pub using @encryption {type ImageEncryptionQuality}
  434. 434
  435. 435///|
  436. 436pub using @encryption {type WatermarkExtractionResult}
  437. 437
  438. 438///|
  439. 439pub using @encryption {type WatermarkInfo}
  440. 440
  441. 441///|
  442. 442pub using @encryption {type WatermarkType}
  443. 443
  444. 444///|
  445. 445pub using @encryption {
  446. 446 adjacent_correlation,
  447. 447 arnold_scramble,
  448. 448 batch_encrypt,
  449. 449 calculate_correlation,
  450. 450 calculate_image_entropy,
  451. 451 calculate_psnr,
  452. 452 chaotic_encrypt,
  453. 453 create_default_arnold_params,
  454. 454 create_default_chaotic_params,
  455. 455 decrypt_image_logistic,
  456. 456 decrypt_image_xor,
  457. 457 embed_visible_watermark,
  458. 458 embed_watermark_lsb,
  459. 459 encrypt_image_logistic,
  460. 460 encrypt_image_xor,
  461. 461 encryption_default_config,
  462. 462 encryption_report_to_string,
  463. 463 evaluate_encryption_quality,
  464. 464 evaluate_image_encryption_quality,
  465. 465 extract_watermark_lsb,
  466. 466 generate_chaotic_sequence_enc,
  467. 467 histogram_entropy,
  468. 468 key_sensitivity_test,
  469. 469 xor_decrypt,
  470. 470 xor_encrypt,
  471. 471}
  472. 472
  473. 473///|
  474. 474pub using @pipeline {type BatchConfig}
  475. 475
  476. 476///|
  477. 477pub using @pipeline {type BatchResult}
  478. 478
  479. 479///|
  480. 480pub using @pipeline {type BatchTask}
  481. 481
  482. 482///|
  483. 483pub using @pipeline {type CliCommand}
  484. 484
  485. 485///|
  486. 486pub using @pipeline {type Operation}
  487. 487
  488. 488///|
  489. 489pub using @pipeline {type Pipeline}
  490. 490
  491. 491///|
  492. 492pub using @pipeline {type ProcessResult}
  493. 493
  494. 494///|
  495. 495pub using @pipeline {
  496. 496 batch_execute,
  497. 497 batch_summary,
  498. 498 batch_task,
  499. 499 cli_help,
  500. 500 cli_parse,
  501. 501 default_batch_config,
  502. 502 pipeline_add,
  503. 503 pipeline_add_all,
  504. 504 pipeline_describe,
  505. 505 pipeline_len,
  506. 506 pipeline_new,
  507. 507}
  508. 508
  509. 509// 冲突清单(先到先得,以下未再导出,仍可在原子包直接使用):
  510. 510// - encode_jpeg_progressive(image.codec/lib 的 fn,已被 image.codec/codec 占用)
  511. 511// - encode_jpeg_progressive_420(image.codec/lib 的 fn,已被 image.codec/codec 占用)
  512. 512// - encode_jpeg_progressive_420_scripted(image.codec/lib 的 fn,已被 image.codec/codec 占用)
  513. 513// - encode_webp_lossless(image.codec/lib 的 fn,已被 image.codec/codec 占用)
  514. 514// - jpeg_progressive_script_eight(image.codec/lib 的 fn,已被 image.codec/codec 占用)
  515. 515// - jpeg_progressive_script_libjpeg(image.codec/lib 的 fn,已被 image.codec/codec 占用)