node-av 1.3.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +47 -40
  2. package/binding.gyp +12 -0
  3. package/dist/api/bitstream-filter.d.ts +134 -2
  4. package/dist/api/bitstream-filter.js +200 -2
  5. package/dist/api/bitstream-filter.js.map +1 -1
  6. package/dist/api/decoder.d.ts +261 -105
  7. package/dist/api/decoder.js +384 -171
  8. package/dist/api/decoder.js.map +1 -1
  9. package/dist/api/encoder.d.ts +338 -74
  10. package/dist/api/encoder.js +546 -188
  11. package/dist/api/encoder.js.map +1 -1
  12. package/dist/api/filter-presets.d.ts +479 -1513
  13. package/dist/api/filter-presets.js +1044 -2005
  14. package/dist/api/filter-presets.js.map +1 -1
  15. package/dist/api/filter.d.ts +370 -150
  16. package/dist/api/filter.js +647 -364
  17. package/dist/api/filter.js.map +1 -1
  18. package/dist/api/hardware.d.ts +25 -31
  19. package/dist/api/hardware.js +36 -70
  20. package/dist/api/hardware.js.map +1 -1
  21. package/dist/api/index.d.ts +1 -1
  22. package/dist/api/index.js +1 -1
  23. package/dist/api/index.js.map +1 -1
  24. package/dist/api/io-stream.d.ts +6 -0
  25. package/dist/api/io-stream.js +2 -0
  26. package/dist/api/io-stream.js.map +1 -1
  27. package/dist/api/media-input.d.ts +208 -2
  28. package/dist/api/media-input.js +356 -8
  29. package/dist/api/media-input.js.map +1 -1
  30. package/dist/api/media-output.d.ts +142 -104
  31. package/dist/api/media-output.js +446 -179
  32. package/dist/api/media-output.js.map +1 -1
  33. package/dist/api/pipeline.d.ts +82 -17
  34. package/dist/api/pipeline.js +80 -42
  35. package/dist/api/pipeline.js.map +1 -1
  36. package/dist/api/types.d.ts +24 -57
  37. package/dist/api/utils.js +2 -0
  38. package/dist/api/utils.js.map +1 -1
  39. package/dist/lib/audio-fifo.d.ts +103 -0
  40. package/dist/lib/audio-fifo.js +109 -0
  41. package/dist/lib/audio-fifo.js.map +1 -1
  42. package/dist/lib/binding.d.ts +1 -0
  43. package/dist/lib/binding.js.map +1 -1
  44. package/dist/lib/bitstream-filter-context.d.ts +79 -0
  45. package/dist/lib/bitstream-filter-context.js +83 -0
  46. package/dist/lib/bitstream-filter-context.js.map +1 -1
  47. package/dist/lib/bitstream-filter.d.ts +2 -0
  48. package/dist/lib/bitstream-filter.js +2 -0
  49. package/dist/lib/bitstream-filter.js.map +1 -1
  50. package/dist/lib/codec-context.d.ts +168 -0
  51. package/dist/lib/codec-context.js +178 -0
  52. package/dist/lib/codec-context.js.map +1 -1
  53. package/dist/lib/codec-parameters.d.ts +3 -0
  54. package/dist/lib/codec-parameters.js +3 -0
  55. package/dist/lib/codec-parameters.js.map +1 -1
  56. package/dist/lib/codec-parser.d.ts +6 -0
  57. package/dist/lib/codec-parser.js +6 -0
  58. package/dist/lib/codec-parser.js.map +1 -1
  59. package/dist/lib/codec.d.ts +12 -0
  60. package/dist/lib/codec.js +12 -0
  61. package/dist/lib/codec.js.map +1 -1
  62. package/dist/lib/dictionary.d.ts +18 -2
  63. package/dist/lib/dictionary.js +18 -2
  64. package/dist/lib/dictionary.js.map +1 -1
  65. package/dist/lib/error.d.ts +8 -0
  66. package/dist/lib/error.js +9 -0
  67. package/dist/lib/error.js.map +1 -1
  68. package/dist/lib/filter-context.d.ts +119 -2
  69. package/dist/lib/filter-context.js +119 -0
  70. package/dist/lib/filter-context.js.map +1 -1
  71. package/dist/lib/filter-graph.d.ts +80 -0
  72. package/dist/lib/filter-graph.js +84 -0
  73. package/dist/lib/filter-graph.js.map +1 -1
  74. package/dist/lib/filter-inout.d.ts +1 -0
  75. package/dist/lib/filter-inout.js +1 -0
  76. package/dist/lib/filter-inout.js.map +1 -1
  77. package/dist/lib/filter.d.ts +2 -0
  78. package/dist/lib/filter.js +2 -0
  79. package/dist/lib/filter.js.map +1 -1
  80. package/dist/lib/format-context.d.ts +356 -20
  81. package/dist/lib/format-context.js +375 -23
  82. package/dist/lib/format-context.js.map +1 -1
  83. package/dist/lib/frame.d.ts +84 -1
  84. package/dist/lib/frame.js +96 -0
  85. package/dist/lib/frame.js.map +1 -1
  86. package/dist/lib/hardware-device-context.d.ts +8 -0
  87. package/dist/lib/hardware-device-context.js +8 -0
  88. package/dist/lib/hardware-device-context.js.map +1 -1
  89. package/dist/lib/hardware-frames-context.d.ts +55 -0
  90. package/dist/lib/hardware-frames-context.js +57 -0
  91. package/dist/lib/hardware-frames-context.js.map +1 -1
  92. package/dist/lib/input-format.d.ts +43 -3
  93. package/dist/lib/input-format.js +48 -0
  94. package/dist/lib/input-format.js.map +1 -1
  95. package/dist/lib/io-context.d.ts +212 -0
  96. package/dist/lib/io-context.js +228 -0
  97. package/dist/lib/io-context.js.map +1 -1
  98. package/dist/lib/log.d.ts +2 -0
  99. package/dist/lib/log.js +2 -0
  100. package/dist/lib/log.js.map +1 -1
  101. package/dist/lib/native-types.d.ts +39 -1
  102. package/dist/lib/option.d.ts +90 -0
  103. package/dist/lib/option.js +97 -0
  104. package/dist/lib/option.js.map +1 -1
  105. package/dist/lib/output-format.d.ts +4 -0
  106. package/dist/lib/output-format.js +4 -0
  107. package/dist/lib/output-format.js.map +1 -1
  108. package/dist/lib/packet.d.ts +7 -0
  109. package/dist/lib/packet.js +7 -0
  110. package/dist/lib/packet.js.map +1 -1
  111. package/dist/lib/rational.d.ts +1 -0
  112. package/dist/lib/rational.js +1 -0
  113. package/dist/lib/rational.js.map +1 -1
  114. package/dist/lib/software-resample-context.d.ts +64 -0
  115. package/dist/lib/software-resample-context.js +66 -0
  116. package/dist/lib/software-resample-context.js.map +1 -1
  117. package/dist/lib/software-scale-context.d.ts +98 -0
  118. package/dist/lib/software-scale-context.js +102 -0
  119. package/dist/lib/software-scale-context.js.map +1 -1
  120. package/dist/lib/stream.d.ts +1 -0
  121. package/dist/lib/stream.js +1 -0
  122. package/dist/lib/stream.js.map +1 -1
  123. package/dist/lib/utilities.d.ts +60 -0
  124. package/dist/lib/utilities.js +60 -0
  125. package/dist/lib/utilities.js.map +1 -1
  126. package/package.json +18 -18
  127. package/release_notes.md +0 -29
