node-av 2.0.0 → 2.4.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 (124) hide show
  1. package/README.md +18 -5
  2. package/binding.gyp +12 -0
  3. package/dist/api/bitstream-filter.d.ts +132 -0
  4. package/dist/api/bitstream-filter.js +198 -0
  5. package/dist/api/bitstream-filter.js.map +1 -1
  6. package/dist/api/decoder.d.ts +194 -0
  7. package/dist/api/decoder.js +313 -0
  8. package/dist/api/decoder.js.map +1 -1
  9. package/dist/api/encoder.d.ts +263 -0
  10. package/dist/api/encoder.js +427 -0
  11. package/dist/api/encoder.js.map +1 -1
  12. package/dist/api/filter-presets.d.ts +92 -0
  13. package/dist/api/filter-presets.js +92 -0
  14. package/dist/api/filter-presets.js.map +1 -1
  15. package/dist/api/filter.d.ts +234 -9
  16. package/dist/api/filter.js +372 -9
  17. package/dist/api/filter.js.map +1 -1
  18. package/dist/api/hardware.d.ts +17 -0
  19. package/dist/api/hardware.js +28 -17
  20. package/dist/api/hardware.js.map +1 -1
  21. package/dist/api/io-stream.d.ts +6 -0
  22. package/dist/api/io-stream.js +2 -0
  23. package/dist/api/io-stream.js.map +1 -1
  24. package/dist/api/media-input.d.ts +214 -1
  25. package/dist/api/media-input.js +341 -0
  26. package/dist/api/media-input.js.map +1 -1
  27. package/dist/api/media-output.d.ts +132 -1
  28. package/dist/api/media-output.js +339 -0
  29. package/dist/api/media-output.js.map +1 -1
  30. package/dist/api/pipeline.d.ts +73 -8
  31. package/dist/api/pipeline.js +61 -0
  32. package/dist/api/pipeline.js.map +1 -1
  33. package/dist/api/types.d.ts +7 -0
  34. package/dist/api/utils.js +2 -0
  35. package/dist/api/utils.js.map +1 -1
  36. package/dist/lib/audio-fifo.d.ts +103 -0
  37. package/dist/lib/audio-fifo.js +109 -0
  38. package/dist/lib/audio-fifo.js.map +1 -1
  39. package/dist/lib/binding.d.ts +1 -0
  40. package/dist/lib/binding.js +32 -7
  41. package/dist/lib/binding.js.map +1 -1
  42. package/dist/lib/bitstream-filter-context.d.ts +79 -0
  43. package/dist/lib/bitstream-filter-context.js +83 -0
  44. package/dist/lib/bitstream-filter-context.js.map +1 -1
  45. package/dist/lib/bitstream-filter.d.ts +2 -0
  46. package/dist/lib/bitstream-filter.js +2 -0
  47. package/dist/lib/bitstream-filter.js.map +1 -1
  48. package/dist/lib/codec-context.d.ts +168 -0
  49. package/dist/lib/codec-context.js +178 -0
  50. package/dist/lib/codec-context.js.map +1 -1
  51. package/dist/lib/codec-parameters.d.ts +3 -0
  52. package/dist/lib/codec-parameters.js +3 -0
  53. package/dist/lib/codec-parameters.js.map +1 -1
  54. package/dist/lib/codec-parser.d.ts +6 -0
  55. package/dist/lib/codec-parser.js +6 -0
  56. package/dist/lib/codec-parser.js.map +1 -1
  57. package/dist/lib/codec.d.ts +12 -0
  58. package/dist/lib/codec.js +12 -0
  59. package/dist/lib/codec.js.map +1 -1
  60. package/dist/lib/dictionary.d.ts +16 -0
  61. package/dist/lib/dictionary.js +16 -0
  62. package/dist/lib/dictionary.js.map +1 -1
  63. package/dist/lib/error.d.ts +8 -0
  64. package/dist/lib/error.js +9 -0
  65. package/dist/lib/error.js.map +1 -1
  66. package/dist/lib/filter-context.d.ts +100 -0
  67. package/dist/lib/filter-context.js +104 -0
  68. package/dist/lib/filter-context.js.map +1 -1
  69. package/dist/lib/filter-graph.d.ts +80 -0
  70. package/dist/lib/filter-graph.js +84 -0
  71. package/dist/lib/filter-graph.js.map +1 -1
  72. package/dist/lib/filter-inout.d.ts +1 -0
  73. package/dist/lib/filter-inout.js +1 -0
  74. package/dist/lib/filter-inout.js.map +1 -1
  75. package/dist/lib/filter.d.ts +2 -0
  76. package/dist/lib/filter.js +2 -0
  77. package/dist/lib/filter.js.map +1 -1
  78. package/dist/lib/format-context.d.ts +338 -2
  79. package/dist/lib/format-context.js +355 -3
  80. package/dist/lib/format-context.js.map +1 -1
  81. package/dist/lib/frame.d.ts +41 -0
  82. package/dist/lib/frame.js +43 -0
  83. package/dist/lib/frame.js.map +1 -1
  84. package/dist/lib/hardware-device-context.d.ts +8 -0
  85. package/dist/lib/hardware-device-context.js +8 -0
  86. package/dist/lib/hardware-device-context.js.map +1 -1
  87. package/dist/lib/hardware-frames-context.d.ts +55 -0
  88. package/dist/lib/hardware-frames-context.js +57 -0
  89. package/dist/lib/hardware-frames-context.js.map +1 -1
  90. package/dist/lib/input-format.d.ts +43 -3
  91. package/dist/lib/input-format.js +48 -0
  92. package/dist/lib/input-format.js.map +1 -1
  93. package/dist/lib/io-context.d.ts +218 -0
  94. package/dist/lib/io-context.js +234 -0
  95. package/dist/lib/io-context.js.map +1 -1
  96. package/dist/lib/log.d.ts +2 -0
  97. package/dist/lib/log.js +2 -0
  98. package/dist/lib/log.js.map +1 -1
  99. package/dist/lib/native-types.d.ts +39 -1
  100. package/dist/lib/option.d.ts +90 -0
  101. package/dist/lib/option.js +97 -0
  102. package/dist/lib/option.js.map +1 -1
  103. package/dist/lib/output-format.d.ts +4 -0
  104. package/dist/lib/output-format.js +4 -0
  105. package/dist/lib/output-format.js.map +1 -1
  106. package/dist/lib/packet.d.ts +7 -0
  107. package/dist/lib/packet.js +7 -0
  108. package/dist/lib/packet.js.map +1 -1
  109. package/dist/lib/rational.d.ts +1 -0
  110. package/dist/lib/rational.js +1 -0
  111. package/dist/lib/rational.js.map +1 -1
  112. package/dist/lib/software-resample-context.d.ts +64 -0
  113. package/dist/lib/software-resample-context.js +66 -0
  114. package/dist/lib/software-resample-context.js.map +1 -1
  115. package/dist/lib/software-scale-context.d.ts +98 -0
  116. package/dist/lib/software-scale-context.js +102 -0
  117. package/dist/lib/software-scale-context.js.map +1 -1
  118. package/dist/lib/stream.d.ts +1 -0
  119. package/dist/lib/stream.js +1 -0
  120. package/dist/lib/stream.js.map +1 -1
  121. package/dist/lib/utilities.d.ts +60 -0
  122. package/dist/lib/utilities.js +60 -0
  123. package/dist/lib/utilities.js.map +1 -1
  124. package/package.json +19 -17
