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>2015-03-20 12:59:49 +0800
commit9c89bd928ad59cbbacde6f480421a0b55b1b97c0 (patch)
tree7a00602c879641840aa1f7b4a8f9be89a84d7f84
parent502ed5e99b73258c240aab84873d4dc872be6529 (diff)
downloadlibva-9c89bd928ad59cbbacde6f480421a0b55b1b97c0.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> (cherry picked from commit 504478e0bbc27cc529c96b168cae1fb9dd12c4a5) Conflicts: va/va.h
-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 2b988fd..6aa62b1 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1151,6 +1151,45 @@ typedef struct _VASliceParameterBufferBase
unsigned int slice_data_flag; /* see VA_SLICE_DATA_FLAG_XXX definitions */
} VASliceParameterBufferBase;
+/**********************************
+ * 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 380e0fe..644ce3b 100644
--- a/va/va_dec_jpeg.h
+++ b/va/va_dec_jpeg.h
@@ -94,42 +94,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