author | yippi |
Mon, 27 Sep 2010 21:07:51 +0000 | |
changeset 20108 | 51df67ca9307 |
parent 11216 | 337ab05f45c8 |
permissions | -rw-r--r-- |
11216
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
1 |
--- ./src/ptlib/common/jidctflt.cxx.org 2007-11-19 11:39:14.333297000 +0800 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
2 |
+++ ./src/ptlib/common/jidctflt.cxx 2007-11-19 12:48:36.796794000 +0800 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
3 |
@@ -73,6 +73,12 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
4 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
5 |
#include <stdint.h> |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
6 |
#include "tinyjpeg-internal.h" |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
7 |
+#ifdef SOLARIS |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
8 |
+#include "ptbuildopts.h" |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
9 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
10 |
+#ifdef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
11 |
+#include <mlib.h> |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
12 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
13 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
14 |
#define FAST_FLOAT float |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
15 |
#define DCTSIZE 8 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
16 |
@@ -122,6 +128,7 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
17 |
void |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
18 |
tinyjpeg_idct_float (struct component *compptr, uint8_t *output_buf, int stride) |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
19 |
{ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
20 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
21 |
FAST_FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
22 |
FAST_FLOAT tmp10, tmp11, tmp12, tmp13; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
23 |
FAST_FLOAT z5, z10, z11, z12, z13; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
24 |
@@ -282,5 +289,8 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
25 |
wsptr += DCTSIZE; /* advance pointer to next row */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
26 |
outptr += stride; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
27 |
} |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
28 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
29 |
+ mlib_VideoIDCT8x8_U8_S16_NA(output_buf, compptr->DCT, stride); |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
30 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
31 |
} |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
32 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
33 |
--- ./src/ptlib/common/tinyjpeg.cxx.org 2007-11-19 11:39:14.335828000 +0800 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
34 |
+++ ./src/ptlib/common/tinyjpeg.cxx 2007-11-19 12:25:44.006754000 +0800 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
35 |
@@ -403,7 +403,15 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
36 |
} |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
37 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
38 |
for (j = 0; j < 64; j++) |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
39 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
40 |
c->DCT[j] = DCT[zigzag[j]]; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
41 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
42 |
+ { |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
43 |
+ c->DCT[j] = DCT[zigzag[j]] * c->Q_table[j]; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
44 |
+ if (j == 0) |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
45 |
+ c->DCT[j] += 1024; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
46 |
+ } |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
47 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
48 |
} |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
49 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
50 |
/* |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
51 |
@@ -1559,7 +1567,11 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
52 |
* |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
53 |
******************************************************************************/ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
54 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
55 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
56 |
static void build_quantization_table(float *qtable, const unsigned char *ref_table) |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
57 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
58 |
+static void build_quantization_table(uint16_t *qtable, const unsigned char *ref_table) |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
59 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
60 |
{ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
61 |
/* Taken from libjpeg. Copyright Independent JPEG Group's LLM idct. |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
62 |
* For float AA&N IDCT method, divisors are equal to quantization |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
63 |
@@ -1579,7 +1591,11 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
64 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
65 |
for (i=0; i<8; i++) { |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
66 |
for (j=0; j<8; j++) { |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
67 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
68 |
*qtable++ = ref_table[*zz++] * aanscalefactor[i] * aanscalefactor[j]; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
69 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
70 |
+ *qtable++ = ref_table[*zz++]; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
71 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
72 |
} |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
73 |
} |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
74 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
75 |
@@ -1588,7 +1604,11 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
76 |
static int parse_DQT(struct jdec_private *priv, const unsigned char *stream) |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
77 |
{ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
78 |
int qi; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
79 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
80 |
float *table; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
81 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
82 |
+ uint16_t *table; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
83 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
84 |
const unsigned char *dqt_block_end; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
85 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
86 |
trace("> DQT marker\n"); |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
87 |
--- ./src/ptlib/common/tinyjpeg-internal.h.org 2007-11-19 11:39:14.337567000 +0800 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
88 |
+++ ./src/ptlib/common/tinyjpeg-internal.h 2007-11-19 12:47:57.414364000 +0800 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
89 |
@@ -36,6 +36,9 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
90 |
#define __TINYJPEG_INTERNAL_H_ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
91 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
92 |
#include <setjmp.h> |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
93 |
+#ifdef SOLARIS |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
94 |
+#include <ptbuildopts.h> |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
95 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
96 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
97 |
#define SANITY_CHECK 1 |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
98 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
99 |
@@ -67,7 +70,11 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
100 |
{ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
101 |
unsigned int Hfactor; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
102 |
unsigned int Vfactor; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
103 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
104 |
float *Q_table; /* Pointer to the quantisation table to use */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
105 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
106 |
+ uint16_t *Q_table; /* Pointer to the quantisation table to use */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
107 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
108 |
struct huffman_table *AC_table; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
109 |
struct huffman_table *DC_table; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
110 |
short int previous_DC; /* Previous DC coefficient */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
111 |
@@ -96,7 +103,11 @@ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
112 |
unsigned int reservoir, nbits_in_reservoir; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
113 |
|
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
114 |
struct component component_infos[COMPONENTS]; |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
115 |
+#ifndef P_MEDIALIB |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
116 |
float Q_tables[COMPONENTS][64]; /* quantization tables */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
117 |
+#else |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
118 |
+ uint16_t Q_tables[COMPONENTS][64]; /* quantization tables */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
119 |
+#endif |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
120 |
struct huffman_table HTDC[HUFFMAN_TABLES]; /* DC huffman tables */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
121 |
struct huffman_table HTAC[HUFFMAN_TABLES]; /* AC huffman tables */ |
337ab05f45c8
Added new patch pwlib-06 to fix bugzilla#498082.Using Medialib to accelerate IDCT transform in MJPEGtoYUV420P convert.
elaine
parents:
diff
changeset
|
122 |
int default_huffman_table_initialized; |