aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test_qnx/dce_enc_test/dce_enc_test.c')
-rw-r--r--test_qnx/dce_enc_test/dce_enc_test.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/test_qnx/dce_enc_test/dce_enc_test.c b/test_qnx/dce_enc_test/dce_enc_test.c
index e9130fd..d5b489e 100644
--- a/test_qnx/dce_enc_test/dce_enc_test.c
+++ b/test_qnx/dce_enc_test/dce_enc_test.c
@@ -545,7 +545,7 @@ int main(int argc, char * *argv)
545 engine = Engine_open("ivahd_vidsvr", NULL, &ec); 545 engine = Engine_open("ivahd_vidsvr", NULL, &ec);
546 546
547 if( !engine ) { 547 if( !engine ) {
548 ERROR("fail"); 548 ERROR("DCE_ENCODE_TEST_FAIL: ENGINE OPEN FAILED");
549 goto out; 549 goto out;
550 } 550 }
551 551
@@ -609,7 +609,7 @@ int main(int argc, char * *argv)
609 609
610 DEBUG("INPUT TILER buf=%p, buf->buf=%p y=%08x, uv=%08x", buf, buf->buf, buf->y, buf->uv); 610 DEBUG("INPUT TILER buf=%p, buf->buf=%p y=%08x, uv=%08x", buf, buf->buf, buf->y, buf->uv);
611 } else { 611 } else {
612 ERROR(" ---------------- tiler_alloc failed --------------------"); 612 ERROR("DCE_ENCODE_TEST_FAIL: TILER ALLOCATION FAILED");
613 free(buf); 613 free(buf);
614 goto shutdown; 614 goto shutdown;
615 } 615 }
@@ -630,7 +630,7 @@ int main(int argc, char * *argv)
630 DEBUG(" ----------------- create NON INPUT TILER buf 0x%x --------------------", (unsigned int)buf); 630 DEBUG(" ----------------- create NON INPUT TILER buf 0x%x --------------------", (unsigned int)buf);
631 err = allocate_nonTiler(&input_nonTiler, width * height * 3/2); 631 err = allocate_nonTiler(&input_nonTiler, width * height * 3/2);
632 if( err < 0 ) { 632 if( err < 0 ) {
633 ERROR(" ---------------- allocate_nonTiler failed --------------------"); 633 ERROR("DCE_ENCODE_TEST_FAIL: NON-TILER ALLOCATION FAILED");
634 free(buf); 634 free(buf);
635 goto shutdown; 635 goto shutdown;
636 } 636 }
@@ -944,7 +944,7 @@ int main(int argc, char * *argv)
944 } 944 }
945 945
946 if( !codec ) { 946 if( !codec ) {
947 ERROR("fail"); 947 ERROR("DCE_ENCODE_TEST_FAIL: CODEC CREATION FAILED");
948 goto out; 948 goto out;
949 } 949 }
950 950
@@ -1146,7 +1146,7 @@ int main(int argc, char * *argv)
1146 } 1146 }
1147 1147
1148 if( err ) { 1148 if( err ) {
1149 ERROR("fail: %d", err); 1149 ERROR("DCE_ENCODE_TEST_FAIL: CODEC CONTROL FAILED %d",err);
1150 goto shutdown; 1150 goto shutdown;
1151 } 1151 }
1152 1152
@@ -1184,7 +1184,7 @@ int main(int argc, char * *argv)
1184 DEBUG("Output allocate through NON-TILER"); 1184 DEBUG("Output allocate through NON-TILER");
1185 err = allocate_nonTiler(&output_nonTiler, output_size); 1185 err = allocate_nonTiler(&output_nonTiler, output_size);
1186 if( err < 0 ) { 1186 if( err < 0 ) {
1187 ERROR("fail: %d", err); 1187 ERROR("DCE_ENCODE_TEST_FAIL: NON_TILER ALLOCATION FAILED %d",err);
1188 goto shutdown; 1188 goto shutdown;
1189 } 1189 }
1190 output = (char*) output_nonTiler.vir_addr; 1190 output = (char*) output_nonTiler.vir_addr;
@@ -1204,7 +1204,7 @@ int main(int argc, char * *argv)
1204 else { 1204 else {
1205 err = allocate_nonTiler(&output_mvbuf_nonTiler, mvbufinfo_size); 1205 err = allocate_nonTiler(&output_mvbuf_nonTiler, mvbufinfo_size);
1206 if( err < 0 ) { 1206 if( err < 0 ) {
1207 ERROR("fail: %d", err); 1207 ERROR("DCE_ENCODE_TEST_FAIL: NON_TILER ALLOCATION FAILED %d",err);
1208 goto shutdown; 1208 goto shutdown;
1209 } 1209 }
1210 output_mvbuf = (char*) output_mvbuf_nonTiler.vir_addr; 1210 output_mvbuf = (char*) output_mvbuf_nonTiler.vir_addr;
@@ -1409,6 +1409,7 @@ int main(int argc, char * *argv)
1409 ERROR("process returned error: %d\n", err); 1409 ERROR("process returned error: %d\n", err);
1410 //ERROR("extendedError: %08x", outArgs->extendedError); 1410 //ERROR("extendedError: %08x", outArgs->extendedError);
1411 ERROR("extendedError: %08x", h264enc_outArgs->videnc2OutArgs.extendedError); 1411 ERROR("extendedError: %08x", h264enc_outArgs->videnc2OutArgs.extendedError);
1412 ERROR("DCE_ENCODE_TEST_FAIL: CODEC FATAL ERROR");
1412 goto shutdown; 1413 goto shutdown;
1413 } else if( eof ) { 1414 } else if( eof ) {
1414 //ERROR("Codec_process returned err=%d, extendedError=%08x", err, outArgs->extendedError); 1415 //ERROR("Codec_process returned err=%d, extendedError=%08x", err, outArgs->extendedError);
@@ -1433,7 +1434,7 @@ int main(int argc, char * *argv)
1433 DEBUG("[DCE_ENC_TEST] VIDENC2_process - err %d", err); 1434 DEBUG("[DCE_ENC_TEST] VIDENC2_process - err %d", err);
1434 if( err < 0 ) { 1435 if( err < 0 ) {
1435 //TODO error handling on MPEG4/H.263 1436 //TODO error handling on MPEG4/H.263
1436 ERROR("Codec_process returned err=%d, extendedError=%08x", err, mpeg4enc_outArgs->videnc2OutArgs.extendedError); 1437 ERROR("DCE_ENCODE_TEST_FAIL: CODEC PROCESS RETURNED ERROR : err=%d, extendedError=%08x", err, mpeg4enc_outArgs->videnc2OutArgs.extendedError);
1437 goto shutdown; 1438 goto shutdown;
1438 } 1439 }
1439 DEBUG("\n bytesGenerated %d", mpeg4enc_outArgs->videnc2OutArgs.bytesGenerated); 1440 DEBUG("\n bytesGenerated %d", mpeg4enc_outArgs->videnc2OutArgs.bytesGenerated);