Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

readframe.c File Reference

#include "all.h"
#include <time.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include "mtypes.h"
#include "frames.h"
#include "prototypes.h"
#include "parallel.h"
#include "param.h"
#include "readframe.h"
#include "fsize.h"
#include "rgbtoycc.h"
#include "jpeg.h"
#include "opts.h"

Go to the source code of this file.


Data Structures

struct  YuvLine

Defines

#define PPM_READ_STATE_MAGIC   0
#define PPM_READ_STATE_WIDTH   1
#define PPM_READ_STATE_HEIGHT   2
#define PPM_READ_STATE_MAXVAL   3
#define PPM_READ_STATE_DONE   4
#define safe_fread(ptr, sz, len, fileptr)

Functions

char *ScanNextString _ANSI_ARGS_ ((char *inputLine, char *string))
void ReadPNM _ANSI_ARGS_ ((FILE *fp, MpegFrame *mf))
boolean ReadPPM _ANSI_ARGS_ ((MpegFrame *mf, FILE *fpointer))
void ReadEYUV _ANSI_ARGS_ ((MpegFrame *mf, FILE *fpointer, int width, int height))
void SeparateLine _ANSI_ARGS_ ((FILE *fpointer, struct YuvLine *lineptr, int width))
void DoGamma _ANSI_ARGS_ ((MpegFrame *mf, int width, int height))
void DoKillDim _ANSI_ARGS_ ((MpegFrame *mf, int w, int h))
void SetResize (set) boolean set

Variables

int fileType = BASE_FILE_TYPE
boolean GammaCorrection
float GammaValue
int outputWidth
int outputHeight
boolean resizeFrame
char * CurrFile
char * fileName
char * conversion
boolean addPath
MpegFramemf
FILE * fpointer
int width
int height
YuvLinelineptr
char * string
int w
int h

Define Documentation

#define PPM_READ_STATE_DONE   4
 

Definition at line 158 of file readframe.c.

#define PPM_READ_STATE_HEIGHT   2
 

Definition at line 156 of file readframe.c.

#define PPM_READ_STATE_MAGIC   0
 

Definition at line 154 of file readframe.c.

#define PPM_READ_STATE_MAXVAL   3
 

Definition at line 157 of file readframe.c.

#define PPM_READ_STATE_WIDTH   1
 

Definition at line 155 of file readframe.c.

#define safe_fread ptr,
sz,
len,
fileptr   
 

Value:

if ((safe_read_count=fread(ptr,sz,len,fileptr))!=sz*len) {   \
      fprintf(stderr,"Input file too small! (%s)\n",CurrFile);   \
      exit(1);}                                                  \

Definition at line 213 of file readframe.c.


Function Documentation

void DoKillDim _ANSI_ARGS_ (MpegFrame *mf, int w, int h   [static]
 

void DoGamma _ANSI_ARGS_ (MpegFrame *mf, int width, int height   [static]
 

void SeparateLine _ANSI_ARGS_ (FILE *fpointer, struct YuvLine *lineptr, int width   [static]
 

void ReadEYUV _ANSI_ARGS_ (MpegFrame *mf, FILE *fpointer, int width, int height   [static]
 

boolean ReadPPM _ANSI_ARGS_ (MpegFrame *mf, FILE *fpointer   [static]
 

void ReadPNM _ANSI_ARGS_ (FILE *fp, MpegFrame *mf   [static]
 

char* ScanNextString _ANSI_ARGS_ (char *inputLine, char *string   [static]
 

void SetResize set   
 


Variable Documentation

boolean addPath
 

Definition at line 250 of file readframe.c.

char* conversion
 

Definition at line 249 of file readframe.c.

char* CurrFile
 

Definition at line 190 of file readframe.c.

char* fileName
 

Definition at line 248 of file readframe.c.

Referenced by ListDirectory(), readLengthToEnd(), and ShowHdr().

int fileType = BASE_FILE_TYPE [static]
 

Definition at line 165 of file readframe.c.

FILE* fpointer
 

Definition at line 998 of file readframe.c.

boolean GammaCorrection
 

Definition at line 186 of file readframe.c.

float GammaValue
 

Definition at line 187 of file readframe.c.

int h
 

Definition at line 1154 of file readframe.c.

int height
 

Definition at line 1000 of file readframe.c.

struct YuvLine* lineptr
 

Definition at line 865 of file readframe.c.

MpegFrame* mf
 

Definition at line 497 of file readframe.c.

int outputHeight
 

Definition at line 188 of file readframe.c.

int outputWidth
 

Definition at line 188 of file readframe.c.

boolean resizeFrame
 

Definition at line 189 of file readframe.c.

char* string
 

Definition at line 1063 of file readframe.c.

int w
 

Definition at line 1154 of file readframe.c.

int width
 

Definition at line 999 of file readframe.c.

 

Powered by Plone

This site conforms to the following standards: