loader.h
来自「TI DM6446板卡上调用decode engine进行解码的例子程序」· C头文件 代码 · 共 32 行
H
32 行
/* * loader.h * * ============================================================================ * Copyright (c) Texas Instruments Inc 2005 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied or provided. * ============================================================================ */#ifndef _LOADER_H#define _LOADER_Htypedef struct LoaderState { int inputFd; // INPUT - The file descriptor of the input file int loop; // INPUT - true if clip is to start over char *readBuffer; // INPUT - A large CMEM allocated buffer int readBufSize; // INPUT - Total size of the readBuffer int readSize; // INPUT - Size of the 'window' int doneMask; // INPUT - VIDEO_DONE or SOUND_DONE int firstFrame; // OUTPUT - True if first frame of a clip int endClip; // OUTPUT - True if time to start clip over char *curPtr; // INTERNAL - Points to current frame char *readPtr; // INTERNAL - Points to the end of current 'window'} LoaderState;extern int loaderPrime(LoaderState *state, char **framePtr);extern int loaderGetFrame(LoaderState *state, int frameSize, char **framePtr);#endif /* _LOADER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?