aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbuddy.liong2013-11-15 17:39:49 -0600
committerbuddy.liong2013-11-15 17:39:49 -0600
commit31bb1282efc6e9afcfdc90ece237cfe156d4d853 (patch)
treeda329780e73e187d84a762851a5b1809b24c0989 /libdce.c
parent2f4b8635e4c6717dfe963ea6d43d5aff000b0e12 (diff)
downloadrepo-libdce-31bb1282efc6e9afcfdc90ece237cfe156d4d853.tar.gz
repo-libdce-31bb1282efc6e9afcfdc90ece237cfe156d4d853.tar.xz
repo-libdce-31bb1282efc6e9afcfdc90ece237cfe156d4d853.zip
[LIBDCE] Get codec version on dce_test and dce_enc_test
Internal reference: DVT OMAPS00302159. To add the capability for the QNX dce_test and dce_enc_test to get the codec version through XDM_GETVERSION command of codec_control. Change-Id: Ia39aeb5b55d3b8aba9365ad6d4a4a63e4e44b8aa Signed-off-by: buddy.liong <buddy.budiono@ti.com>
Diffstat (limited to 'libdce.c')
-rw-r--r--libdce.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdce.c b/libdce.c
index deebc94..8dde367 100644
--- a/libdce.c
+++ b/libdce.c
@@ -649,7 +649,12 @@ XDAS_Int32 VIDENC2_control(VIDENC2_Handle codec, VIDENC2_Cmd id,
649 649
650 DEBUG(">> codec=%p, id=%d, dynParams=%p, status=%p", 650 DEBUG(">> codec=%p, id=%d, dynParams=%p, status=%p",
651 codec, id, dynParams, status); 651 codec, id, dynParams, status);
652 ret = control(codec, id, dynParams, status, OMAP_DCE_VIDENC2); 652 if( id == XDM_GETVERSION ) {
653 ret = get_version(codec, dynParams, status, OMAP_DCE_VIDENC2);
654 }
655 else {
656 ret = control(codec, id, dynParams, status, OMAP_DCE_VIDENC2);
657 }
653 DEBUG("<< ret=%d", ret); 658 DEBUG("<< ret=%d", ret);
654 return (ret); 659 return (ret);
655} 660}