package/dist/lib/log.js CHANGED
@@ -98,6 +98,7 @@ export class Log {
98
98
  * Direct mapping to av_log().
99
99
  *
100
100
  * @param level - Log level for this message
101
+ *
101
102
  * @param message - Message to log
102
103
  *
103
104
  * @example
@@ -121,6 +122,7 @@ export class Log {
121
122
  * Direct mapping to av_log_set_callback().
122
123
  *
123
124
  * @param callback - Function to handle log messages, or null to remove
125
+ *
124
126
  * @param options - Additional logging options
125
127
  *
126
128
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/lib/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,OAAO,GAAG;IACd;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAiB;QAC/B,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,QAAQ;QACb,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,GAAG,CAAC,KAAiB,EAAE,OAAe;QAC3C,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,MAAM,CAAC,WAAW,CAAC,QAA+D,EAAE,OAAoB;QACtG,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACtB,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,aAAa;QAClB,QAAQ,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC/B,CAAC;CACF"}
1
+ {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/lib/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,OAAO,GAAG;IACd;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAiB;QAC/B,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,QAAQ;QACb,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,GAAG,CAAC,KAAiB,EAAE,OAAe;QAC3C,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,MAAM,CAAC,WAAW,CAAC,QAA+D,EAAE,OAAoB;QACtG,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACtB,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,aAAa;QAClB,QAAQ,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC/B,CAAC;CACF"}
@@ -89,6 +89,7 @@ export interface NativeFrame extends Disposable {
89
89
  copy(src: NativeFrame): number;
90
90
  fromBuffer(buffer: Buffer): number;
91
91
  hwframeTransferData(dst: NativeFrame, flags?: number): Promise<number>;
92
+ hwframeTransferDataSync(dst: NativeFrame, flags?: number): number;
92
93
  isHwFrame(): boolean;
93
94
  isSwFrame(): boolean;
94
95
  getSideData(type: AVFrameSideDataType): Buffer | null;
@@ -187,9 +188,13 @@ export interface NativeCodecContext extends Disposable {
187
188
  parametersFromContext(params: NativeCodecParameters): number;
188
189
  flushBuffers(): void;
189
190
  sendPacket(packet: NativePacket | null): Promise<number>;
191
+ sendPacketSync(packet: NativePacket | null): number;
190
192
  receiveFrame(frame: NativeFrame): Promise<number>;
193
+ receiveFrameSync(frame: NativeFrame): number;
191
194
  sendFrame(frame: NativeFrame | null): Promise<number>;
195
+ sendFrameSync(frame: NativeFrame | null): number;
192
196
  receivePacket(packet: NativePacket): Promise<number>;
197
+ receivePacketSync(packet: NativePacket): number;
193
198
  setHardwarePixelFormat(hwFormat: AVPixelFormat, swFormat?: AVPixelFormat): void;
194
199
  [Symbol.dispose](): void;
195
200
  }
@@ -282,13 +287,21 @@ export interface NativeIOContext extends AsyncDisposable {
282
287
  allocContextWithCallbacks(bufferSize: number, writeFlag: 0 | 1, readCallback?: (size: number) => Buffer | null | number, writeCallback?: (buffer: Buffer) => number | void, seekCallback?: (offset: bigint, whence: AVSeekWhence) => bigint | number): void;
283
288
  freeContext(): void;
284
289
  open2(url: string, flags: AVIOFlag): Promise<number>;
290
+ open2Sync(url: string, flags: AVIOFlag): number;
285
291
  closep(): Promise<number>;
292
+ closepSync(): number;
286
293
  read(size: number): Promise<Buffer | number>;
294
+ readSync(size: number): Buffer | number;
287
295
  write(buffer: Buffer): Promise<void>;
296
+ writeSync(buffer: Buffer): void;
288
297
  seek(offset: bigint, whence: AVSeekWhence): Promise<bigint>;
298
+ seekSync(offset: bigint, whence: AVSeekWhence): bigint;
289
299
  size(): Promise<bigint>;
300
+ sizeSync(): bigint;
290
301
  flush(): Promise<void>;
302
+ flushSync(): void;
291
303
  skip(offset: bigint): Promise<bigint>;
304
+ skipSync(offset: bigint): bigint;
292
305
  tell(): bigint;
293
306
  readonly eof: boolean;
294
307
  readonly error: number;
@@ -394,18 +407,30 @@ export interface NativeFormatContext extends AsyncDisposable {
394
407
  allocOutputContext2(oformat: NativeOutputFormat | null, formatName: string | null, filename: string | null): number;
395
408
  freeContext(): void;
396
409
  openInput(url: string, fmt: NativeInputFormat | null, options: NativeDictionary | null): Promise<number>;
410
+ openInputSync(url: string, fmt: NativeInputFormat | null, options: NativeDictionary | null): number;
397
411
  closeInput(): Promise<void>;
412
+ closeInputSync(): void;
398
413
  findStreamInfo(options: NativeDictionary[] | null): Promise<number>;
414
+ findStreamInfoSync(options: NativeDictionary | null): number;
399
415
  readFrame(pkt: NativePacket): Promise<number>;
416
+ readFrameSync(pkt: NativePacket): number;
400
417
  seekFrame(streamIndex: number, timestamp: bigint, flags: AVSeekFlag): Promise<number>;
418
+ seekFrameSync(streamIndex: number, timestamp: bigint, flags: AVSeekFlag): number;
401
419
  seekFile(streamIndex: number, minTs: bigint, ts: bigint, maxTs: bigint, flags: AVSeekFlag): Promise<number>;
402
420
  openOutput(): Promise<number>;
421
+ openOutputSync(): number;
403
422
  closeOutput(): Promise<void>;
423
+ closeOutputSync(): void;
404
424
  writeHeader(options: NativeDictionary | null): Promise<number>;
425
+ writeHeaderSync(options: NativeDictionary | null): number;
405
426
  writeFrame(pkt: NativePacket | null): Promise<number>;
427
+ writeFrameSync(pkt: NativePacket | null): number;
406
428
  interleavedWriteFrame(pkt: NativePacket | null): Promise<number>;
429
+ interleavedWriteFrameSync(pkt: NativePacket | null): number;
407
430
  writeTrailer(): Promise<number>;
408
- flush(): void;
431
+ writeTrailerSync(): number;
432
+ flush(): Promise<void>;
433
+ flushSync(): void;
409
434
  newStream(c: NativeCodec | null): NativeStream;
410
435
  dumpFormat(index: number, url: string, isOutput: boolean): void;
411
436
  findBestStream(type: AVMediaType, wantedStreamNb: number, relatedStream: number, wantDecoder: boolean, flags: number): number | {
@@ -442,8 +467,11 @@ export interface NativeAudioFifo extends Disposable {
442
467
  alloc(sampleFmt: AVSampleFormat, channels: number, nbSamples: number): void;
443
468
  free(): void;
444
469
  write(data: Buffer | Buffer[], nbSamples: number): Promise<number>;
470
+ writeSync(data: Buffer | Buffer[], nbSamples: number): number;
445
471
  read(data: Buffer | Buffer[], nbSamples: number): Promise<number>;
472
+ readSync(data: Buffer | Buffer[], nbSamples: number): number;
446
473
  peek(data: Buffer | Buffer[], nbSamples: number): Promise<number>;
474
+ peekSync(data: Buffer | Buffer[], nbSamples: number): number;
447
475
  drain(nbSamples: number): void;
448
476
  reset(): void;
449
477
  realloc(nbSamples: number): number;
@@ -463,7 +491,9 @@ export interface NativeSoftwareScaleContext extends Disposable {
463
491
  initContext(): number;
464
492
  freeContext(): void;
465
493
  scale(srcSlice: Buffer[], srcStride: number[], srcSliceY: number, srcSliceH: number, dst: Buffer[], dstStride: number[]): Promise<number>;
494
+ scaleSync(srcSlice: Buffer[], srcStride: number[], srcSliceY: number, srcSliceH: number, dst: Buffer[], dstStride: number[]): number;
466
495
  scaleFrame(dst: NativeFrame, src: NativeFrame): Promise<number>;
496
+ scaleFrameSync(dst: NativeFrame, src: NativeFrame): number;
467
497
  [Symbol.dispose](): void;
468
498
  }
469
499
  /**
@@ -482,6 +512,7 @@ export interface NativeSoftwareResampleContext extends Disposable {
482
512
  free(): void;
483
513
  close(): void;
484
514
  convert(outBuffer: Buffer[] | null, outCount: number, inBuffer: Buffer[] | null, inCount: number): Promise<number>;
515
+ convertSync(outBuffer: Buffer[] | null, outCount: number, inBuffer: Buffer[] | null, inCount: number): number;
485
516
  convertFrame(outFrame: NativeFrame | null, inFrame: NativeFrame | null): number;
486
517
  configFrame(outFrame: NativeFrame | null, inFrame: NativeFrame | null): number;
487
518
  isInitialized(): boolean;
@@ -533,6 +564,7 @@ export interface NativeFilterContext extends Disposable {
533
564
  link(srcPad: number, dst: NativeFilterContext, dstPad: number): number;
534
565
  unlink(pad: number): void;
535
566
  buffersrcAddFrame(frame: NativeFrame | null): Promise<number>;
567
+ buffersrcAddFrameSync(frame: NativeFrame | null): number;
536
568
  buffersrcParametersSet(params: {
537
569
  width?: number;
538
570
  height?: number;
@@ -545,6 +577,7 @@ export interface NativeFilterContext extends Disposable {
545
577
  channelLayout?: bigint;
546
578
  }): number;
547
579
  buffersinkGetFrame(frame: NativeFrame): Promise<number>;
580
+ buffersinkGetFrameSync(frame: NativeFrame): number;
548
581
  buffersinkGetWidth(): number;
549
582
  buffersinkGetHeight(): number;
550
583
  buffersinkGetFormat(): AVPixelFormat | AVSampleFormat;
@@ -577,11 +610,13 @@ export interface NativeFilterGraph extends Disposable {
577
610
  allocFilter(filter: NativeFilter, name: string): NativeFilterContext | null;
578
611
  getFilter(name: string): NativeFilterContext | null;
579
612
  config(): Promise<number>;
613
+ configSync(): number;
580
614
  parse(filters: string, inputs: NativeFilterInOut | null, outputs: NativeFilterInOut | null): number;
581
615
  parse2(filters: string): number;
582
616
  parsePtr(filters: string, inputs?: NativeFilterInOut | null, outputs?: NativeFilterInOut | null): number;
583
617
  validate(): number;
584
618
  requestOldest(): Promise<number>;
619
+ requestOldestSync(): number;
585
620
  dump(): string | null;
586
621
  sendCommand(target: string, cmd: string, arg: string, flags?: AVFilterCmdFlag): number | {
587
622
  response: string | null;
@@ -655,6 +690,7 @@ export interface NativeHardwareFramesContext extends Disposable {
655
690
  init(): number;
656
691
  getBuffer(frame: NativeFrame, flags?: number): number;
657
692
  transferData(dst: NativeFrame, src: NativeFrame, flags?: number): Promise<number>;
693
+ transferDataSync(dst: NativeFrame, src: NativeFrame, flags?: number): number;
658
694
  transferGetFormats(direction: AVHWFrameTransferDirection): AVPixelFormat[] | number;
659
695
  map(dst: NativeFrame, src: NativeFrame, flags?: number): number;
660
696
  createDerived(format: AVPixelFormat, derivedDevice: NativeHardwareDeviceContext, source: NativeHardwareFramesContext, flags?: number): number;
@@ -696,7 +732,9 @@ export interface NativeBitStreamFilterContext extends Disposable {
696
732
  free(): void;
697
733
  flush(): void;
698
734
  sendPacket(packet: NativePacket | null): Promise<number>;
735
+ sendPacketSync(packet: NativePacket | null): number;
699
736
  receivePacket(packet: NativePacket): Promise<number>;
737
+ receivePacketSync(packet: NativePacket): number;
700
738
  isInitialized(): boolean;
701
739
  [Symbol.dispose](): void;
702
740
  }
@@ -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