Source: externs/shaka/codecs.js

  1. /*! @license
  2. * Shaka Player
  3. * Copyright 2023 Google LLC
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @externs
  8. */
  9. /**
  10. * @typedef {{
  11. * data: !Uint8Array,
  12. * packetLength: number,
  13. * pts: ?number,
  14. * dts: ?number,
  15. * nalus: !Array.<!shaka.extern.VideoNalu>
  16. * }}
  17. *
  18. * @summary MPEG_PES.
  19. * @property {!Uint8Array} data
  20. * @property {number} packetLength
  21. * @property {?number} pts
  22. * @property {?number} dts
  23. * @property {!Array.<!shaka.extern.VideoNalu>} nalus
  24. */
  25. shaka.extern.MPEG_PES;
  26. /**
  27. * @typedef {{
  28. * data: !Uint8Array,
  29. * fullData: !Uint8Array,
  30. * type: number,
  31. * time: ?number
  32. * }}
  33. *
  34. * @summary VideoNalu.
  35. * @property {!Uint8Array} data
  36. * @property {!Uint8Array} fullData
  37. * @property {number} type
  38. * @property {?number} time
  39. */
  40. shaka.extern.VideoNalu;
  41. /**
  42. * @typedef {{
  43. * projection: ?string,
  44. * hfov: ?number
  45. * }}
  46. *
  47. * @summary VideoNalu.
  48. * @property {?string} projection
  49. * @property {?number} hfov
  50. */
  51. shaka.extern.SpatialVideoInfo;