@@ -33,6 +33,7 @@ export declare class OptionInfo {
33
33
  private native;
34
34
  /**
35
35
  * @param native - The native option instance
36
+ *
36
37
  * @internal
37
38
  */
38
39
  constructor(native: NativeOption);
@@ -159,7 +160,9 @@ export declare class Option {
159
160
  * Direct mapping to av_opt_next().
160
161
  *
161
162
  * @param obj - Object with options
163
+ *
162
164
  * @param prev - Previous option (null to get first)
165
+ *
163
166
  * @returns Next option, or null if no more
164
167
  *
165
168
  * @example
@@ -179,8 +182,11 @@ export declare class Option {
179
182
  * Direct mapping to av_opt_find().
180
183
  *
181
184
  * @param obj - Object to search
185
+ *
182
186
  * @param name - Option name
187
+ *
183
188
  * @param searchFlags - Search flags
189
+ *
184
190
  * @returns Option info if found, null otherwise
185
191
  *
186
192
  * @example
@@ -200,8 +206,11 @@ export declare class Option {
200
206
  * Direct mapping to av_opt_find2().
201
207
  *
202
208
  * @param obj - Object to search
209
+ *
203
210
  * @param name - Option name
211
+ *
204
212
  * @param searchFlags - Search flags
213
+ *
205
214
  * @returns Object with option and target info
206
215
  *
207
216
  * @example
@@ -222,8 +231,11 @@ export declare class Option {
222
231
  * Direct mapping to av_opt_get().
223
232
  *
224
233
  * @param obj - Object to query
234
+ *
225
235
  * @param name - Option name
236
+ *
226
237
  * @param searchFlags - Search flags
238
+ *
227
239
  * @returns Option value as string, or null
228
240
  *
229
241
  * @example
@@ -240,8 +252,11 @@ export declare class Option {
240
252
  * Direct mapping to av_opt_get_int().
241
253
  *
242
254
  * @param obj - Object to query
255
+ *
243
256
  * @param name - Option name
257
+ *
244
258
  * @param searchFlags - Search flags
259
+ *
245
260
  * @returns Option value as integer, or null
246
261
  *
247
262
  * @example
@@ -258,8 +273,11 @@ export declare class Option {
258
273
  * Direct mapping to av_opt_get_double().
259
274
  *
260
275
  * @param obj - Object to query
276
+ *
261
277
  * @param name - Option name
278
+ *
262
279
  * @param searchFlags - Search flags
280
+ *
263
281
  * @returns Option value as double, or null
264
282
  *
265
283
  * @example
@@ -276,8 +294,11 @@ export declare class Option {
276
294
  * Direct mapping to av_opt_get_q().
277
295
  *
278
296
  * @param obj - Object to query
297
+ *
279
298
  * @param name - Option name
299
+ *
280
300
  * @param searchFlags - Search flags
301
+ *
281
302
  * @returns Option value as rational, or null
282
303
  *
283
304
  * @example
@@ -294,8 +315,11 @@ export declare class Option {
294
315
  * Direct mapping to av_opt_get_pixel_fmt().
295
316
  *
296
317
  * @param obj - Object to query
318
+ *
297
319
  * @param name - Option name
320
+ *
298
321
  * @param searchFlags - Search flags
322
+ *
299
323
  * @returns Pixel format value, or null
300
324
  *
301
325
  * @example
@@ -312,8 +336,11 @@ export declare class Option {
312
336
  * Direct mapping to av_opt_get_sample_fmt().
313
337
  *
314
338
  * @param obj - Object to query
339
+ *
315
340
  * @param name - Option name
341
+ *
316
342
  * @param searchFlags - Search flags
343
+ *
317
344
  * @returns Sample format value, or null
318
345
  *
319
346
  * @example
@@ -330,8 +357,11 @@ export declare class Option {
330
357
  * Direct mapping to av_opt_get_image_size().
331
358
  *
332
359
  * @param obj - Object to query
360
+ *
333
361
  * @param name - Option name
362
+ *
334
363
  * @param searchFlags - Search flags
364
+ *
335
365
  * @returns Width and height, or null
336
366
  *
337
367
  * @example
@@ -351,8 +381,11 @@ export declare class Option {
351
381
  * Direct mapping to av_opt_get_chlayout().
352
382
  *
353
383
  * @param obj - Object to query
384
+ *
354
385
  * @param name - Option name
386
+ *
355
387
  * @param searchFlags - Search flags
388
+ *
356
389
  * @returns Channel layout, or null
357
390
  *
358
391
  * @example
@@ -369,8 +402,11 @@ export declare class Option {
369
402
  * Direct mapping to av_opt_get_dict_val().
370
403
  *
371
404
  * @param obj - Object to query
405
+ *
372
406
  * @param name - Option name
407
+ *
373
408
  * @param searchFlags - Search flags
409
+ *
374
410
  * @returns Dictionary value, or null
375
411
  *
376
412
  * @example
@@ -387,9 +423,13 @@ export declare class Option {
387
423
  * Direct mapping to av_opt_set().
388
424
  *
389
425
  * @param obj - Object to modify
426
+ *
390
427
  * @param name - Option name
428
+ *
391
429
  * @param value - String value
430
+ *
392
431
  * @param searchFlags - Search flags
432
+ *
393
433
  * @returns 0 on success, negative AVERROR on error
394
434
  *
395
435
  * @example
@@ -406,9 +446,13 @@ export declare class Option {
406
446
  * Direct mapping to av_opt_set_int().
407
447
  *
408
448
  * @param obj - Object to modify
449
+ *
409
450
  * @param name - Option name
451
+ *
410
452
  * @param value - Integer value
453
+ *
411
454
  * @param searchFlags - Search flags
455
+ *
412
456
  * @returns 0 on success, negative AVERROR on error
413
457
  *
414
458
  * @example
@@ -425,9 +469,13 @@ export declare class Option {
425
469
  * Direct mapping to av_opt_set_double().
426
470
  *
427
471
  * @param obj - Object to modify
472
+ *
428
473
  * @param name - Option name
474
+ *
429
475
  * @param value - Double value
476
+ *
430
477
  * @param searchFlags - Search flags
478
+ *
431
479
  * @returns 0 on success, negative AVERROR on error
432
480
  *
433
481
  * @example
@@ -444,9 +492,13 @@ export declare class Option {
444
492
  * Direct mapping to av_opt_set_q().
445
493
  *
446
494
  * @param obj - Object to modify
495
+ *
447
496
  * @param name - Option name
497
+ *
448
498
  * @param value - Rational value
499
+ *
449
500
  * @param searchFlags - Search flags
501
+ *
450
502
  * @returns 0 on success, negative AVERROR on error
451
503
  *
452
504
  * @example
@@ -463,9 +515,13 @@ export declare class Option {
463
515
  * Direct mapping to av_opt_set_pixel_fmt().
464
516
  *
465
517
  * @param obj - Object to modify
518
+ *
466
519
  * @param name - Option name
520
+ *
467
521
  * @param value - Pixel format
522
+ *
468
523
  * @param searchFlags - Search flags
524
+ *
469
525
  * @returns 0 on success, negative AVERROR on error
470
526
  *
471
527
  * @example
@@ -482,9 +538,13 @@ export declare class Option {
482
538
  * Direct mapping to av_opt_set_sample_fmt().
483
539
  *
484
540
  * @param obj - Object to modify
541
+ *
485
542
  * @param name - Option name
543
+ *
486
544
  * @param value - Sample format
545
+ *
487
546
  * @param searchFlags - Search flags
547
+ *
488
548
  * @returns 0 on success, negative AVERROR on error
489
549
  *
490
550
  * @example
@@ -501,10 +561,15 @@ export declare class Option {
501
561
  * Direct mapping to av_opt_set_image_size().
502
562
  *
503
563
  * @param obj - Object to modify
564
+ *
504
565
  * @param name - Option name
566
+ *
505
567
  * @param width - Image width
568
+ *
506
569
  * @param height - Image height
570
+ *
507
571
  * @param searchFlags - Search flags
572
+ *
508
573
  * @returns 0 on success, negative AVERROR on error
509
574
  *
510
575
  * @example
@@ -521,9 +586,13 @@ export declare class Option {
521
586
  * Direct mapping to av_opt_set_chlayout().
522
587
  *
523
588
  * @param obj - Object to modify
589
+ *
524
590
  * @param name - Option name
591
+ *
525
592
  * @param value - Channel layout
593
+ *
526
594
  * @param searchFlags - Search flags
595
+ *
527
596
  * @returns 0 on success, negative AVERROR on error
528
597
  *
529
598
  * @example
@@ -540,9 +609,13 @@ export declare class Option {
540
609
  * Direct mapping to av_opt_set_dict_val().
541
610
  *
542
611
  * @param obj - Object to modify
612
+ *
543
613
  * @param name - Option name
614
+ *
544
615
  * @param value - Dictionary value
616
+ *
545
617
  * @param searchFlags - Search flags
618
+ *
546
619
  * @returns 0 on success, negative AVERROR on error
547
620
  *
548
621
  * @example
@@ -561,9 +634,13 @@ export declare class Option {
561
634
  * Direct mapping to av_opt_set_bin().
562
635
  *
563
636
  * @param obj - Object to modify
637
+ *
564
638
  * @param name - Option name
639
+ *
565
640
  * @param value - Binary data
641
+ *
566
642
  * @param searchFlags - Search flags
643
+ *
567
644
  * @returns 0 on success, negative AVERROR on error
568
645
  *
569
646
  * @example
@@ -599,7 +676,9 @@ export declare class Option {
599
676
  * Direct mapping to av_opt_copy().
600
677
  *
601
678
  * @param dest - Destination object
679
+ *
602
680
  * @param src - Source object
681
+ *
603
682
  * @returns 0 on success, negative AVERROR on error
604
683
  *
605
684
  * @example
@@ -616,8 +695,11 @@ export declare class Option {
616
695
  * Direct mapping to av_opt_is_set_to_default().
617
696
  *
618
697
  * @param obj - Object to check
698
+ *
619
699
  * @param name - Option name
700
+ *
620
701
  * @param searchFlags - Search flags
702
+ *
621
703
  * @returns True if default, false if modified, null if not found
622
704
  *
623
705
  * @example
@@ -634,10 +716,15 @@ export declare class Option {
634
716
  * Direct mapping to av_opt_serialize().
635
717
  *
636
718
  * @param obj - Object to serialize
719
+ *
637
720
  * @param optFlags - Option flags filter
721
+ *
638
722
  * @param flags - Serialization flags
723
+ *
639
724
  * @param keyValSep - Key-value separator
725
+ *
640
726
  * @param pairsSep - Pairs separator
727
+ *
641
728
  * @returns Serialized string, or null on error
642
729
  *
643
730
  * @example
@@ -668,8 +755,11 @@ export declare class Option {
668
755
  * Direct mapping to av_opt_show2().
669
756
  *
670
757
  * @param obj - Object to show options for
758
+ *
671
759
  * @param reqFlags - Required flags
760
+ *
672
761
  * @param rejFlags - Rejected flags
762
+ *
673
763
  * @returns 0 on success, negative AVERROR on error
674
764
  *
675
765
  * @example
@@ -32,6 +32,7 @@ export class OptionInfo {
32
32
  native;
33
33
  /**
34
34
  * @param native - The native option instance
35
+ *
35
36
  * @internal
36
37
  */
37
38
  constructor(native) {
@@ -178,7 +179,9 @@ export class Option {
178
179
  * Direct mapping to av_opt_next().
179
180
  *
180
181
  * @param obj - Object with options
182
+ *
181
183
  * @param prev - Previous option (null to get first)
184
+ *
182
185
  * @returns Next option, or null if no more
183
186
  *
184
187
  * @example
@@ -201,8 +204,11 @@ export class Option {
201
204
  * Direct mapping to av_opt_find().
202
205
  *
203
206
  * @param obj - Object to search
207
+ *
204
208
  * @param name - Option name
209
+ *
205
210
  * @param searchFlags - Search flags
211
+ *
206
212
  * @returns Option info if found, null otherwise
207
213
  *
208
214
  * @example
@@ -225,8 +231,11 @@ export class Option {
225
231
  * Direct mapping to av_opt_find2().
226
232
  *
227
233
  * @param obj - Object to search
234
+ *
228
235
  * @param name - Option name
236
+ *
229
237
  * @param searchFlags - Search flags
238
+ *
230
239
  * @returns Object with option and target info
231
240
  *
232
241
  * @example
@@ -252,8 +261,11 @@ export class Option {
252
261
  * Direct mapping to av_opt_get().
253
262
  *
254
263
  * @param obj - Object to query
264
+ *
255
265
  * @param name - Option name
266
+ *
256
267
  * @param searchFlags - Search flags
268
+ *
257
269
  * @returns Option value as string, or null
258
270
  *
259
271
  * @example
@@ -272,8 +284,11 @@ export class Option {
272
284
  * Direct mapping to av_opt_get_int().
273
285
  *
274
286
  * @param obj - Object to query
287
+ *
275
288
  * @param name - Option name
289
+ *
276
290
  * @param searchFlags - Search flags
291
+ *
277
292
  * @returns Option value as integer, or null
278
293
  *
279
294
  * @example
@@ -292,8 +307,11 @@ export class Option {
292
307
  * Direct mapping to av_opt_get_double().
293
308
  *
294
309
  * @param obj - Object to query
310
+ *
295
311
  * @param name - Option name
312
+ *
296
313
  * @param searchFlags - Search flags
314
+ *
297
315
  * @returns Option value as double, or null
298
316
  *
299
317
  * @example
@@ -312,8 +330,11 @@ export class Option {
312
330
  * Direct mapping to av_opt_get_q().
313
331
  *
314
332
  * @param obj - Object to query
333
+ *
315
334
  * @param name - Option name
335
+ *
316
336
  * @param searchFlags - Search flags
337
+ *
317
338
  * @returns Option value as rational, or null
318
339
  *
319
340
  * @example
@@ -332,8 +353,11 @@ export class Option {
332
353
  * Direct mapping to av_opt_get_pixel_fmt().
333
354
  *
334
355
  * @param obj - Object to query
356
+ *
335
357
  * @param name - Option name
358
+ *
336
359
  * @param searchFlags - Search flags
360
+ *
337
361
  * @returns Pixel format value, or null
338
362
  *
339
363
  * @example
@@ -352,8 +376,11 @@ export class Option {
352
376
  * Direct mapping to av_opt_get_sample_fmt().
353
377
  *
354
378
  * @param obj - Object to query
379
+ *
355
380
  * @param name - Option name
381
+ *
356
382
  * @param searchFlags - Search flags
383
+ *
357
384
  * @returns Sample format value, or null
358
385
  *
359
386
  * @example
@@ -372,8 +399,11 @@ export class Option {
372
399
  * Direct mapping to av_opt_get_image_size().
373
400
  *
374
401
  * @param obj - Object to query
402
+ *
375
403
  * @param name - Option name
404
+ *
376
405
  * @param searchFlags - Search flags
406
+ *
377
407
  * @returns Width and height, or null
378
408
  *
379
409
  * @example
@@ -392,8 +422,11 @@ export class Option {
392
422
  * Direct mapping to av_opt_get_chlayout().
393
423
  *
394
424
  * @param obj - Object to query
425
+ *
395
426
  * @param name - Option name
427
+ *
396
428
  * @param searchFlags - Search flags
429
+ *
397
430
  * @returns Channel layout, or null
398
431
  *
399
432
  * @example
@@ -412,8 +445,11 @@ export class Option {
412
445
  * Direct mapping to av_opt_get_dict_val().
413
446
  *
414
447
  * @param obj - Object to query
448
+ *
415
449
  * @param name - Option name
450
+ *
416
451
  * @param searchFlags - Search flags
452
+ *
417
453
  * @returns Dictionary value, or null
418
454
  *
419
455
  * @example
@@ -433,9 +469,13 @@ export class Option {
433
469
  * Direct mapping to av_opt_set().
434
470
  *
435
471
  * @param obj - Object to modify
472
+ *
436
473
  * @param name - Option name
474
+ *
437
475
  * @param value - String value
476
+ *
438
477
  * @param searchFlags - Search flags
478
+ *
439
479
  * @returns 0 on success, negative AVERROR on error
440
480
  *
441
481
  * @example
@@ -454,9 +494,13 @@ export class Option {
454
494
  * Direct mapping to av_opt_set_int().
455
495
  *
456
496
  * @param obj - Object to modify
497
+ *
457
498
  * @param name - Option name
499
+ *
458
500
  * @param value - Integer value
501
+ *
459
502
  * @param searchFlags - Search flags
503
+ *
460
504
  * @returns 0 on success, negative AVERROR on error
461
505
  *
462
506
  * @example
@@ -475,9 +519,13 @@ export class Option {
475
519
  * Direct mapping to av_opt_set_double().
476
520
  *
477
521
  * @param obj - Object to modify
522
+ *
478
523
  * @param name - Option name
524
+ *
479
525
  * @param value - Double value
526
+ *
480
527
  * @param searchFlags - Search flags
528
+ *
481
529
  * @returns 0 on success, negative AVERROR on error
482
530
  *
483
531
  * @example
@@ -496,9 +544,13 @@ export class Option {
496
544
  * Direct mapping to av_opt_set_q().
497
545
  *
498
546
  * @param obj - Object to modify
547
+ *
499
548
  * @param name - Option name
549
+ *
500
550
  * @param value - Rational value
551
+ *
501
552
  * @param searchFlags - Search flags
553
+ *
502
554
  * @returns 0 on success, negative AVERROR on error
503
555
  *
504
556
  * @example
@@ -517,9 +569,13 @@ export class Option {
517
569
  * Direct mapping to av_opt_set_pixel_fmt().
518
570
  *
519
571
  * @param obj - Object to modify
572
+ *
520
573
  * @param name - Option name
574
+ *
521
575
  * @param value - Pixel format
576
+ *
522
577
  * @param searchFlags - Search flags
578
+ *
523
579
  * @returns 0 on success, negative AVERROR on error
524
580
  *
525
581
  * @example
@@ -538,9 +594,13 @@ export class Option {
538
594
  * Direct mapping to av_opt_set_sample_fmt().
539
595
  *
540
596
  * @param obj - Object to modify
597
+ *
541
598
  * @param name - Option name
599
+ *
542
600
  * @param value - Sample format
601
+ *
543
602
  * @param searchFlags - Search flags
603
+ *
544
604
  * @returns 0 on success, negative AVERROR on error
545
605
  *
546
606
  * @example
@@ -559,10 +619,15 @@ export class Option {
559
619
  * Direct mapping to av_opt_set_image_size().
560
620
  *
561
621
  * @param obj - Object to modify
622
+ *
562
623
  * @param name - Option name
624
+ *
563
625
  * @param width - Image width
626
+ *
564
627
  * @param height - Image height
628
+ *
565
629
  * @param searchFlags - Search flags
630
+ *
566
631
  * @returns 0 on success, negative AVERROR on error
567
632
  *
568
633
  * @example
@@ -581,9 +646,13 @@ export class Option {
581
646
  * Direct mapping to av_opt_set_chlayout().
582
647
  *
583
648
  * @param obj - Object to modify
649
+ *
584
650
  * @param name - Option name
651
+ *
585
652
  * @param value - Channel layout
653
+ *
586
654
  * @param searchFlags - Search flags
655
+ *
587
656
  * @returns 0 on success, negative AVERROR on error
588
657
  *
589
658
  * @example
@@ -602,9 +671,13 @@ export class Option {
602
671
  * Direct mapping to av_opt_set_dict_val().
603
672
  *
604
673
  * @param obj - Object to modify
674
+ *
605
675
  * @param name - Option name
676
+ *
606
677
  * @param value - Dictionary value
678
+ *
607
679
  * @param searchFlags - Search flags
680
+ *
608
681
  * @returns 0 on success, negative AVERROR on error
609
682
  *
610
683
  * @example
@@ -625,9 +698,13 @@ export class Option {
625
698
  * Direct mapping to av_opt_set_bin().
626
699
  *
627
700
  * @param obj - Object to modify
701
+ *
628
702
  * @param name - Option name
703
+ *
629
704
  * @param value - Binary data
705
+ *
630
706
  * @param searchFlags - Search flags
707
+ *
631
708
  * @returns 0 on success, negative AVERROR on error
632
709
  *
633
710
  * @example
@@ -667,7 +744,9 @@ export class Option {
667
744
  * Direct mapping to av_opt_copy().
668
745
  *
669
746
  * @param dest - Destination object
747
+ *
670
748
  * @param src - Source object
749
+ *
671
750
  * @returns 0 on success, negative AVERROR on error
672
751
  *
673
752
  * @example
@@ -686,8 +765,11 @@ export class Option {
686
765
  * Direct mapping to av_opt_is_set_to_default().
687
766
  *
688
767
  * @param obj - Object to check
768
+ *
689
769
  * @param name - Option name
770
+ *
690
771
  * @param searchFlags - Search flags
772
+ *
691
773
  * @returns True if default, false if modified, null if not found
692
774
  *
693
775
  * @example
@@ -706,10 +788,15 @@ export class Option {
706
788
  * Direct mapping to av_opt_serialize().
707
789
  *
708
790
  * @param obj - Object to serialize
791
+ *
709
792
  * @param optFlags - Option flags filter
793
+ *
710
794
  * @param flags - Serialization flags
795
+ *
711
796
  * @param keyValSep - Key-value separator
797
+ *
712
798
  * @param pairsSep - Pairs separator
799
+ *
713
800
  * @returns Serialized string, or null on error
714
801
  *
715
802
  * @example
@@ -744,8 +831,11 @@ export class Option {
744
831
  * Direct mapping to av_opt_show2().
745
832
  *
746
833
  * @param obj - Object to show options for
834
+ *
747
835
  * @param reqFlags - Required flags
836
+ *
748
837
  * @param rejFlags - Rejected flags
838
+ *
749
839
  * @returns 0 on success, negative AVERROR on error
750
840
  *
751
841
  * @example
@@ -824,9 +914,13 @@ export class OptionMember {
824
914
  * Direct mapping to av_opt_set* functions.
825
915
  *
826
916
  * @param name - Option name
917
+ *
827
918
  * @param value - Option value
919
+ *
828
920
  * @param type - Option type (defaults to AV_OPT_TYPE_STRING)
921
+ *
829
922
  * @param searchFlags - Search flags (default: AV_OPT_SEARCH_CHILDREN)
923
+ *
830
924
  * @returns 0 on success, negative AVERROR on error:
831
925
  * - AVERROR_ENOENT: Option not found
832
926
  * - AVERROR_ERANGE: Value out of range
@@ -988,8 +1082,11 @@ export class OptionMember {
988
1082
  * Direct mapping to av_opt_get* functions.
989
1083
  *
990
1084
  * @param name - Option name
1085
+ *
991
1086
  * @param type - Option type (defaults to AV_OPT_TYPE_STRING)
1087
+ *
992
1088
  * @param searchFlags - Search flags (default: AV_OPT_SEARCH_CHILDREN)
1089
+ *
993
1090
  * @returns Option value (type depends on type parameter), or null if not found
994
1091
  *
995
1092
  * @example