📄 input.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -