aomdx.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. /*
  2. * Copyright (c) 2016, Alliance for Open Media. All rights reserved.
  3. *
  4. * This source code is subject to the terms of the BSD 2 Clause License and
  5. * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
  6. * was not distributed with this source code in the LICENSE file, you can
  7. * obtain it at www.aomedia.org/license/software. If the Alliance for Open
  8. * Media Patent License 1.0 was not distributed with this source code in the
  9. * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
  10. */
  11. /*!\defgroup aom_decoder AOMedia AOM/AV1 Decoder
  12. * \ingroup aom
  13. *
  14. * @{
  15. */
  16. /*!\file
  17. * \brief Provides definitions for using AOM or AV1 within the aom Decoder
  18. * interface.
  19. */
  20. #ifndef AOM_AOM_AOMDX_H_
  21. #define AOM_AOM_AOMDX_H_
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Include controls common to both the encoder and decoder */
  26. #include "aom/aom.h"
  27. /*!\name Algorithm interface for AV1
  28. *
  29. * This interface provides the capability to decode AV1 streams.
  30. * @{
  31. */
  32. /*!\brief A single instance of the AV1 decoder.
  33. *\deprecated This access mechanism is provided for backwards compatibility;
  34. * prefer aom_codec_av1_dx().
  35. */
  36. extern aom_codec_iface_t aom_codec_av1_dx_algo;
  37. /*!\brief The interface to the AV1 decoder.
  38. */
  39. extern aom_codec_iface_t *aom_codec_av1_dx(void);
  40. /*!@} - end algorithm interface member group */
  41. /** Data structure that stores bit accounting for debug
  42. */
  43. typedef struct Accounting Accounting;
  44. #ifndef AOM_INSPECTION_H_
  45. /** Callback that inspects decoder frame data.
  46. */
  47. typedef void (*aom_inspect_cb)(void *decoder, void *ctx);
  48. #endif
  49. /*!\brief Structure to hold inspection callback and context.
  50. *
  51. * Defines a structure to hold the inspection callback function and calling
  52. * context.
  53. */
  54. typedef struct aom_inspect_init {
  55. /*! Inspection callback. */
  56. aom_inspect_cb inspect_cb;
  57. /*! Inspection context. */
  58. void *inspect_ctx;
  59. } aom_inspect_init;
  60. /*!\brief Structure to collect a buffer index when inspecting.
  61. *
  62. * Defines a structure to hold the buffer and return an index
  63. * when calling decode from inspect. This enables us to decode
  64. * non showable sub frames.
  65. */
  66. typedef struct {
  67. /*! Pointer for new position in compressed buffer after decoding 1 OBU. */
  68. const unsigned char *buf;
  69. /*! Index into reference buffer array to see result of decoding 1 OBU. */
  70. int idx;
  71. /*! Is a show existing frame. */
  72. int show_existing;
  73. } Av1DecodeReturn;
  74. /*!\brief Structure to hold a tile's start address and size in the bitstream.
  75. *
  76. * Defines a structure to hold a tile's start address and size in the bitstream.
  77. */
  78. typedef struct aom_tile_data {
  79. /*! Tile data size. */
  80. size_t coded_tile_data_size;
  81. /*! Tile's start address. */
  82. const void *coded_tile_data;
  83. /*! Extra size information. */
  84. size_t extra_size;
  85. } aom_tile_data;
  86. /*!\brief Max number of tile columns
  87. *
  88. * This is the limit of number of tile columns allowed within a frame.
  89. *
  90. * Currently same as "MAX_TILE_COLS" in AV1, the maximum that AV1 supports.
  91. *
  92. */
  93. #define AOM_MAX_TILE_COLS 64
  94. /*!\brief Max number of tile rows
  95. *
  96. * This is the limit of number of tile rows allowed within a frame.
  97. *
  98. * Currently same as "MAX_TILE_ROWS" in AV1, the maximum that AV1 supports.
  99. *
  100. */
  101. #define AOM_MAX_TILE_ROWS 64
  102. /*!\brief Structure to hold information about tiles in a frame.
  103. *
  104. * Defines a structure to hold a frame's tile information, namely
  105. * number of tile columns, number of tile_rows, and the width and
  106. * height of each tile.
  107. */
  108. typedef struct aom_tile_info {
  109. /*! Indicates the number of tile columns. */
  110. int tile_columns;
  111. /*! Indicates the number of tile rows. */
  112. int tile_rows;
  113. /*! Indicates the tile widths in units of SB. */
  114. int tile_widths[AOM_MAX_TILE_COLS];
  115. /*! Indicates the tile heights in units of SB. */
  116. int tile_heights[AOM_MAX_TILE_ROWS];
  117. /*! Indicates the number of tile groups present in a frame. */
  118. int num_tile_groups;
  119. } aom_tile_info;
  120. /*!\brief Structure to hold information about still image coding.
  121. *
  122. * Defines a structure to hold a information regarding still picture
  123. * and its header type.
  124. */
  125. typedef struct aom_still_picture_info {
  126. /*! Video is a single frame still picture */
  127. int is_still_picture;
  128. /*! Use full header for still picture */
  129. int is_reduced_still_picture_hdr;
  130. } aom_still_picture_info;
  131. /*!\brief Structure to hold information about S_FRAME.
  132. *
  133. * Defines a structure to hold a information regarding S_FRAME
  134. * and its position.
  135. */
  136. typedef struct aom_s_frame_info {
  137. /*! Indicates if current frame is S_FRAME */
  138. int is_s_frame;
  139. /*! Indicates if current S_FRAME is present at ALTREF frame*/
  140. int is_s_frame_at_altref;
  141. } aom_s_frame_info;
  142. /*!\brief Structure to hold information about screen content tools.
  143. *
  144. * Defines a structure to hold information about screen content
  145. * tools, namely: allow_screen_content_tools, allow_intrabc, and
  146. * force_integer_mv.
  147. */
  148. typedef struct aom_screen_content_tools_info {
  149. /*! Are screen content tools allowed */
  150. int allow_screen_content_tools;
  151. /*! Is intrabc allowed */
  152. int allow_intrabc;
  153. /*! Is integer mv forced */
  154. int force_integer_mv;
  155. } aom_screen_content_tools_info;
  156. /*!\brief Structure to hold the external reference frame pointer.
  157. *
  158. * Define a structure to hold the external reference frame pointer.
  159. */
  160. typedef struct av1_ext_ref_frame {
  161. /*! Start pointer of external references. */
  162. aom_image_t *img;
  163. /*! Number of available external references. */
  164. int num;
  165. } av1_ext_ref_frame_t;
  166. /*!\enum aom_dec_control_id
  167. * \brief AOM decoder control functions
  168. *
  169. * This set of macros define the control functions available for the AOM
  170. * decoder interface.
  171. * The range for decoder control ID is >= 256.
  172. *
  173. * \sa #aom_codec_control(aom_codec_ctx_t *ctx, int ctrl_id, ...)
  174. */
  175. enum aom_dec_control_id {
  176. /*!\brief Codec control function to get info on which reference frames were
  177. * updated by the last decode, int* parameter
  178. */
  179. AOMD_GET_LAST_REF_UPDATES = AOM_DECODER_CTRL_ID_START,
  180. /*!\brief Codec control function to check if the indicated frame is
  181. corrupted, int* parameter
  182. */
  183. AOMD_GET_FRAME_CORRUPTED,
  184. /*!\brief Codec control function to get info on which reference frames were
  185. * used by the last decode, int* parameter
  186. */
  187. AOMD_GET_LAST_REF_USED,
  188. /*!\brief Codec control function to get the dimensions that the current
  189. * frame is decoded at, int* parameter
  190. *
  191. * This may be different to the intended display size for the frame as
  192. * specified in the wrapper or frame header (see AV1D_GET_DISPLAY_SIZE).
  193. */
  194. AV1D_GET_FRAME_SIZE,
  195. /*!\brief Codec control function to get the current frame's intended display
  196. * dimensions (as specified in the wrapper or frame header), int* parameter
  197. *
  198. * This may be different to the decoded dimensions of this frame (see
  199. * AV1D_GET_FRAME_SIZE).
  200. */
  201. AV1D_GET_DISPLAY_SIZE,
  202. /*!\brief Codec control function to get the bit depth of the stream,
  203. * unsigned int* parameter
  204. */
  205. AV1D_GET_BIT_DEPTH,
  206. /*!\brief Codec control function to get the image format of the stream,
  207. * aom_img_fmt_t* parameter
  208. */
  209. AV1D_GET_IMG_FORMAT,
  210. /*!\brief Codec control function to get the width and height (in pixels) of
  211. * the tiles in a tile list, unsigned int* parameter
  212. *
  213. * Tile width is in the high 16 bits of the output value, and tile height is
  214. * in the low 16 bits of the output value.
  215. */
  216. AV1D_GET_TILE_SIZE,
  217. /*!\brief Codec control function to get the tile count in a tile list,
  218. * unsigned int* parameter
  219. */
  220. AV1D_GET_TILE_COUNT,
  221. /*!\brief Codec control function to set the byte alignment of the planes in
  222. * the reference buffers, int parameter
  223. *
  224. * Valid values are power of 2, from 32 to 1024. A value of 0 sets
  225. * legacy alignment. I.e. Y plane is aligned to 32 bytes, U plane directly
  226. * follows Y plane, and V plane directly follows U plane. Default value is 0.
  227. */
  228. AV1_SET_BYTE_ALIGNMENT,
  229. /*!\brief Codec control function to invert the decoding order to from right to
  230. * left, int parameter
  231. *
  232. * The function is used in a test to confirm the decoding independence of tile
  233. * columns. The function may be used in application where this order
  234. * of decoding is desired. int parameter
  235. *
  236. * TODO(yaowu): Rework the unit test that uses this control, and in a future
  237. * release, this test-only control shall be removed.
  238. */
  239. AV1_INVERT_TILE_DECODE_ORDER,
  240. /*!\brief Codec control function to set the skip loop filter flag, int
  241. * parameter
  242. *
  243. * Valid values are integers. The decoder will skip the loop filter
  244. * when its value is set to nonzero. If the loop filter is skipped the
  245. * decoder may accumulate decode artifacts. The default value is 0.
  246. */
  247. AV1_SET_SKIP_LOOP_FILTER,
  248. /*!\brief Codec control function to retrieve a pointer to the Accounting
  249. * struct, takes Accounting** as parameter
  250. *
  251. * If called before a frame has been decoded, this returns AOM_CODEC_ERROR.
  252. * The caller should ensure that AOM_CODEC_OK is returned before attempting
  253. * to dereference the Accounting pointer.
  254. *
  255. * \attention When configured with -DCONFIG_ACCOUNTING=0, the default, this
  256. * returns AOM_CODEC_INCAPABLE.
  257. */
  258. AV1_GET_ACCOUNTING,
  259. /*!\brief Codec control function to get last decoded frame quantizer,
  260. * int* parameter
  261. *
  262. * Returned value uses internal quantizer scale defined by the codec.
  263. */
  264. AOMD_GET_LAST_QUANTIZER,
  265. /*!\brief Codec control function to set the range of tile decoding, int
  266. * parameter
  267. *
  268. * A value that is greater and equal to zero indicates only the specific
  269. * row/column is decoded. A value that is -1 indicates the whole row/column
  270. * is decoded. A special case is both values are -1 that means the whole
  271. * frame is decoded.
  272. */
  273. AV1_SET_DECODE_TILE_ROW,
  274. AV1_SET_DECODE_TILE_COL,
  275. /*!\brief Codec control function to set the tile coding mode, unsigned int
  276. * parameter
  277. *
  278. * - 0 = tiles are coded in normal tile mode
  279. * - 1 = tiles are coded in large-scale tile mode
  280. */
  281. AV1_SET_TILE_MODE,
  282. /*!\brief Codec control function to get the frame header information of an
  283. * encoded frame, aom_tile_data* parameter
  284. */
  285. AV1D_GET_FRAME_HEADER_INFO,
  286. /*!\brief Codec control function to get the start address and size of a
  287. * tile in the coded bitstream, aom_tile_data* parameter.
  288. */
  289. AV1D_GET_TILE_DATA,
  290. /*!\brief Codec control function to set the external references' pointers in
  291. * the decoder, av1_ext_ref_frame_t* parameter.
  292. *
  293. * This is used while decoding the tile list OBU in large-scale tile coding
  294. * mode.
  295. */
  296. AV1D_SET_EXT_REF_PTR,
  297. /*!\brief Codec control function to enable the ext-tile software debug and
  298. * testing code in the decoder, unsigned int parameter
  299. */
  300. AV1D_EXT_TILE_DEBUG,
  301. /*!\brief Codec control function to enable the row based multi-threading of
  302. * decoding, unsigned int parameter
  303. *
  304. * - 0 = disabled
  305. * - 1 = enabled (default)
  306. */
  307. AV1D_SET_ROW_MT,
  308. /*!\brief Codec control function to indicate whether bitstream is in
  309. * Annex-B format, unsigned int parameter
  310. */
  311. AV1D_SET_IS_ANNEXB,
  312. /*!\brief Codec control function to indicate which operating point to use,
  313. * int parameter
  314. *
  315. * A scalable stream may define multiple operating points, each of which
  316. * defines a set of temporal and spatial layers to be processed. The
  317. * operating point index may take a value between 0 and
  318. * operating_points_cnt_minus_1 (which is at most 31).
  319. */
  320. AV1D_SET_OPERATING_POINT,
  321. /*!\brief Codec control function to indicate whether to output one frame per
  322. * temporal unit (the default), or one frame per spatial layer, int parameter
  323. *
  324. * In a scalable stream, each temporal unit corresponds to a single "frame"
  325. * of video, and within a temporal unit there may be multiple spatial layers
  326. * with different versions of that frame.
  327. * For video playback, only the highest-quality version (within the
  328. * selected operating point) is needed, but for some use cases it is useful
  329. * to have access to multiple versions of a frame when they are available.
  330. */
  331. AV1D_SET_OUTPUT_ALL_LAYERS,
  332. /*!\brief Codec control function to set an aom_inspect_cb callback that is
  333. * invoked each time a frame is decoded, aom_inspect_init* parameter
  334. *
  335. * \attention When configured with -DCONFIG_INSPECTION=0, the default, this
  336. * returns AOM_CODEC_INCAPABLE.
  337. */
  338. AV1_SET_INSPECTION_CALLBACK,
  339. /*!\brief Codec control function to set the skip film grain flag, int
  340. * parameter
  341. *
  342. * Valid values are integers. The decoder will skip the film grain when its
  343. * value is set to nonzero. The default value is 0.
  344. */
  345. AV1D_SET_SKIP_FILM_GRAIN,
  346. /*!\brief Codec control function to check the presence of forward key frames,
  347. * int* parameter
  348. */
  349. AOMD_GET_FWD_KF_PRESENT,
  350. /*!\brief Codec control function to get the frame flags of the previous frame
  351. * decoded, int* parameter
  352. *
  353. * This will return a flag of type aom_codec_frame_flags_t.
  354. */
  355. AOMD_GET_FRAME_FLAGS,
  356. /*!\brief Codec control function to check the presence of altref frames, int*
  357. * parameter
  358. */
  359. AOMD_GET_ALTREF_PRESENT,
  360. /*!\brief Codec control function to get tile information of the previous frame
  361. * decoded, aom_tile_info* parameter
  362. *
  363. * This will return a struct of type aom_tile_info.
  364. */
  365. AOMD_GET_TILE_INFO,
  366. /*!\brief Codec control function to get screen content tools information,
  367. * aom_screen_content_tools_info* parameter
  368. *
  369. * It returns a struct of type aom_screen_content_tools_info, which contains
  370. * the header flags allow_screen_content_tools, allow_intrabc, and
  371. * force_integer_mv.
  372. */
  373. AOMD_GET_SCREEN_CONTENT_TOOLS_INFO,
  374. /*!\brief Codec control function to get the still picture coding information,
  375. * aom_still_picture_info* parameter
  376. */
  377. AOMD_GET_STILL_PICTURE,
  378. /*!\brief Codec control function to get superblock size,
  379. * aom_superblock_size_t* parameter
  380. *
  381. * It returns an enum, indicating the superblock size read from the sequence
  382. * header(0 for BLOCK_64X64 and 1 for BLOCK_128X128)
  383. */
  384. AOMD_GET_SB_SIZE,
  385. /*!\brief Codec control function to check if the previous frame
  386. * decoded has show existing frame flag set, int* parameter
  387. */
  388. AOMD_GET_SHOW_EXISTING_FRAME_FLAG,
  389. /*!\brief Codec control function to get the S_FRAME coding information,
  390. * aom_s_frame_info* parameter
  391. */
  392. AOMD_GET_S_FRAME_INFO,
  393. /*!\brief Codec control function to get the show frame flag, int* parameter
  394. */
  395. AOMD_GET_SHOW_FRAME_FLAG,
  396. /*!\brief Codec control function to get the base q index of a frame, int*
  397. * parameter
  398. */
  399. AOMD_GET_BASE_Q_IDX,
  400. /*!\brief Codec control function to get the order hint of a frame, unsigned
  401. * int* parameter
  402. */
  403. AOMD_GET_ORDER_HINT,
  404. /*!\brief Codec control function to get the info of a 4x4 block.
  405. * Parameters: int mi_row, int mi_col, and MB_MODE_INFO*.
  406. *
  407. * \note This only returns a shallow copy, so all pointer members should not
  408. * be used.
  409. */
  410. AV1D_GET_MI_INFO,
  411. };
  412. /*!\cond */
  413. /*!\brief AOM decoder control function parameter type
  414. *
  415. * Defines the data types that AOMD control functions take.
  416. *
  417. * \note Additional common controls are defined in aom.h.
  418. *
  419. * \note For each control ID "X", a macro-define of
  420. * AOM_CTRL_X is provided. It is used at compile time to determine
  421. * if the control ID is supported by the libaom library available,
  422. * when the libaom version cannot be controlled.
  423. */
  424. AOM_CTRL_USE_TYPE(AOMD_GET_LAST_REF_UPDATES, int *)
  425. #define AOM_CTRL_AOMD_GET_LAST_REF_UPDATES
  426. AOM_CTRL_USE_TYPE(AOMD_GET_FRAME_CORRUPTED, int *)
  427. #define AOM_CTRL_AOMD_GET_FRAME_CORRUPTED
  428. AOM_CTRL_USE_TYPE(AOMD_GET_LAST_REF_USED, int *)
  429. #define AOM_CTRL_AOMD_GET_LAST_REF_USED
  430. AOM_CTRL_USE_TYPE(AV1D_GET_FRAME_SIZE, int *)
  431. #define AOM_CTRL_AV1D_GET_FRAME_SIZE
  432. AOM_CTRL_USE_TYPE(AV1D_GET_DISPLAY_SIZE, int *)
  433. #define AOM_CTRL_AV1D_GET_DISPLAY_SIZE
  434. AOM_CTRL_USE_TYPE(AV1D_GET_BIT_DEPTH, unsigned int *)
  435. #define AOM_CTRL_AV1D_GET_BIT_DEPTH
  436. AOM_CTRL_USE_TYPE(AV1D_GET_IMG_FORMAT, aom_img_fmt_t *)
  437. #define AOM_CTRL_AV1D_GET_IMG_FORMAT
  438. AOM_CTRL_USE_TYPE(AV1D_GET_TILE_SIZE, unsigned int *)
  439. #define AOM_CTRL_AV1D_GET_TILE_SIZE
  440. AOM_CTRL_USE_TYPE(AV1D_GET_TILE_COUNT, unsigned int *)
  441. #define AOM_CTRL_AV1D_GET_TILE_COUNT
  442. AOM_CTRL_USE_TYPE(AV1_INVERT_TILE_DECODE_ORDER, int)
  443. #define AOM_CTRL_AV1_INVERT_TILE_DECODE_ORDER
  444. AOM_CTRL_USE_TYPE(AV1_SET_SKIP_LOOP_FILTER, int)
  445. #define AOM_CTRL_AV1_SET_SKIP_LOOP_FILTER
  446. AOM_CTRL_USE_TYPE(AV1_GET_ACCOUNTING, Accounting **)
  447. #define AOM_CTRL_AV1_GET_ACCOUNTING
  448. AOM_CTRL_USE_TYPE(AOMD_GET_LAST_QUANTIZER, int *)
  449. #define AOM_CTRL_AOMD_GET_LAST_QUANTIZER
  450. AOM_CTRL_USE_TYPE(AV1_SET_DECODE_TILE_ROW, int)
  451. #define AOM_CTRL_AV1_SET_DECODE_TILE_ROW
  452. AOM_CTRL_USE_TYPE(AV1_SET_DECODE_TILE_COL, int)
  453. #define AOM_CTRL_AV1_SET_DECODE_TILE_COL
  454. AOM_CTRL_USE_TYPE(AV1_SET_TILE_MODE, unsigned int)
  455. #define AOM_CTRL_AV1_SET_TILE_MODE
  456. AOM_CTRL_USE_TYPE(AV1D_GET_FRAME_HEADER_INFO, aom_tile_data *)
  457. #define AOM_CTRL_AV1D_GET_FRAME_HEADER_INFO
  458. AOM_CTRL_USE_TYPE(AV1D_GET_TILE_DATA, aom_tile_data *)
  459. #define AOM_CTRL_AV1D_GET_TILE_DATA
  460. AOM_CTRL_USE_TYPE(AV1D_SET_EXT_REF_PTR, av1_ext_ref_frame_t *)
  461. #define AOM_CTRL_AV1D_SET_EXT_REF_PTR
  462. AOM_CTRL_USE_TYPE(AV1D_EXT_TILE_DEBUG, unsigned int)
  463. #define AOM_CTRL_AV1D_EXT_TILE_DEBUG
  464. AOM_CTRL_USE_TYPE(AV1D_SET_ROW_MT, unsigned int)
  465. #define AOM_CTRL_AV1D_SET_ROW_MT
  466. AOM_CTRL_USE_TYPE(AV1D_SET_IS_ANNEXB, unsigned int)
  467. #define AOM_CTRL_AV1D_SET_IS_ANNEXB
  468. AOM_CTRL_USE_TYPE(AV1D_SET_OPERATING_POINT, int)
  469. #define AOM_CTRL_AV1D_SET_OPERATING_POINT
  470. AOM_CTRL_USE_TYPE(AV1D_SET_OUTPUT_ALL_LAYERS, int)
  471. #define AOM_CTRL_AV1D_SET_OUTPUT_ALL_LAYERS
  472. AOM_CTRL_USE_TYPE(AV1_SET_INSPECTION_CALLBACK, aom_inspect_init *)
  473. #define AOM_CTRL_AV1_SET_INSPECTION_CALLBACK
  474. AOM_CTRL_USE_TYPE(AV1D_SET_SKIP_FILM_GRAIN, int)
  475. #define AOM_CTRL_AV1D_SET_SKIP_FILM_GRAIN
  476. AOM_CTRL_USE_TYPE(AOMD_GET_FWD_KF_PRESENT, int *)
  477. #define AOM_CTRL_AOMD_GET_FWD_KF_PRESENT
  478. AOM_CTRL_USE_TYPE(AOMD_GET_FRAME_FLAGS, int *)
  479. #define AOM_CTRL_AOMD_GET_FRAME_FLAGS
  480. AOM_CTRL_USE_TYPE(AOMD_GET_ALTREF_PRESENT, int *)
  481. #define AOM_CTRL_AOMD_GET_ALTREF_PRESENT
  482. AOM_CTRL_USE_TYPE(AOMD_GET_TILE_INFO, aom_tile_info *)
  483. #define AOM_CTRL_AOMD_GET_TILE_INFO
  484. AOM_CTRL_USE_TYPE(AOMD_GET_SCREEN_CONTENT_TOOLS_INFO,
  485. aom_screen_content_tools_info *)
  486. #define AOM_CTRL_AOMD_GET_SCREEN_CONTENT_TOOLS_INFO
  487. AOM_CTRL_USE_TYPE(AOMD_GET_STILL_PICTURE, aom_still_picture_info *)
  488. #define AOM_CTRL_AOMD_GET_STILL_PICTURE
  489. AOM_CTRL_USE_TYPE(AOMD_GET_SB_SIZE, aom_superblock_size_t *)
  490. #define AOMD_CTRL_AOMD_GET_SB_SIZE
  491. AOM_CTRL_USE_TYPE(AOMD_GET_SHOW_EXISTING_FRAME_FLAG, int *)
  492. #define AOMD_CTRL_AOMD_GET_SHOW_EXISTING_FRAME_FLAG
  493. AOM_CTRL_USE_TYPE(AOMD_GET_S_FRAME_INFO, aom_s_frame_info *)
  494. #define AOMD_CTRL_AOMD_GET_S_FRAME_INFO
  495. AOM_CTRL_USE_TYPE(AOMD_GET_SHOW_FRAME_FLAG, int *)
  496. #define AOM_CTRL_AOMD_GET_SHOW_FRAME_FLAG
  497. AOM_CTRL_USE_TYPE(AOMD_GET_BASE_Q_IDX, int *)
  498. #define AOM_CTRL_AOMD_GET_BASE_Q_IDX
  499. AOM_CTRL_USE_TYPE(AOMD_GET_ORDER_HINT, unsigned int *)
  500. #define AOM_CTRL_AOMD_GET_ORDER_HINT
  501. // The AOM_CTRL_USE_TYPE macro can't be used with AV1D_GET_MI_INFO because
  502. // AV1D_GET_MI_INFO takes more than one parameter.
  503. #define AOM_CTRL_AV1D_GET_MI_INFO
  504. /*!\endcond */
  505. /*! @} - end defgroup aom_decoder */
  506. #ifdef __cplusplus
  507. } // extern "C"
  508. #endif
  509. #endif // AOM_AOM_AOMDX_H_