videnc_copy.xs

来自「Introduce how to Change the DVEVM6446 Me」· XS 代码 · 共 69 行

XS
69
字号
/* *  Copyright 2007 by Texas Instruments Incorporated. * *  All rights reserved. Property of Texas Instruments Incorporated. *  Restricted rights to use, duplicate or disclose this code are *  granted through contract. * *//* *  ======== VIDENC_COPY.xs ======== *  This file implements the functions specified in the ti.sdo.ce.ICodec *  interface.  These functions enable the configuration tool to validate *  user supplied configuration parameters (e.g., stack size for the *  thread running this codec). */var verbose = false;   /* set to true to enable verbose output during config *//* *  ======== getStackSize ======== */function getStackSize(prog){    if (verbose) {        print("getting stack size for " + this.$name            + " built for the target " + prog.build.target.$name            + ", running on platform " +  prog.platformName);    }    return (1024);}/* *  ======== getDaramScratchSize ======== */function getDaramScratchSize(prog){    if (verbose) {        print("getting DARAM scratch size for " + this.$name            + " built for the target " + prog.build.target.$name            + ", running on platform " +  prog.platformName);    }    return (0);}/* *  ======== getSaramScratchSize ======== */function getSaramScratchSize(prog){    if (verbose) {        print("getting SARAM scratch size for " + this.$name            + " built for the target " + prog.build.target.$name            + ", running on platform " +  prog.platformName);    }    /*      * This codec does not actually use scratch, but here we show how     * to configure an SARAM scratch requirement of 1024 octets.     */    return (1024);}/* *  @(#) ti.sdo.ce.examples.codecs.videnc_copy; 1,0,0,32; 4-6-2007 17:47:33; /db/atree/library/trees/ce-f22x/src/ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?