input.h

来自「linux下将各类格式图片转换工具」· C头文件 代码 · 共 61 行

H
61
字号
#ifndef INPUT_H_INCLUDED#define INPUT_H_INCLUDED#include "ppm.h"#include "frame.h"struct InputFileEntry;struct inputSource {/*----------------------------------------------------------------------------   This describes the source of data for the program.   Typically, the source data is a bunch of raw frames in PPM format.   But sometimes, it is a bunch of already encoded frames or GOPs.-----------------------------------------------------------------------------*/    bool                     stdinUsed;    struct InputFileEntry ** inputFileEntries;    unsigned int             numInputFileEntries;    unsigned int             ifArraySize;    int numInputFiles;        /* This is the number of input files available.  If we're           reading from a pipe, it's infinity.  (At the moment, we           approximate "reading from a pipe" as "reading from Standard           Input).          */};voidGetNthInputFileName(struct inputSource * const inputSourceP,                    unsigned int         const n,                    const char **        const fileName);voidReadNthFrame(struct inputSource * const inputSourceP,             unsigned int         const frameNumber,             bool                 const remoteIO,             bool                 const childProcess,             bool                 const separateConversion,             const char *         const slaveConversion,             const char *         const inputConversion,             MpegFrame *          const frameP);voidJM2JPEG(struct inputSource * const inputSourceP);voidAddInputFiles(struct inputSource * const inputSourceP,              const char *         const input);voidSetStdinInput(struct inputSource * const inputSourceP);voidCreateInputSource(struct inputSource ** const inputSourcePP);voidDestroyInputSource(struct inputSource * const inputSourceP);#endif

⌨️ 快捷键说明

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