riff-ids.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. /* GStreamer RIFF I/O
  2. * Copyright (C) 2003 Ronald Bultje <[email protected]>
  3. *
  4. * riff-ids.h: RIFF IDs and structs
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. */
  21. #ifndef __GST_RIFF_IDS_H__
  22. #define __GST_RIFF_IDS_H__
  23. #include <gst/gst.h>
  24. G_BEGIN_DECLS
  25. /* RIFF types */
  26. #define GST_RIFF_RIFF_WAVE GST_MAKE_FOURCC ('W','A','V','E')
  27. #define GST_RIFF_RIFF_AVI GST_MAKE_FOURCC ('A','V','I',' ')
  28. #define GST_RIFF_RIFF_CDXA GST_MAKE_FOURCC ('C','D','X','A')
  29. /* tags */
  30. #define GST_RIFF_TAG_RIFF GST_MAKE_FOURCC ('R','I','F','F')
  31. #define GST_RIFF_TAG_AVF0 GST_MAKE_FOURCC ('A','V','F','0')
  32. #define GST_RIFF_TAG_RIFX GST_MAKE_FOURCC ('R','I','F','X')
  33. #define GST_RIFF_TAG_LIST GST_MAKE_FOURCC ('L','I','S','T')
  34. #define GST_RIFF_TAG_avih GST_MAKE_FOURCC ('a','v','i','h')
  35. #define GST_RIFF_TAG_strd GST_MAKE_FOURCC ('s','t','r','d')
  36. #define GST_RIFF_TAG_strn GST_MAKE_FOURCC ('s','t','r','n')
  37. #define GST_RIFF_TAG_strh GST_MAKE_FOURCC ('s','t','r','h')
  38. #define GST_RIFF_TAG_strf GST_MAKE_FOURCC ('s','t','r','f')
  39. #define GST_RIFF_TAG_vedt GST_MAKE_FOURCC ('v','e','d','t')
  40. #define GST_RIFF_TAG_JUNK GST_MAKE_FOURCC ('J','U','N','K')
  41. #define GST_RIFF_TAG_JUNQ GST_MAKE_FOURCC ('J','U','N','Q')
  42. #define GST_RIFF_TAG_idx1 GST_MAKE_FOURCC ('i','d','x','1')
  43. #define GST_RIFF_TAG_dmlh GST_MAKE_FOURCC ('d','m','l','h')
  44. #define GST_RIFF_TAG_ID32 GST_MAKE_FOURCC ('I','D','3','2')
  45. #define GST_RIFF_TAG_id3 GST_MAKE_FOURCC ('i','d','3',' ')
  46. #define GST_RIFF_TAG_IDVX GST_MAKE_FOURCC ('I','D','V','X')
  47. /* WAV stuff */
  48. #define GST_RIFF_TAG_fmt GST_MAKE_FOURCC ('f','m','t',' ')
  49. #define GST_RIFF_TAG_data GST_MAKE_FOURCC ('d','a','t','a')
  50. #define GST_RIFF_TAG_plst GST_MAKE_FOURCC ('p','l','s','t')
  51. #define GST_RIFF_TAG_cue GST_MAKE_FOURCC ('c','u','e',' ')
  52. #define GST_RIFF_TAG_bext GST_MAKE_FOURCC ('b','e','x','t')
  53. #define GST_RIFF_TAG_BEXT GST_MAKE_FOURCC ('B','E','X','T')
  54. #define GST_RIFF_TAG_fact GST_MAKE_FOURCC ('f','a','c','t')
  55. #define GST_RIFF_TAG_acid GST_MAKE_FOURCC ('a','c','i','d')
  56. #define GST_RIFF_TAG_labl GST_MAKE_FOURCC ('l','a','b','l')
  57. #define GST_RIFF_TAG_note GST_MAKE_FOURCC ('n','o','t','e')
  58. #define GST_RIFF_TAG_smpl GST_MAKE_FOURCC ('s','m','p','l')
  59. #define GST_RIFF_TAG_inst GST_MAKE_FOURCC ('i','n','s','t')
  60. /* LIST types */
  61. #define GST_RIFF_LIST_movi GST_MAKE_FOURCC ('m','o','v','i')
  62. #define GST_RIFF_LIST_hdrl GST_MAKE_FOURCC ('h','d','r','l')
  63. #define GST_RIFF_LIST_odml GST_MAKE_FOURCC ('o','d','m','l')
  64. #define GST_RIFF_LIST_strl GST_MAKE_FOURCC ('s','t','r','l')
  65. #define GST_RIFF_LIST_INFO GST_MAKE_FOURCC ('I','N','F','O')
  66. #define GST_RIFF_LIST_AVIX GST_MAKE_FOURCC ('A','V','I','X')
  67. #define GST_RIFF_LIST_adtl GST_MAKE_FOURCC ('a','d','t','l')
  68. #define GST_RIFF_LIST_ncdt GST_MAKE_FOURCC ('n','c','d','t')
  69. /* fcc types */
  70. #define GST_RIFF_FCC_vids GST_MAKE_FOURCC ('v','i','d','s')
  71. #define GST_RIFF_FCC_auds GST_MAKE_FOURCC ('a','u','d','s')
  72. #define GST_RIFF_FCC_pads GST_MAKE_FOURCC ('p','a','d','s')
  73. #define GST_RIFF_FCC_txts GST_MAKE_FOURCC ('t','x','t','s')
  74. #define GST_RIFF_FCC_vidc GST_MAKE_FOURCC ('v','i','d','c')
  75. #define GST_RIFF_FCC_iavs GST_MAKE_FOURCC ('i','a','v','s')
  76. /* fcc handlers */
  77. #define GST_RIFF_FCCH_RLE GST_MAKE_FOURCC ('R','L','E',' ')
  78. #define GST_RIFF_FCCH_msvc GST_MAKE_FOURCC ('m','s','v','c')
  79. #define GST_RIFF_FCCH_MSVC GST_MAKE_FOURCC ('M','S','V','C')
  80. /* INFO types - see http://www.saettler.com/RIFFMCI/riffmci.html */
  81. #define GST_RIFF_INFO_IARL GST_MAKE_FOURCC ('I','A','R','L') /* location */
  82. #define GST_RIFF_INFO_IART GST_MAKE_FOURCC ('I','A','R','T') /* artist */
  83. #define GST_RIFF_INFO_ICMS GST_MAKE_FOURCC ('I','C','M','S') /* commissioned */
  84. #define GST_RIFF_INFO_ICMT GST_MAKE_FOURCC ('I','C','M','T') /* comment */
  85. #define GST_RIFF_INFO_ICOP GST_MAKE_FOURCC ('I','C','O','P') /* copyright */
  86. #define GST_RIFF_INFO_ICRD GST_MAKE_FOURCC ('I','C','R','D') /* creation date */
  87. #define GST_RIFF_INFO_ICRP GST_MAKE_FOURCC ('I','C','R','P') /* cropped */
  88. #define GST_RIFF_INFO_IDIM GST_MAKE_FOURCC ('I','D','I','M') /* dimensions */
  89. #define GST_RIFF_INFO_IDPI GST_MAKE_FOURCC ('I','D','P','I') /* dots-per-inch */
  90. #define GST_RIFF_INFO_IENG GST_MAKE_FOURCC ('I','E','N','G') /* engineer(s) */
  91. #define GST_RIFF_INFO_IGNR GST_MAKE_FOURCC ('I','G','N','R') /* genre */
  92. #define GST_RIFF_INFO_IKEY GST_MAKE_FOURCC ('I','K','E','Y') /* keywords */
  93. #define GST_RIFF_INFO_ILGT GST_MAKE_FOURCC ('I','L','G','T') /* lightness */
  94. #define GST_RIFF_INFO_IMED GST_MAKE_FOURCC ('I','M','E','D') /* medium */
  95. #define GST_RIFF_INFO_INAM GST_MAKE_FOURCC ('I','N','A','M') /* name */
  96. #define GST_RIFF_INFO_IPLT GST_MAKE_FOURCC ('I','P','L','T') /* palette setting */
  97. #define GST_RIFF_INFO_IPRD GST_MAKE_FOURCC ('I','P','R','D') /* product (album) */
  98. #define GST_RIFF_INFO_ISBJ GST_MAKE_FOURCC ('I','S','B','J') /* subject */
  99. #define GST_RIFF_INFO_ISFT GST_MAKE_FOURCC ('I','S','F','T') /* software */
  100. #define GST_RIFF_INFO_ISHP GST_MAKE_FOURCC ('I','S','H','P') /* sharpness */
  101. #define GST_RIFF_INFO_ISRC GST_MAKE_FOURCC ('I','S','R','C') /* source */
  102. #define GST_RIFF_INFO_ISRF GST_MAKE_FOURCC ('I','S','R','F') /* source form */
  103. #define GST_RIFF_INFO_ITCH GST_MAKE_FOURCC ('I','T','C','H') /* technician(s) */
  104. #define GST_RIFF_INFO_IAAR GST_MAKE_FOURCC ('I','A','A','R') /* album artist */
  105. #define GST_RIFF_INFO_ITRK GST_MAKE_FOURCC ('I','T','R','K') /* track number */
  106. /* ncdt types - see http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html#NCDT */
  107. #define GST_RIFF_LIST_nctg GST_MAKE_FOURCC ('n','c','t','g')
  108. /*********Chunk Names***************/
  109. #define GST_RIFF_FF00 GST_MAKE_FOURCC (0xFF,0xFF,0x00,0x00)
  110. #define GST_RIFF_00 GST_MAKE_FOURCC ('0', '0',0x00,0x00)
  111. #define GST_RIFF_01 GST_MAKE_FOURCC ('0', '1',0x00,0x00)
  112. #define GST_RIFF_02 GST_MAKE_FOURCC ('0', '2',0x00,0x00)
  113. #define GST_RIFF_03 GST_MAKE_FOURCC ('0', '3',0x00,0x00)
  114. #define GST_RIFF_04 GST_MAKE_FOURCC ('0', '4',0x00,0x00)
  115. #define GST_RIFF_05 GST_MAKE_FOURCC ('0', '5',0x00,0x00)
  116. #define GST_RIFF_06 GST_MAKE_FOURCC ('0', '6',0x00,0x00)
  117. #define GST_RIFF_07 GST_MAKE_FOURCC ('0', '7',0x00,0x00)
  118. #define GST_RIFF_00pc GST_MAKE_FOURCC ('0', '0', 'p', 'c')
  119. #define GST_RIFF_01pc GST_MAKE_FOURCC ('0', '1', 'p', 'c')
  120. #define GST_RIFF_00dc GST_MAKE_FOURCC ('0', '0', 'd', 'c')
  121. #define GST_RIFF_00dx GST_MAKE_FOURCC ('0', '0', 'd', 'x')
  122. #define GST_RIFF_00db GST_MAKE_FOURCC ('0', '0', 'd', 'b')
  123. #define GST_RIFF_00xx GST_MAKE_FOURCC ('0', '0', 'x', 'x')
  124. #define GST_RIFF_00id GST_MAKE_FOURCC ('0', '0', 'i', 'd')
  125. #define GST_RIFF_00rt GST_MAKE_FOURCC ('0', '0', 'r', 't')
  126. #define GST_RIFF_0021 GST_MAKE_FOURCC ('0', '0', '2', '1')
  127. #define GST_RIFF_00iv GST_MAKE_FOURCC ('0', '0', 'i', 'v')
  128. #define GST_RIFF_0031 GST_MAKE_FOURCC ('0', '0', '3', '1')
  129. #define GST_RIFF_0032 GST_MAKE_FOURCC ('0', '0', '3', '2')
  130. #define GST_RIFF_00vc GST_MAKE_FOURCC ('0', '0', 'v', 'c')
  131. #define GST_RIFF_00xm GST_MAKE_FOURCC ('0', '0', 'x', 'm')
  132. #define GST_RIFF_01wb GST_MAKE_FOURCC ('0', '1', 'w', 'b')
  133. #define GST_RIFF_01dc GST_MAKE_FOURCC ('0', '1', 'd', 'c')
  134. #define GST_RIFF_00__ GST_MAKE_FOURCC ('0', '0', '_', '_')
  135. /*********VIDEO CODECS**************/
  136. #define GST_RIFF_cram GST_MAKE_FOURCC ('c', 'r', 'a', 'm')
  137. #define GST_RIFF_CRAM GST_MAKE_FOURCC ('C', 'R', 'A', 'M')
  138. #define GST_RIFF_wham GST_MAKE_FOURCC ('w', 'h', 'a', 'm')
  139. #define GST_RIFF_WHAM GST_MAKE_FOURCC ('W', 'H', 'A', 'M')
  140. #define GST_RIFF_rgb GST_MAKE_FOURCC (0x00,0x00,0x00,0x00)
  141. #define GST_RIFF_RGB GST_MAKE_FOURCC ('R', 'G', 'B', ' ')
  142. #define GST_RIFF_RAW GST_MAKE_FOURCC ('R', 'A', 'W', ' ')
  143. #define GST_RIFF_DIB GST_MAKE_FOURCC ('D', 'I', 'B', ' ')
  144. #define GST_RIFF_rle8 GST_MAKE_FOURCC (0x01,0x00,0x00,0x00)
  145. #define GST_RIFF_RLE8 GST_MAKE_FOURCC ('R', 'L', 'E', '8')
  146. #define GST_RIFF_rle4 GST_MAKE_FOURCC (0x02,0x00,0x00,0x00)
  147. #define GST_RIFF_RLE4 GST_MAKE_FOURCC ('R', 'L', 'E', '4')
  148. #define GST_RIFF_none GST_MAKE_FOURCC (0x00,0x00,0xFF,0xFF)
  149. #define GST_RIFF_NONE GST_MAKE_FOURCC ('N', 'O', 'N', 'E')
  150. #define GST_RIFF_pack GST_MAKE_FOURCC (0x01,0x00,0xFF,0xFF)
  151. #define GST_RIFF_PACK GST_MAKE_FOURCC ('P', 'A', 'C', 'K')
  152. #define GST_RIFF_tran GST_MAKE_FOURCC (0x02,0x00,0xFF,0xFF)
  153. #define GST_RIFF_TRAN GST_MAKE_FOURCC ('T', 'R', 'A', 'N')
  154. #define GST_RIFF_ccc GST_MAKE_FOURCC (0x03,0x00,0xFF,0xFF)
  155. #define GST_RIFF_CCC GST_MAKE_FOURCC ('C', 'C', 'C', ' ')
  156. #define GST_RIFF_cyuv GST_MAKE_FOURCC ('c', 'y', 'u', 'v')
  157. #define GST_RIFF_CYUV GST_MAKE_FOURCC ('C', 'Y', 'U', 'V')
  158. #define GST_RIFF_jpeg GST_MAKE_FOURCC (0x04,0x00,0xFF,0xFF)
  159. #define GST_RIFF_JPEG GST_MAKE_FOURCC ('J', 'P', 'E', 'G')
  160. #define GST_RIFF_MJPG GST_MAKE_FOURCC ('M', 'J', 'P', 'G')
  161. #define GST_RIFF_mJPG GST_MAKE_FOURCC ('m', 'J', 'P', 'G')
  162. #define GST_RIFF_IJPG GST_MAKE_FOURCC ('I', 'J', 'P', 'G')
  163. #define GST_RIFF_rt21 GST_MAKE_FOURCC ('r', 't', '2', '1')
  164. #define GST_RIFF_RT21 GST_MAKE_FOURCC ('R', 'T', '2', '1')
  165. #define GST_RIFF_iv31 GST_MAKE_FOURCC ('i', 'v', '3', '1')
  166. #define GST_RIFF_IV31 GST_MAKE_FOURCC ('I', 'V', '3', '1')
  167. #define GST_RIFF_iv32 GST_MAKE_FOURCC ('i', 'v', '3', '2')
  168. #define GST_RIFF_IV32 GST_MAKE_FOURCC ('I', 'V', '3', '2')
  169. #define GST_RIFF_iv41 GST_MAKE_FOURCC ('i', 'v', '4', '1')
  170. #define GST_RIFF_IV41 GST_MAKE_FOURCC ('I', 'V', '4', '1')
  171. #define GST_RIFF_iv50 GST_MAKE_FOURCC ('i', 'v', '5', '0')
  172. #define GST_RIFF_IV50 GST_MAKE_FOURCC ('I', 'V', '5', '0')
  173. #define GST_RIFF_cvid GST_MAKE_FOURCC ('c', 'v', 'i', 'd')
  174. #define GST_RIFF_CVID GST_MAKE_FOURCC ('C', 'V', 'I', 'D')
  175. #define GST_RIFF_ULTI GST_MAKE_FOURCC ('U', 'L', 'T', 'I')
  176. #define GST_RIFF_ulti GST_MAKE_FOURCC ('u', 'l', 't', 'i')
  177. #define GST_RIFF_YUV9 GST_MAKE_FOURCC ('Y', 'V', 'U', '9')
  178. #define GST_RIFF_YVU9 GST_MAKE_FOURCC ('Y', 'U', 'V', '9')
  179. #define GST_RIFF_XMPG GST_MAKE_FOURCC ('X', 'M', 'P', 'G')
  180. #define GST_RIFF_xmpg GST_MAKE_FOURCC ('x', 'm', 'p', 'g')
  181. #define GST_RIFF_VDOW GST_MAKE_FOURCC ('V', 'D', 'O', 'W')
  182. #define GST_RIFF_MVI1 GST_MAKE_FOURCC ('M', 'V', 'I', '1')
  183. #define GST_RIFF_v422 GST_MAKE_FOURCC ('v', '4', '2', '2')
  184. #define GST_RIFF_V422 GST_MAKE_FOURCC ('V', '4', '2', '2')
  185. #define GST_RIFF_mvi1 GST_MAKE_FOURCC ('m', 'v', 'i', '1')
  186. #define GST_RIFF_MPIX GST_MAKE_FOURCC (0x04,0x00, 'i', '1') /* MotionPixels munged their id */
  187. #define GST_RIFF_AURA GST_MAKE_FOURCC ('A', 'U', 'R', 'A')
  188. #define GST_RIFF_DMB1 GST_MAKE_FOURCC ('D', 'M', 'B', '1')
  189. #define GST_RIFF_dmb1 GST_MAKE_FOURCC ('d', 'm', 'b', '1')
  190. #define GST_RIFF_BW10 GST_MAKE_FOURCC ('B', 'W', '1', '0')
  191. #define GST_RIFF_bw10 GST_MAKE_FOURCC ('b', 'w', '1', '0')
  192. #define GST_RIFF_yuy2 GST_MAKE_FOURCC ('y', 'u', 'y', '2')
  193. #define GST_RIFF_YUY2 GST_MAKE_FOURCC ('Y', 'U', 'Y', '2')
  194. #define GST_RIFF_YUV8 GST_MAKE_FOURCC ('Y', 'U', 'V', '8')
  195. #define GST_RIFF_WINX GST_MAKE_FOURCC ('W', 'I', 'N', 'X')
  196. #define GST_RIFF_WPY2 GST_MAKE_FOURCC ('W', 'P', 'Y', '2')
  197. #define GST_RIFF_m263 GST_MAKE_FOURCC ('m', '2', '6', '3')
  198. #define GST_RIFF_M263 GST_MAKE_FOURCC ('M', '2', '6', '3')
  199. #define GST_RIFF_H263 GST_MAKE_FOURCC ('H', '2', '6', '3')
  200. #define GST_RIFF_h263 GST_MAKE_FOURCC ('h', '2', '6', '3')
  201. #define GST_RIFF_i263 GST_MAKE_FOURCC ('i', '2', '6', '3')
  202. #define GST_RIFF_L263 GST_MAKE_FOURCC ('L', '2', '6', '3')
  203. #define GST_RIFF_x263 GST_MAKE_FOURCC ('x', '2', '6', '3')
  204. #define GST_RIFF_VSSH GST_MAKE_FOURCC ( 'V', 'S', 'S', 'H') /* H2.64 */
  205. #define GST_RIFF_Q1_0 GST_MAKE_FOURCC ('Q', '1',0x2e, '0')
  206. #define GST_RIFF_SFMC GST_MAKE_FOURCC ('S', 'F', 'M', 'C')
  207. #define GST_RIFF_y41p GST_MAKE_FOURCC ('y', '4', '1', 'p')
  208. #define GST_RIFF_Y41P GST_MAKE_FOURCC ('Y', '4', '1', 'P')
  209. #define GST_RIFF_yv12 GST_MAKE_FOURCC ('y', 'v', '1', '2')
  210. #define GST_RIFF_YV12 GST_MAKE_FOURCC ('Y', 'V', '1', '2')
  211. #define GST_RIFF_vixl GST_MAKE_FOURCC ('v', 'i', 'x', 'l')
  212. #define GST_RIFF_VIXL GST_MAKE_FOURCC ('V', 'I', 'X', 'L')
  213. #define GST_RIFF_iyuv GST_MAKE_FOURCC ('i', 'y', 'u', 'v')
  214. #define GST_RIFF_IYUV GST_MAKE_FOURCC ('I', 'Y', 'U', 'V')
  215. #define GST_RIFF_i420 GST_MAKE_FOURCC ('i', '4', '2', '0')
  216. #define GST_RIFF_I420 GST_MAKE_FOURCC ('I', '4', '2', '0')
  217. #define GST_RIFF_vyuy GST_MAKE_FOURCC ('v', 'y', 'u', 'y')
  218. #define GST_RIFF_VYUY GST_MAKE_FOURCC ('V', 'Y', 'U', 'Y')
  219. #define GST_RIFF_DIV3 GST_MAKE_FOURCC ('D', 'I', 'V', '3')
  220. #define GST_RIFF_rpza GST_MAKE_FOURCC ('r', 'p', 'z', 'a')
  221. /* And this here's the mistakes that need to be supported */
  222. #define GST_RIFF_azpr GST_MAKE_FOURCC ('a', 'z', 'p', 'r') /* recognize Apple's rpza mangled? */
  223. /*********** FND in MJPG **********/
  224. #define GST_RIFF_ISFT GST_MAKE_FOURCC ('I', 'S', 'F', 'T')
  225. #define GST_RIFF_IDIT GST_MAKE_FOURCC ('I', 'D', 'I', 'T')
  226. #define GST_RIFF_00AM GST_MAKE_FOURCC ('0', '0', 'A', 'M')
  227. #define GST_RIFF_DISP GST_MAKE_FOURCC ('D', 'I', 'S', 'P')
  228. #define GST_RIFF_ISBJ GST_MAKE_FOURCC ('I', 'S', 'B', 'J')
  229. #define GST_RIFF_rec GST_MAKE_FOURCC ('r', 'e', 'c', ' ')
  230. /* common data structures */
  231. typedef struct _gst_riff_strh {
  232. guint32 type; /* stream type */
  233. guint32 fcc_handler; /* fcc_handler */
  234. guint32 flags;
  235. /* flags values */
  236. #define GST_RIFF_STRH_DISABLED 0x000000001
  237. #define GST_RIFF_STRH_VIDEOPALCHANGES 0x000010000
  238. guint32 priority;
  239. guint32 init_frames; /* initial frames (???) */
  240. guint32 scale;
  241. guint32 rate;
  242. guint32 start;
  243. guint32 length;
  244. guint32 bufsize; /* suggested buffer size */
  245. guint32 quality;
  246. guint32 samplesize;
  247. /* rcFrame, RECT structure(struct of 4 shorts)
  248. gint32 left;
  249. gint32 top;
  250. gint32 right;
  251. gint32 bottom;
  252. */
  253. } gst_riff_strh;
  254. typedef struct _gst_riff_strf_vids { /* == BitMapInfoHeader */
  255. guint32 size;
  256. guint32 width;
  257. guint32 height;
  258. guint16 planes;
  259. guint16 bit_cnt;
  260. guint32 compression;
  261. guint32 image_size;
  262. guint32 xpels_meter;
  263. guint32 ypels_meter;
  264. guint32 num_colors; /* used colors */
  265. guint32 imp_colors; /* important colors */
  266. /* may be more for some codecs */
  267. } gst_riff_strf_vids;
  268. typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
  269. guint16 format;
  270. /**** from public Microsoft RIFF docs ******/
  271. #define GST_RIFF_WAVE_FORMAT_UNKNOWN (0x0000)
  272. #define GST_RIFF_WAVE_FORMAT_PCM (0x0001)
  273. #define GST_RIFF_WAVE_FORMAT_ADPCM (0x0002)
  274. #define GST_RIFF_WAVE_FORMAT_IEEE_FLOAT (0x0003)
  275. #define GST_RIFF_WAVE_FORMAT_VSELP (0x0004)
  276. #define GST_RIFF_WAVE_FORMAT_IBM_CVSD (0x0005)
  277. #define GST_RIFF_WAVE_FORMAT_ALAW (0x0006)
  278. #define GST_RIFF_WAVE_FORMAT_MULAW (0x0007)
  279. #define GST_RIFF_WAVE_FORMAT_WMS (0x000a) /* WMS Windows Media Audio Speech */
  280. #define GST_RIFF_WAVE_FORMAT_OKI_ADPCM (0x0010)
  281. #define GST_RIFF_WAVE_FORMAT_DVI_ADPCM (0x0011)
  282. #define GST_RIFF_WAVE_FORMAT_MEDIASPACE_ADPCM (0x0012)
  283. #define GST_RIFF_WAVE_FORMAT_SIERRA_ADPCM (0x0013)
  284. #define GST_RIFF_WAVE_FORMAT_G723_ADPCM (0x0014)
  285. #define GST_RIFF_WAVE_FORMAT_DIGISTD (0x0015)
  286. #define GST_RIFF_WAVE_FORMAT_DIGIFIX (0x0016)
  287. #define GST_RIFF_WAVE_FORMAT_DIALOGIC_OKI_ADPCM (0x0017)
  288. #define GST_RIFF_WAVE_FORMAT_MEDIAVISION_ADPCM (0x0018)
  289. #define GST_RIFF_WAVE_FORMAT_CU_CODEC (0x0019)
  290. #define GST_RIFF_WAVE_FORMAT_YAMAHA_ADPCM (0x0020)
  291. #define GST_RIFF_WAVE_FORMAT_SONARC (0x0021)
  292. #define GST_RIFF_WAVE_FORMAT_DSP_TRUESPEECH (0x0022)
  293. #define GST_RIFF_WAVE_FORMAT_ECHOSC1 (0x0023)
  294. #define GST_RIFF_WAVE_FORMAT_AUDIOFILE_AF36 (0x0024)
  295. #define GST_RIFF_WAVE_FORMAT_APTX (0x0025)
  296. #define GST_RIFF_WAVE_FORMAT_AUDIOFILE_AF10 (0x0026)
  297. #define GST_RIFF_WAVE_FORMAT_PROSODY_1612 (0x0027)
  298. #define GST_RIFF_WAVE_FORMAT_LRC (0x0028)
  299. #define GST_RIFF_WAVE_FORMAT_DOLBY_AC2 (0x0030)
  300. #define GST_RIFF_WAVE_FORMAT_GSM610 (0x0031)
  301. #define GST_RIFF_WAVE_FORMAT_MSN (0x0032)
  302. #define GST_RIFF_WAVE_FORMAT_ANTEX_ADPCME (0x0033
  303. #define GST_RIFF_WAVE_FORMAT_CONTROL_RES_VQLPC (0x0034)
  304. #define GST_RIFF_WAVE_FORMAT_DIGIREAL (0x0035)
  305. #define GST_RIFF_WAVE_FORMAT_DIGIADPCM (0x0036)
  306. #define GST_RIFF_WAVE_FORMAT_CONTROL_RES_CR10 (0x0037)
  307. #define GST_RIFF_WAVE_FORMAT_NMS_VBXADPCM (0x0038)
  308. #define GST_RIFF_WAVE_FORMAT_CS_IMAADPCM (0x0039)
  309. #define GST_RIFF_WAVE_FORMAT_ECHOSC3 (0x003A)
  310. #define GST_RIFF_WAVE_FORMAT_ROCKWELL_ADPCM (0x003B)
  311. #define GST_RIFF_WAVE_FORMAT_ROCKWELL_DIGITALK (0x003C)
  312. #define GST_RIFF_WAVE_FORMAT_XEBEC (0x003D)
  313. #define GST_RIFF_WAVE_FORMAT_ITU_G721_ADPCM (0x0040)
  314. #define GST_RIFF_WAVE_FORMAT_G728_CELP (0x0041)
  315. #define GST_RIFF_WAVE_FORMAT_MSG723 (0x0042)
  316. #define GST_RIFF_WAVE_FORMAT_ITU_G726_ADPCM (0x0045)
  317. #define GST_RIFF_WAVE_FORMAT_MPEGL12 (0x0050)
  318. #define GST_RIFF_WAVE_FORMAT_RT24 (0x0052)
  319. #define GST_RIFF_WAVE_FORMAT_PAC (0x0053)
  320. #define GST_RIFF_WAVE_FORMAT_MPEGL3 (0x0055)
  321. #define GST_RIFF_WAVE_FORMAT_AMR_NB (0x0057)
  322. #define GST_RIFF_WAVE_FORMAT_AMR_WB (0x0058)
  323. #define GST_RIFF_WAVE_FORMAT_LUCENT_G723 (0x0059)
  324. #define GST_RIFF_WAVE_FORMAT_CIRRUS (0x0060)
  325. #define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4 (0x0061) /* not official */
  326. #define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK3 (0x0062) /* not official */
  327. /* FIXME: where are these from? are they used at all? */
  328. #if 0
  329. #define GST_RIFF_WAVE_FORMAT_ESPCM (0x0061)
  330. #define GST_RIFF_WAVE_FORMAT_VOXWARE (0x0062)
  331. #endif
  332. #define GST_RIFF_WAVE_FORMAT_CANOPUS_ATRAC (0x0063)
  333. #define GST_RIFF_WAVE_FORMAT_G726_ADPCM (0x0064)
  334. #define GST_RIFF_WAVE_FORMAT_G722_ADPCM (0x0065)
  335. #define GST_RIFF_WAVE_FORMAT_DSAT_DISPLAY (0x0067)
  336. #define GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV (0x0069)
  337. /* FIXME: where are these from? are they used at all? */
  338. #if 0
  339. #define GST_RIFF_WAVE_FORMAT_VOXWARE_BYTE_ALIGNED (0x0069)
  340. #endif
  341. #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC8 (0x0070)
  342. #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC10 (0x0071)
  343. #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC16 (0x0072)
  344. #define GST_RIFF_WAVE_FORMAT_VOXWARE_AC20 (0x0073)
  345. #define GST_RIFF_WAVE_FORMAT_VOXWARE_METAVOICE (0x0074)
  346. #define GST_RIFF_WAVE_FORMAT_VOXWARE_METASOUND (0x0075)
  347. #define GST_RIFF_WAVE_FORMAT_VOXWARE_RT29HW (0x0076)
  348. #define GST_RIFF_WAVE_FORMAT_VOXWARE_VR12 (0x0077)
  349. #define GST_RIFF_WAVE_FORMAT_VOXWARE_VR18 (0x0078)
  350. #define GST_RIFF_WAVE_FORMAT_VOXWARE_TQ40 (0x0079)
  351. #define GST_RIFF_WAVE_FORMAT_SOFTSOUND (0x0080)
  352. #define GST_RIFF_WAVE_FORMAT_VOXWARE_TQ60 (0x0081)
  353. #define GST_RIFF_WAVE_FORMAT_MSRT24 (0x0082)
  354. #define GST_RIFF_WAVE_FORMAT_G729A (0x0083)
  355. #define GST_RIFF_WAVE_FORMAT_MVI_MVI2 (0x0084)
  356. #define GST_RIFF_WAVE_FORMAT_DF_G726 (0x0085)
  357. #define GST_RIFF_WAVE_FORMAT_DF_GSM610 (0x0086)
  358. #define GST_RIFF_WAVE_FORMAT_ISIAUDIO (0x0088)
  359. #define GST_RIFF_WAVE_FORMAT_ONLIVE (0x0089)
  360. #define GST_RIFF_WAVE_FORMAT_SBC24 (0x0091)
  361. #define GST_RIFF_WAVE_FORMAT_DOLBY_AC3_SPDIF (0x0092)
  362. #define GST_RIFF_WAVE_FORMAT_MEDIASONIC_G723 (0x0093)
  363. #define GST_RIFF_WAVE_FORMAT_PROSODY_8KBPS (0x0094)
  364. #define GST_RIFF_WAVE_FORMAT_ZYXEL_ADPCM (0x0097)
  365. #define GST_RIFF_WAVE_FORMAT_PHILIPS_LPCBB (0x0098)
  366. #define GST_RIFF_WAVE_FORMAT_PACKED (0x0099)
  367. #define GST_RIFF_WAVE_FORMAT_MALDEN_PHONYTALK (0x00A0)
  368. #define GST_RIFF_WAVE_FORMAT_AAC (0x00ff)
  369. #define GST_RIFF_WAVE_FORMAT_RHETOREX_ADPCM (0x0100)
  370. #define GST_RIFF_IBM_FORMAT_MULAW (0x0101)
  371. #define GST_RIFF_IBM_FORMAT_ALAW (0x0102)
  372. #define GST_RIFF_IBM_FORMAT_ADPCM (0x0103)
  373. #define GST_RIFF_WAVE_FORMAT_VIVO_G723 (0x0111)
  374. #define GST_RIFF_WAVE_FORMAT_VIVO_SIREN (0x0112)
  375. #define GST_RIFF_WAVE_FORMAT_DIGITAL_G723 (0x0123)
  376. #define GST_RIFF_WAVE_FORMAT_SANYO_LD_ADPCM (0x0125)
  377. #define GST_RIFF_WAVE_FORMAT_SIPROLAB_ACEPLNET (0x0130)
  378. #define GST_RIFF_WAVE_FORMAT_SIPROLAB_ACELP4800 (0x0131)
  379. #define GST_RIFF_WAVE_FORMAT_SIPROLAB_ACELP8V3 (0x0132)
  380. #define GST_RIFF_WAVE_FORMAT_SIPROLAB_G729 (0x0133)
  381. #define GST_RIFF_WAVE_FORMAT_SIPROLAB_G729A (0x0134)
  382. #define GST_RIFF_WAVE_FORMAT_SIPROLAB_KELVIN (0x0135)
  383. #define GST_RIFF_WAVE_FORMAT_G726ADPCM (0x0140)
  384. #define GST_RIFF_WAVE_FORMAT_QUALCOMM_PUREVOICE (0x0150)
  385. #define GST_RIFF_WAVE_FORMAT_QUALCOMM_HALFRATE (0x0151)
  386. #define GST_RIFF_WAVE_FORMAT_TUBGSM (0x0155)
  387. #define GST_RIFF_WAVE_FORMAT_WMAV1 (0x0160)
  388. #define GST_RIFF_WAVE_FORMAT_WMAV2 (0x0161)
  389. #define GST_RIFF_WAVE_FORMAT_WMAV3 (0x0162)
  390. #define GST_RIFF_WAVE_FORMAT_WMAV3_L (0x0163)
  391. #define GST_RIFF_WAVE_FORMAT_CREATIVE_ADPCM (0x0200)
  392. #define GST_RIFF_WAVE_FORMAT_CREATIVE_FASTSPEECH8 (0x0202)
  393. #define GST_RIFF_WAVE_FORMAT_CREATIVE_FASTSPEECH10 (0x0203)
  394. #define GST_RIFF_WAVE_FORMAT_UHER_ADPCM (0x0210)
  395. #define GST_RIFF_WAVE_FORMAT_QUARTERDECK (0x0220)
  396. #define GST_RIFF_WAVE_FORMAT_ILINK_VC (0x0230)
  397. #define GST_RIFF_WAVE_FORMAT_RAW_SPORT (0x0240)
  398. #define GST_RIFF_WAVE_FORMAT_IPI_HSX (0x0250)
  399. #define GST_RIFF_WAVE_FORMAT_IPI_RPELP (0x0251)
  400. #define GST_RIFF_WAVE_FORMAT_CS2 (0x0260)
  401. #define GST_RIFF_WAVE_FORMAT_SONY_ATRAC3 (0x0270)
  402. #define GST_RIFF_WAVE_FORMAT_SIREN (0x028E)
  403. #define GST_RIFF_WAVE_FORMAT_FM_TOWNS_SND (0x0300)
  404. #define GST_RIFF_WAVE_FORMAT_BTV_DIGITAL (0x0400)
  405. #define GST_RIFF_WAVE_FORMAT_IMC (0x0401)
  406. #define GST_RIFF_WAVE_FORMAT_QDESIGN_MUSIC (0x0450)
  407. #define GST_RIFF_WAVE_FORMAT_VME_VMPCM (0x0680)
  408. #define GST_RIFF_WAVE_FORMAT_TPC (0x0681)
  409. #define GST_RIFF_WAVE_FORMAT_OLIGSM (0x1000)
  410. #define GST_RIFF_WAVE_FORMAT_OLIADPCM (0x1001)
  411. #define GST_RIFF_WAVE_FORMAT_OLICELP (0x1002)
  412. #define GST_RIFF_WAVE_FORMAT_OLISBC (0x1003)
  413. #define GST_RIFF_WAVE_FORMAT_OLIOPR (0x1004)
  414. #define GST_RIFF_WAVE_FORMAT_LH_CODEC (0x1100)
  415. #define GST_RIFF_WAVE_FORMAT_NORRIS (0x1400)
  416. #define GST_RIFF_WAVE_FORMAT_SOUNDSPACE_MUSICOMPRESS (0x1500)
  417. #define GST_RIFF_WAVE_FORMAT_A52 (0x2000)
  418. #define GST_RIFF_WAVE_FORMAT_DTS (0x2001)
  419. #define GST_RIFF_WAVE_FORMAT_SONIC (0x2048)
  420. #define GST_RIFF_WAVE_FORMAT_SONIC_LS (0x2048)
  421. #define GST_RIFF_WAVE_FORMAT_AAC_AC (0x4143)
  422. #define GST_RIFF_WAVE_FORMAT_VORBIS1 (0x674f)
  423. #define GST_RIFF_WAVE_FORMAT_VORBIS2 (0x6750)
  424. #define GST_RIFF_WAVE_FORMAT_VORBIS3 (0x6751)
  425. #define GST_RIFF_WAVE_FORMAT_VORBIS1PLUS (0x676f)
  426. #define GST_RIFF_WAVE_FORMAT_VORBIS2PLUS (0x6770)
  427. #define GST_RIFF_WAVE_FORMAT_VORBIS3PLUS (0x6771)
  428. #define GST_RIFF_WAVE_FORMAT_AAC_pm (0x706d)
  429. #define GST_RIFF_WAVE_FORMAT_GSM_AMR_CBR (0x7A21)
  430. #define GST_RIFF_WAVE_FORMAT_GSM_AMR_VBR (0x7A22)
  431. #define GST_RIFF_WAVE_FORMAT_FLAC (0xF1AC)
  432. #define GST_RIFF_WAVE_FORMAT_EXTENSIBLE (0xFFFE)
  433. guint16 channels;
  434. guint32 rate;
  435. guint32 av_bps;
  436. guint16 blockalign;
  437. guint16 bits_per_sample;
  438. #if 0
  439. /* missing field */
  440. guint16 extra_size;
  441. #endif
  442. } gst_riff_strf_auds;
  443. typedef struct _gst_riff_strf_iavs {
  444. guint32 DVAAuxSrc;
  445. guint32 DVAAuxCtl;
  446. guint32 DVAAuxSrc1;
  447. guint32 DVAAuxCtl1;
  448. guint32 DVVAuxSrc;
  449. guint32 DVVAuxCtl;
  450. guint32 DVReserved1;
  451. guint32 DVReserved2;
  452. } gst_riff_strf_iavs;
  453. typedef struct _gst_riff_index_entry {
  454. guint32 id;
  455. guint32 flags;
  456. #define GST_RIFF_IF_LIST (0x00000001L)
  457. #define GST_RIFF_IF_KEYFRAME (0x00000010L)
  458. #define GST_RIFF_IF_NO_TIME (0x00000100L)
  459. #define GST_RIFF_IF_COMPUSE (0x0FFF0000L)
  460. guint32 offset;
  461. guint32 size;
  462. } gst_riff_index_entry;
  463. typedef struct _gst_riff_dmlh {
  464. guint32 totalframes;
  465. } gst_riff_dmlh;
  466. /* taken from libsndfile/wav.c (LGPL) */
  467. typedef struct _gst_riff_acid {
  468. /* 4 bytes (int) type of file:
  469. * this appears to be a bit mask,however some combinations
  470. * are probably impossible and/or qualified as "errors"
  471. *
  472. * 0x01 On: One Shot Off: Loop
  473. * 0x02 On: Root note is Set Off: No root
  474. * 0x04 On: Stretch is On, Off: Strech is OFF
  475. * 0x08 On: Disk Based Off: Ram based
  476. * 0x10 On: ?????????? Off: ????????? (Acidizer puts that ON)
  477. */
  478. guint32 loop_type;
  479. /* 2 bytes (short) root note
  480. * if type 0x10 is OFF : [C,C#,(...),B] -> [0x30 to 0x3B]
  481. * if type 0x10 is ON : [C,C#,(...),B] -> [0x3C to 0x47]
  482. * (both types fit on same MIDI pitch albeit different octaves, so who cares)
  483. */
  484. guint16 root_note;
  485. /* 2 bytes (short) ??? always set to 0x8000
  486. * 4 bytes (float) ??? seems to be always 0
  487. */
  488. guint16 unknown1;
  489. gfloat unknown2;
  490. /* 4 bytes (int) number of beats
  491. * 2 bytes (short) meter denominator //always 4 in SF/ACID
  492. * 2 bytes (short) meter numerator //always 4 in SF/ACID
  493. * //are we sure about the order?? usually its num/denom
  494. * 4 bytes (float) tempo
  495. */
  496. guint32 number_of_beats;
  497. guint16 meter_d, meter_n;
  498. gfloat tempo;
  499. } gst_riff_acid;
  500. G_END_DECLS
  501. #endif /* __GST_RIFF_IDS_H__ */