summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-11-19 15:43:10 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-11-19 15:43:10 +0800
commit504478e0bbc27cc529c96b168cae1fb9dd12c4a5 (patch)
tree92563e4ddc573330ff56b6bcb7101e8d3ab60e96
parent9d01b4468f89391892e31efc5bbec774ea781242 (diff)
downloadlibva-504478e0bbc27cc529c96b168cae1fb9dd12c4a5.tar.gz
Move VAHuffmanTableBufferJPEGBaseline to va.h
VAHuffmanTableBufferJPEGBaseline is also used for JPEG encoding, so move it to va.h as we discussed before. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--va/va.h39
-rw-r--r--va/va_dec_jpeg.h36
-rw-r--r--va/va_enc_jpeg.h2
3 files changed, 39 insertions, 38 deletions
diff --git a/va/va.h b/va/va.h
index 73c6ff5..2b7b66f 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1985,6 +1985,45 @@ typedef struct _VAMotionVectorIntel {
short mv1[2]; /* future reference */
} VAMotionVectorIntel;
+/**********************************
+ * JPEG common data structures
+ **********************************/
+/**
+ * \brief Huffman table for JPEG decoding.
+ *
+ * This structure holds the complete Huffman tables. This is an
+ * aggregation of all Huffman table (DHT) segments maintained by the
+ * application. i.e. up to 2 Huffman tables are stored in there for
+ * baseline profile.
+ *
+ * The #load_huffman_table array can be used as a hint to notify the
+ * VA driver implementation about which table(s) actually changed
+ * since the last submission of this buffer.
+ */
+typedef struct _VAHuffmanTableBufferJPEGBaseline {
+ /** \brief Specifies which #huffman_table is valid. */
+ unsigned char load_huffman_table[2];
+ /** \brief Huffman tables indexed by table identifier (Th). */
+ struct {
+ /** @name DC table (up to 12 categories) */
+ /**@{*/
+ /** \brief Number of Huffman codes of length i + 1 (Li). */
+ unsigned char num_dc_codes[16];
+ /** \brief Value associated with each Huffman code (Vij). */
+ unsigned char dc_values[12];
+ /**@}*/
+ /** @name AC table (2 special codes + up to 16 * 10 codes) */
+ /**@{*/
+ /** \brief Number of Huffman codes of length i + 1 (Li). */
+ unsigned char num_ac_codes[16];
+ /** \brief Value associated with each Huffman code (Vij). */
+ unsigned char ac_values[162];
+ /** \brief Padding to 4-byte boundaries. Must be set to zero. */
+ unsigned char pad[2];
+ /**@}*/
+ } huffman_table[2];
+} VAHuffmanTableBufferJPEGBaseline;
+
#include <va/va_dec_jpeg.h>
/****************************
diff --git a/va/va_dec_jpeg.h b/va/va_dec_jpeg.h
index 4d79a11..b306674 100644
--- a/va/va_dec_jpeg.h
+++ b/va/va_dec_jpeg.h
@@ -98,42 +98,6 @@ typedef struct _VAIQMatrixBufferJPEGBaseline {
} VAIQMatrixBufferJPEGBaseline;
/**
- * \brief Huffman table for JPEG decoding.
- *
- * This structure holds the complete Huffman tables. This is an
- * aggregation of all Huffman table (DHT) segments maintained by the
- * application. i.e. up to 2 Huffman tables are stored in there for
- * baseline profile.
- *
- * The #load_huffman_table array can be used as a hint to notify the
- * VA driver implementation about which table(s) actually changed
- * since the last submission of this buffer.
- */
-typedef struct _VAHuffmanTableBufferJPEGBaseline {
- /** \brief Specifies which #huffman_table is valid. */
- unsigned char load_huffman_table[2];
- /** \brief Huffman tables indexed by table identifier (Th). */
- struct {
- /** @name DC table (up to 12 categories) */
- /**@{*/
- /** \brief Number of Huffman codes of length i + 1 (Li). */
- unsigned char num_dc_codes[16];
- /** \brief Value associated with each Huffman code (Vij). */
- unsigned char dc_values[12];
- /**@}*/
- /** @name AC table (2 special codes + up to 16 * 10 codes) */
- /**@{*/
- /** \brief Number of Huffman codes of length i + 1 (Li). */
- unsigned char num_ac_codes[16];
- /** \brief Value associated with each Huffman code (Vij). */
- unsigned char ac_values[162];
- /** \brief Padding to 4-byte boundaries. Must be set to zero. */
- unsigned char pad[2];
- /**@}*/
- } huffman_table[2];
-} VAHuffmanTableBufferJPEGBaseline;
-
-/**
* \brief Slice parameter for JPEG decoding.
*
* This structure holds information from the scan header, along with
diff --git a/va/va_enc_jpeg.h b/va/va_enc_jpeg.h
index be6b36e..3aba7ad 100644
--- a/va/va_enc_jpeg.h
+++ b/va/va_enc_jpeg.h
@@ -149,8 +149,6 @@ typedef struct _VAQMatrixBufferJPEG
/**@}*/
-#include <va/va_dec_jpeg.h>
-
#ifdef __cplusplus
}
#endif