This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

command line

Other Parts Discussed in Thread: CCSTUDIO

In a  txt  format file ,i see the following:

"This source archive(img64x.src) may be rebuilt using
mk6x as follows:  mk6x img64x.src -mv6400 -l img64x.lib"

But when  I put mk6x.exe and img64x.src together in C:\d, and enter "mk6x img64x.src -mv6400 -l img64x.lib" in command line under DOS environment,

it tells me that "FILE 'img64x.src ' not an archive".(I have dir to C:\d)

after this

I enter "mk6x img64x.src -mv6400 -l img64x.lib" in command window which is open from  ccs3.3 tools  memu ,and it tell me "command mk6x not found"

so I get stuck.

if the command need a specific directory ,and how to do that?

  • Xingdou,

    I am sorry you are facing this issue. This is an old version of the library and the recompilation steps described there seem to be for an old version of the compiler as those options do not exist with new generation of compilers.

    In order to recompile the library, you need to extreact the source for the library using archiver ar6x. In order to do this cd in CGTOOLS_INSTALL_DIR\bin and use the command

    ar6x -x IMGLIB_INSTALL_DIR\lib\img64x_sa.src

    This will give you all the source files that you need. Now you can create a library project in CCS v3.3 and add all the extracted files as source to the project. Let us know if it will help if we can provide you with a CCS project to rebuild this library. 

    Regards,

    Rahul

  • Rahul Prabhu:

    Thanks for your answer.

            But when I do like what you tell ,(cd in C:\CCStudio_v3.3\C6000\cgtools\bin where  there is the files "ar6x.exe" and "img64x_sa.src",),it returns the words " 'img64x_sa.src'  is not  an archive ".

      so I open the file "img64x_sa.src",and find it starts with the following :

     !<arch>
    boundary.sa/    1066928952  0     0     0       8423      `
    ;* ======================================================================== *;
    ;*  TEXAS INSTRUMENTS, INC.                                                 *;
    ;*                                                                          *;
    ;*  IMGLIB  DSP Image/Video Processing Library                              *;
    ;*                                                                          *;
    ;*      Release:        Revision 1.04b                                      *;
    ;*      CVS Revision:   1.3     Mon Mar  4 02:24:18 2002 (UTC)              *;
    ;*      Snapshot date:  23-Oct-2003                                         *;
    ;*                                                                          *;
    ;*  This library contains proprietary intellectual property of Texas        *;
    ;*  Instruments, Inc.  The library and its source code are protected by     *;
    ;*  various copyrights, and portions may also be protected by patents or    *;
    ;*  other legal protections.                                                *;
    ;*                                                                          *;
    ;*  This software is licensed for use with Texas Instruments TMS320         *;
    ;*  family DSPs.  This license was provided to you prior to installing      *;
    ;*  the software.  You may review this license by consulting the file       *;
    ;*  TI_license.PDF which accompanies the files in this library.             *;
    ;* ------------------------------------------------------------------------ *;
    ;*          Copyright (C) 2003 Texas Instruments, Incorporated.             *;
    ;*                          All Rights Reserved.                            *;
    ;* ======================================================================== *;


    * ========================================================================= *
    *                                                                           *
    *   NAME                                                                    *
    *       IMG_boundary -- Returns coordinates of IMG_boundary pixels.         *
    *                                                                           *
    *   REVISION DATE                                                           *
    *       10-Jul-2001                                                         *
    *                                                                           *
    *   USAGE                                                                   *
    *       This routine is C callable, and is called as follows:               *
    *                                                                           *
    *           void IMG_boundary                                               *
    *           (                                                               *
    *               const unsigned char *restrict i_data,                       *
    *               int rows, int cols,                                         *
    *               int *restrict o_coord,                                      *
    *               int *restrict o_grey                                        *
    *           );                                                              *
    *                                                                           *
    *       The arguments are defined as follows:                               *
    *                                                                           *
    *           i_data   Input images that is cols-by-rows in size.             *
    *           rows     Height of the input image                              *
    *           cols     Width of the input image                               *
    *           o_coord  Array to write output coordinates to                   *
    *           o_grey   Array to write output grey levels to                   *
    *                                                                           *
    *   DESCRIPTION                                                             *
    *       This routine scans an image looking for non-zero pixels.            *
    *       The locations of those pixels are stored out to the o_coord         *
    *       as packed Y/X pairs, with Y in the upper half, and X in             *
    *       the lower half.  The grey levels encountered are stored             *
    *       in the o_grey array in parallel.                                    *
    *                                                                           *
    *   ASSUMPTIONS                                                             *
    *       At least one row is being processed.                                *
    *       Input is word aligned.                                              *
    *       Input is a multiple of 4 pixels wide.                               *
    *       Output buffers o_coord and o_grey start in different banks          *
    *       and are word-aligned.                                               *
    *       No more than 32764 rows or 32764 columns are being processed.       *
    *                                                                           *
    *   TECHNIQUES                                                              *
    *       Outer and inner loops are collapsed together.                       *
    *       Inner loop is unrolled to process four pixels per iteration.        *
    *       Packed coordinate value is updated directly, rather than            *
    *       by repacking x, y every time it's needed.                           *
    * ------------------------------------------------------------------------- *
    *             Copyright (c) 2003 Texas Instruments, Incorporated.           *
    *                            All Rights Reserved.                           *
    * ========================================================================= *


            .sect ".text:_boundary"
            .global _IMG_boundary
    _IMG_boundary: .cproc  A_i_data,  B_rows,  A_cols,  B_o_coord, A_o_grey
                  .no_mdep
                .reg            A_cols4,    A_r_step,   A_x
                .reg            A_c0, A_c1, A_c2, A_c3, A_i
                .reg            B_p0, B_p1, B_p2, B_p3, B_p3210

                NEG     .1      A_cols,     A_r_step
                MVKLH   .1      0,          A_r_step    ; r_step = 0x10000-cols
                SHR     .1      A_cols,     2,          A_cols4
                MPYU    .1X     B_rows,     A_cols4,    A_i
                ZERO    .1      A_c0
                MV              A_cols4,    A_x

                .mptr   A_i_data,  input  + 0, 4
                .mptr   B_o_coord, output + 0, 0
                .mptr   A_o_grey,  output + 4, 0
    loop:       .trip   4, 32764*32764/4, 1
                ADD     .1      A_c0,       1,          A_c1
                ADD     .1      A_c0,       2,          A_c2
                ADD     .1      A_c0,       3,          A_c3
                ;       ;       ;           ;           ;
                LDW     .D1T2   *A_i_data++,            B_p3210
                SHRU    .2      B_p3210,    24,         B_p3
                EXTU    .2      B_p3210,    8,  24,     B_p2
                EXTU    .2      B_p3210,    16, 24,     B_p1
                EXTU    .2      B_p3210,    24, 24,     B_p0
        [B_p0]  STW     .D1T2   B_p0,       *A_o_grey++
        [B_p0]  STW     .D2T1   A_c0,       *B_o_coord++
        [B_p1]  STW     .D1T2   B_p1,       *A_o_grey++
        [B_p1]  STW     .D2T1   A_c1,       *B_o_coord++
        [B_p2]  STW     .D1T2   B_p2,       *A_o_grey++
        [B_p2]  STW     .D2T1   A_c2,       *B_o_coord++
        [B_p3]  STW     .D1T2   B_p3,       *A_o_grey++
        [B_p3]  STW     .D2T1   A_c3,       *B_o_coord++
                ADD     .1      A_c0,       4,          A_c0
                SUB     .1      A_x,        1,          A_x
        [!A_x]  ADD     .1      A_c0,       A_r_step,   A_c0
        [!A_x]  MV      .1      A_cols4,    A_x

                SUB     .1      A_i,        1,          A_i
        [ A_i]  B               loop

                .return
                .endproc

    I don't know if someting is wrong in the file.Another I have found other way instead of recompling the img64x_sa.src, so you needn't provide me a CCS project to rebuild this library.

    Thanks for you again.