📄 thrprocess.h
字号:
/*
* 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.
*
*/
/*
* ======== thrProcess.h ========
*
*/
#ifndef THRPROCESS_
#define THRPROCESS_
// RF5 module includes
#include <chan.h>
#include <icell.h>
#include "appThreads.h" // thread-wide common info
#ifdef __cplusplus
extern "C" {
#endif
//h263 encoder Channels 1
enum { CHENC0 = 0,
NUMENCCHANS
};
// h263 encoder Channels 2a
enum { CHCA2AENC = 0,
NUMCA2AENCCHANS
};
// h263 encoder Channels 2b
enum { CHCB2AENC = 0,
NUMCA2BENCCHANS
};
// Cells for h263 encoder 1
enum { CHCELLH264ENC= 0,
CHH264NUMCELLS
};
// Cells for h263 encoder 2a
enum {CHCA2ACELLH264ENC = 0,
CHCA2AH264NUMCELLS
};
// Cells for h263 encoder 2b
enum {CHCA2BCELLH264ENC = 0,
CHCA2BH264NUMCELLS
};
// message IDs
enum {
MSGNEWRATIO = 0,
MSGNEWREFERENCE,
MSGNEWCOLOR
};
/* Definition of the structure describing the state of the thread. */
typedef struct ThrProcess {
CHAN_Obj encChans[NUMENCCHANS];
CHAN_Obj ca2aencChans[NUMCA2AENCCHANS];
CHAN_Obj ca2bencChans[NUMCA2BENCCHANS];
ICELL_Obj encCells [NUMENCCHANS*CHH264NUMCELLS];
ICELL_Obj ca2aencCells[NUMCA2AENCCHANS*CHCA2AH264NUMCELLS];
ICELL_Obj ca2bencCells[NUMCA2BENCCHANS*CHCA2BH264NUMCELLS];
ScomProcToDisp scombufDisp;
ScomCapToProc scombufCap;
ScomCap2aToProc scombufCap2a;
ScomCap2bToProc scombufCap2b;
void *bufOutput[ NUMENCCHANS ];
void *bufOutput2a[ NUMCA2AENCCHANS ];
void *bufOutput2b[ NUMCA2BENCCHANS ];
} 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -