aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuddy Liong2014-08-20 10:04:57 -0500
committerBuddy Liong2014-08-20 12:23:51 -0500
commit9ff1f626118c7923b84445b3da64352289d308ca (patch)
tree49d514a195f6fac62499df090fd301976acdd0d4 /test_qnx
parentdd6d57718a7b5ddcc5234fe7c9f15ea87ed33858 (diff)
downloadrepo-libdce-9ff1f626118c7923b84445b3da64352289d308ca.tar.gz
repo-libdce-9ff1f626118c7923b84445b3da64352289d308ca.tar.xz
repo-libdce-9ff1f626118c7923b84445b3da64352289d308ca.zip
[TEST_QNX] Fixing compiler warnings
Using QNX SDP 6.6, compiler issues warnings: /libdce/test_qnx/dce_enc_test/dce_enc_test.c: In function 'main': /libdce/test_qnx/dce_enc_test/dce_enc_test.c:363:21: warning: variable 'ivahd_encode_type' set but not used [-Wunused-but-set-variable] /libdce/test_qnx/dce_enc_test/dce_enc_test.c:357:21: warning: variable 'oned' set but not used [-Wunused-but-set-variable] /libdce/test_qnx/dce_test/dce_test.c:588:22: warning: variable 'vc1_flush' set but not used [-Wunused-but-set-variable] Change-Id: I53798b7a10128baea6f87ee0cc1eca483243846c Signed-off-by: Buddy Liong <buddy.budiono@ti.com>
Diffstat (limited to 'test_qnx')
-rw-r--r--test_qnx/dce_enc_test/dce_enc_test.c8
-rw-r--r--test_qnx/dce_test/dce_test.c3
2 files changed, 0 insertions, 11 deletions
diff --git a/test_qnx/dce_enc_test/dce_enc_test.c b/test_qnx/dce_enc_test/dce_enc_test.c
index c8f6eed..046b4c5 100644
--- a/test_qnx/dce_enc_test/dce_enc_test.c
+++ b/test_qnx/dce_enc_test/dce_enc_test.c
@@ -354,13 +354,11 @@ int main(int argc, char * *argv)
354 int mvbufinfo_size = 0; 354 int mvbufinfo_size = 0;
355 char *in_pattern, *out_pattern; 355 char *in_pattern, *out_pattern;
356 int in_cnt = 0, out_cnt = 0; 356 int in_cnt = 0, out_cnt = 0;
357 int oned;
358 InputBuffer *buf = NULL; 357 InputBuffer *buf = NULL;
359 char profile[10]; 358 char profile[10];
360 int profile_value; 359 int profile_value;
361 int level; 360 int level;
362 int eof = 0; 361 int eof = 0;
363 int ivahd_encode_type;
364 char vid_codec[10]; 362 char vid_codec[10];
365 char tilerbuffer[10]; 363 char tilerbuffer[10];
366 unsigned int codec_switch = 0; 364 unsigned int codec_switch = 0;
@@ -384,11 +382,8 @@ int main(int argc, char * *argv)
384#endif 382#endif
385 383
386 if( (argc >= 2) && !strcmp(argv[1], "-1") ) { 384 if( (argc >= 2) && !strcmp(argv[1], "-1") ) {
387 oned = TRUE;
388 argc--; 385 argc--;
389 argv++; 386 argv++;
390 } else {
391 oned = FALSE;
392 } 387 }
393 388
394 if( argc != 10 ) { 389 if( argc != 10 ) {
@@ -425,7 +420,6 @@ int main(int argc, char * *argv)
425 */ 420 */
426 421
427 if( (!(strcmp(vid_codec, "h264"))) ) { 422 if( (!(strcmp(vid_codec, "h264"))) ) {
428 ivahd_encode_type = IVAHD_H264_ENCODE;
429 codec_switch = DCE_ENC_TEST_H264; 423 codec_switch = DCE_ENC_TEST_H264;
430 if( (!(strcmp(profile, "baseline"))) ) { 424 if( (!(strcmp(profile, "baseline"))) ) {
431 profile_value = IH264_BASELINE_PROFILE; 425 profile_value = IH264_BASELINE_PROFILE;
@@ -461,7 +455,6 @@ int main(int argc, char * *argv)
461 } 455 }
462 } else if( !(strcmp(vid_codec, "mpeg4"))) { 456 } else if( !(strcmp(vid_codec, "mpeg4"))) {
463 457
464 ivahd_encode_type = IVAHD_MPEG4_ENCODE;
465 codec_switch = DCE_ENC_TEST_MPEG4; 458 codec_switch = DCE_ENC_TEST_MPEG4;
466 459
467 if( (!(strcmp(profile, "simple"))) ) { 460 if( (!(strcmp(profile, "simple"))) ) {
@@ -488,7 +481,6 @@ int main(int argc, char * *argv)
488 } 481 }
489 } else if( !(strcmp(vid_codec, "h263"))) { 482 } else if( !(strcmp(vid_codec, "h263"))) {
490 483
491 ivahd_encode_type = IVAHD_H263_ENCODE;
492 codec_switch = DCE_ENC_TEST_H263; 484 codec_switch = DCE_ENC_TEST_H263;
493 485
494 if( (!(strcmp(profile, "simple"))) ) { 486 if( (!(strcmp(profile, "simple"))) ) {
diff --git a/test_qnx/dce_test/dce_test.c b/test_qnx/dce_test/dce_test.c
index 2a4ae1a..a1e82c4 100644
--- a/test_qnx/dce_test/dce_test.c
+++ b/test_qnx/dce_test/dce_test.c
@@ -585,7 +585,6 @@ int main(int argc, char * *argv)
585 char vid_codec[10]; 585 char vid_codec[10];
586 char tilerbuffer[10]; 586 char tilerbuffer[10];
587 unsigned int codec_switch = 0; 587 unsigned int codec_switch = 0;
588 unsigned int vc1_flush = 0;
589 Bool outBufsInUse = FALSE; 588 Bool outBufsInUse = FALSE;
590 589
591#ifdef PROFILE_TIME 590#ifdef PROFILE_TIME
@@ -662,12 +661,10 @@ int main(int argc, char * *argv)
662 } else if((!(strcmp(vid_codec, "vc1smp")))) { 661 } else if((!(strcmp(vid_codec, "vc1smp")))) {
663 ivahd_decode_type = IVAHD_VC1SMP_DECODE; 662 ivahd_decode_type = IVAHD_VC1SMP_DECODE;
664 codec_switch = DCE_TEST_VC1SMP; 663 codec_switch = DCE_TEST_VC1SMP;
665 vc1_flush = 1;
666 664
667 } else if((!(strcmp(vid_codec, "vc1ap")))) { 665 } else if((!(strcmp(vid_codec, "vc1ap")))) {
668 ivahd_decode_type = IVAHD_VC1AP_DECODE; 666 ivahd_decode_type = IVAHD_VC1AP_DECODE;
669 codec_switch = DCE_TEST_VC1AP; 667 codec_switch = DCE_TEST_VC1AP;
670 vc1_flush = 1;
671 668
672 } else if((!(strcmp(vid_codec, "mjpeg")))) { 669 } else if((!(strcmp(vid_codec, "mjpeg")))) {
673 ivahd_decode_type = IVAHD_JPEGV_DECODE; 670 ivahd_decode_type = IVAHD_JPEGV_DECODE;