[llvm-commits] CVS: llvm-test/MultiSource/Applications/JM/ldecod/cabac.c global.h loopFilter.c macroblock.c mbuffer.h vlc.c vlc.h
Lauro Ramos Venancio
lauro.venancio at gmail.com
Fri Mar 23 13:55:08 PDT 2007
Changes in directory llvm-test/MultiSource/Applications/JM/ldecod:
cabac.c updated: 1.4 -> 1.5
global.h updated: 1.6 -> 1.7
loopFilter.c updated: 1.4 -> 1.5
macroblock.c updated: 1.4 -> 1.5
mbuffer.h updated: 1.4 -> 1.5
vlc.c updated: 1.4 -> 1.5
vlc.h updated: 1.4 -> 1.5
---
Log message:
"The C standards do say that "char" may either be a "signed char" or "unsigned
char" and it is up to the compilers implementation or the platform which is
followed."
http://www.arm.linux.org.uk/docs/faqs/signedchar.php
---
Diffs of the changes: (+24 -24)
cabac.c | 2 +-
global.h | 4 ++--
loopFilter.c | 6 +++---
macroblock.c | 24 ++++++++++++------------
mbuffer.h | 8 ++++----
vlc.c | 2 +-
vlc.h | 2 +-
7 files changed, 24 insertions(+), 24 deletions(-)
Index: llvm-test/MultiSource/Applications/JM/ldecod/cabac.c
diff -u llvm-test/MultiSource/Applications/JM/ldecod/cabac.c:1.4 llvm-test/MultiSource/Applications/JM/ldecod/cabac.c:1.5
--- llvm-test/MultiSource/Applications/JM/ldecod/cabac.c:1.4 Thu Feb 8 16:38:32 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/cabac.c Fri Mar 23 15:54:51 2007
@@ -873,7 +873,7 @@
int a, b;
int act_ctx;
int act_sym;
- char** refframe_array = dec_picture->ref_idx[se->value2];
+ signed char** refframe_array = dec_picture->ref_idx[se->value2];
int b8a, b8b;
PixelPos block_a, block_b;
Index: llvm-test/MultiSource/Applications/JM/ldecod/global.h
diff -u llvm-test/MultiSource/Applications/JM/ldecod/global.h:1.6 llvm-test/MultiSource/Applications/JM/ldecod/global.h:1.7
--- llvm-test/MultiSource/Applications/JM/ldecod/global.h:1.6 Thu Feb 8 16:40:47 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/global.h Fri Mar 23 15:54:51 2007
@@ -327,8 +327,8 @@
int is_skip;
int i16mode;
- char b8mode[4];
- char b8pdir[4];
+ signed char b8mode[4];
+ signed char b8pdir[4];
int ei_flag;
int LFDisableIdc;
Index: llvm-test/MultiSource/Applications/JM/ldecod/loopFilter.c
diff -u llvm-test/MultiSource/Applications/JM/ldecod/loopFilter.c:1.4 llvm-test/MultiSource/Applications/JM/ldecod/loopFilter.c:1.5
--- llvm-test/MultiSource/Applications/JM/ldecod/loopFilter.c:1.4 Thu Feb 8 16:38:32 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/loopFilter.c Fri Mar 23 15:54:51 2007
@@ -52,7 +52,7 @@
{ 0, 9,12,18,18},{ 0,10,13,20,20},{ 0,11,15,23,23},{ 0,13,17,25,25}
} ;
-static const char chroma_edge[2][4][4] = //[dir][edge][yuv_format]
+static const signed char chroma_edge[2][4][4] = //[dir][edge][yuv_format]
{ { {-1, 0, 0, 0},
{-1,-1,-1, 1},
{-1, 1, 1, 2},
@@ -217,8 +217,8 @@
int blk_x, blk_x2, blk_y, blk_y2 ;
short ***list0_mv = p->mv[LIST_0];
short ***list1_mv = p->mv[LIST_1];
- char **list0_refIdxArr = p->ref_idx[LIST_0];
- char **list1_refIdxArr = p->ref_idx[LIST_1];
+ signed char **list0_refIdxArr = p->ref_idx[LIST_0];
+ signed char **list1_refIdxArr = p->ref_idx[LIST_1];
int64 **list0_refPicIdArr = p->ref_pic_id[LIST_0];
int64 **list1_refPicIdArr = p->ref_pic_id[LIST_1];
int64 ref_p0,ref_p1,ref_q0,ref_q1;
Index: llvm-test/MultiSource/Applications/JM/ldecod/macroblock.c
diff -u llvm-test/MultiSource/Applications/JM/ldecod/macroblock.c:1.4 llvm-test/MultiSource/Applications/JM/ldecod/macroblock.c:1.5
--- llvm-test/MultiSource/Applications/JM/ldecod/macroblock.c:1.4 Thu Feb 8 16:38:32 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/macroblock.c Fri Mar 23 15:54:51 2007
@@ -53,9 +53,9 @@
static void SetMotionVectorPredictor (struct img_par *img,
short pmv[2],
- char ref_frame,
+ signed char ref_frame,
byte list,
- char ***refPic,
+ signed char ***refPic,
short ****tmp_mv,
int block_x,
int block_y,
@@ -1266,9 +1266,9 @@
*/
static void SetMotionVectorPredictor (struct img_par *img,
short pmv[2],
- char ref_frame,
+ signed char ref_frame,
byte list,
- char ***refPic,
+ signed char ***refPic,
short ****tmp_mv,
int block_x,
int block_y,
@@ -1501,7 +1501,7 @@
int step_v0 = BLOCK_STEP [partmode][1];
int mv_mode, i0, j0;
- char refframe;
+ signed char refframe;
short pmv[2];
int j4, i4, ii,jj;
int vec;
@@ -1514,7 +1514,7 @@
byte ** moving_block;
short **** co_located_mv;
- char *** co_located_ref_idx;
+ signed char *** co_located_ref_idx;
int64 *** co_located_ref_id;
if ((img->MbaffFrameFlag)&&(currMB->mb_field))
@@ -1552,7 +1552,7 @@
PixelPos mb_left, mb_up, mb_upleft, mb_upright;
- char l0_rFrame,l1_rFrame;
+ signed char l0_rFrame,l1_rFrame;
short pmvl0[2]={0,0}, pmvl1[2]={0,0};
getLuma4x4Neighbour(img->current_mb_nr, -1, 0, &mb_left);
@@ -2353,7 +2353,7 @@
int numones, totzeros, level, cdc=0, cac=0;
int zerosleft, ntr, dptype = 0;
int max_coeff_num = 0, nnz;
- char type[15];
+ signed char type[15];
static int incVlc[] = {0,3,6,12,24,48,32768}; // maximum vlc = 6
numcoeff = 0;
@@ -3858,7 +3858,7 @@
int jf;
- char l0_rFrame = -1, l1_rFrame = -1;
+ signed char l0_rFrame = -1, l1_rFrame = -1;
short pmvl0[2]={0,0},
pmvl1[2]={0,0};
@@ -3869,7 +3869,7 @@
byte ** moving_block;
short **** co_located_mv;
- char *** co_located_ref_idx;
+ signed char *** co_located_ref_idx;
int64 *** co_located_ref_id;
int need_4x4_transform = (!currMB->luma_transform_size_8x8_flag);
@@ -3976,8 +3976,8 @@
if (img->type==B_SLICE && img->direct_spatial_mv_pred_flag && (IS_DIRECT (currMB) ||
(IS_P8x8(currMB) && !(currMB->b8mode[0] && currMB->b8mode[1] && currMB->b8mode[2] && currMB->b8mode[3]))))
{
- char l0_rFrameL, l0_rFrameU, l0_rFrameUL, l0_rFrameUR;
- char l1_rFrameL, l1_rFrameU, l1_rFrameUL, l1_rFrameUR;
+ signed char l0_rFrameL, l0_rFrameU, l0_rFrameUL, l0_rFrameUR;
+ signed char l1_rFrameL, l1_rFrameU, l1_rFrameUL, l1_rFrameUR;
PixelPos mb_left, mb_up, mb_upleft, mb_upright;
Index: llvm-test/MultiSource/Applications/JM/ldecod/mbuffer.h
diff -u llvm-test/MultiSource/Applications/JM/ldecod/mbuffer.h:1.4 llvm-test/MultiSource/Applications/JM/ldecod/mbuffer.h:1.5
--- llvm-test/MultiSource/Applications/JM/ldecod/mbuffer.h:1.4 Thu Feb 8 16:38:32 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/mbuffer.h Fri Mar 23 15:54:51 2007
@@ -66,7 +66,7 @@
short ** slice_id; //!< reference picture [mb_x][mb_y]
- char *** ref_idx; //!< reference picture [list][subblock_y][subblock_x]
+ signed char *** ref_idx; //!< reference picture [list][subblock_y][subblock_x]
int64 *** ref_pic_id; //!< reference picture identifier [list][subblock_y][subblock_x]
// (not simply index)
@@ -115,21 +115,21 @@
int64 ref_pic_num[6][MAX_LIST_SIZE];
- char *** ref_idx; //!< reference picture [list][subblock_y][subblock_x]
+ signed char *** ref_idx; //!< reference picture [list][subblock_y][subblock_x]
int64 *** ref_pic_id; //!< reference picture identifier [list][subblock_y][subblock_x]
short **** mv; //!< motion vector [list][subblock_y][subblock_x][component]
byte ** moving_block;
// Top field params
int64 top_ref_pic_num[6][MAX_LIST_SIZE];
- char *** top_ref_idx; //!< reference picture [list][subblock_y][subblock_x]
+ signed char *** top_ref_idx; //!< reference picture [list][subblock_y][subblock_x]
int64 *** top_ref_pic_id; //!< reference picture identifier [list][subblock_y][subblock_x]
short **** top_mv; //!< motion vector [list][subblock_y][subblock_x][component]
byte ** top_moving_block;
// Bottom field params
int64 bottom_ref_pic_num[6][MAX_LIST_SIZE];
- char *** bottom_ref_idx; //!< reference picture [list][subblock_y][subblock_x]
+ signed char *** bottom_ref_idx; //!< reference picture [list][subblock_y][subblock_x]
int64 *** bottom_ref_pic_id; //!< reference picture identifier [list][subblock_y][subblock_x]
short **** bottom_mv; //!< motion vector [list][subblock_y][subblock_x][component]
byte ** bottom_moving_block;
Index: llvm-test/MultiSource/Applications/JM/ldecod/vlc.c
diff -u llvm-test/MultiSource/Applications/JM/ldecod/vlc.c:1.4 llvm-test/MultiSource/Applications/JM/ldecod/vlc.c:1.5
--- llvm-test/MultiSource/Applications/JM/ldecod/vlc.c:1.4 Thu Feb 8 16:38:32 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/vlc.c Fri Mar 23 15:54:51 2007
@@ -685,7 +685,7 @@
*/
int readSyntaxElement_NumCoeffTrailingOnes(SyntaxElement *sym, DataPartition *dP,
- char *type)
+ signed char *type)
{
Bitstream *currStream = dP->bitstream;
int frame_bitoffset = currStream->frame_bitoffset;
Index: llvm-test/MultiSource/Applications/JM/ldecod/vlc.h
diff -u llvm-test/MultiSource/Applications/JM/ldecod/vlc.h:1.4 llvm-test/MultiSource/Applications/JM/ldecod/vlc.h:1.5
--- llvm-test/MultiSource/Applications/JM/ldecod/vlc.h:1.4 Thu Feb 8 16:38:32 2007
+++ llvm-test/MultiSource/Applications/JM/ldecod/vlc.h Fri Mar 23 15:54:51 2007
@@ -38,7 +38,7 @@
int readSyntaxElement_FLC(SyntaxElement *sym, Bitstream *currStream);
int readSyntaxElement_NumCoeffTrailingOnes(SyntaxElement *sym, DataPartition *dP,
- char *type);
+ signed char *type);
int readSyntaxElement_NumCoeffTrailingOnesChromaDC(SyntaxElement *sym, DataPartition *dP);
int readSyntaxElement_Level_VLC0(SyntaxElement *sym, struct datapartition *dP);
int readSyntaxElement_Level_VLCN(SyntaxElement *sym, int vlc, struct datapartition *dP);
More information about the llvm-commits
mailing list