You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 line
740 B

  1. using JT1078.FMp4.Interfaces;
  2. using JT1078.FMp4.MessagePack;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace JT1078.FMp4
  7. {
  8. /// <summary>
  9. /// pasp
  10. /// </summary>
  11. public class PixelAspectRatioBox : Mp4Box, IFMp4MessagePackFormatter
  12. {
  13. /// <summary>
  14. /// pasp
  15. /// </summary>
  16. public PixelAspectRatioBox() : base("pasp")
  17. {
  18. }
  19. public uint HSpacing { get; set; }
  20. public uint VSpacing { get; set; }
  21. public void ToBuffer(ref FMp4MessagePackWriter writer)
  22. {
  23. Start(ref writer);
  24. writer.WriteUInt32(HSpacing);
  25. writer.WriteUInt32(VSpacing);
  26. End(ref writer);
  27. }
  28. }
  29. }