thrprocess.h

来自「DM642平台上的H.264源码(可实时运行)」· C头文件 代码 · 共 71 行

H
71
字号
/*
 *  Copyright 2002 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.
 *  
 */
/*
 *  ======== thrEncode.h ========
 *
 */

#ifndef THRPROCESS_
#define THRPROCESS_

// RF5 module includes
#include <chan.h>
#include <icell.h>

#include "encode/cellH264encode.h"
#include "decode/cellH264decode.h"
#include "appThreads.h"         // thread-wide common info

#ifdef __cplusplus
extern "C" {
#endif

// Combination Channels
enum {	CHCOMBO  = 0,
		NUMCOMBOCHANS
	 };

// Cells for Combo
enum { CHCOMBOCELLENC = 0,
       CHCOMBONUMCELLS
     };


#define TOTALNUMCHANS (NUMCOMBOCHANS)

// message IDs
enum {
    MSGNEWRATIO = 0,
    MSGNEWREFERENCE,
    MSGNEWCOLOR
};

/* Definition of the structure describing the state of the thread. */
typedef struct ThrProcess {		

    CHAN_Obj     	comboChans[NUMCOMBOCHANS]; 
    ICELL_Obj    	comboCells[NUMCOMBOCHANS * CHCOMBONUMCELLS]; 
    Char            *enc_buf;
    ScomCapToProc  	scombufCap;
    
} ThrProcess; 

/* prototypes for public functions */
extern Void thrProcessInit( Void );
extern Void thrProcessStartup( Void );
extern Void thrProcessRun( Void );

#ifdef __cplusplus
}
#endif // extern "C" 

#endif // THRPROCESS_



⌨️ 快捷键说明

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