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  

mpeg.c File Reference

#include "all.h"
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include "mtypes.h"
#include "frames.h"
#include "search.h"
#include "mpeg.h"
#include "prototypes.h"
#include "parallel.h"
#include "param.h"
#include "readframe.h"
#include "fsize.h"
#include "mheaders.h"
#include "rate.h"
#include <sys/stat.h>

Go to the source code of this file.


Defines

#define VERSION   "1.5b"
#define FPS_30   0x5
#define ASPECT_1   0x1

Functions

void ShowRemainingTime _ANSI_ARGS_ ((void))
void ComputeDHMSTime _ANSI_ARGS_ ((int32 someTime, char *timeText))
void ComputeGOPFrames _ANSI_ARGS_ ((int whichGOP, int *firstFrame, int *lastFrame, int numFrames))
void PrintEndStats _ANSI_ARGS_ ((int inputFrameBits, int32 totalBits))
void ProcessRefFrame _ANSI_ARGS_ ((MpegFrame *frame, BitBucket *bb, int lastFrame, char *outputFileName))
void SetReferenceFrameType (type) char *type

Variables

int32 diffTime
int framesOutput
int realStart
int realEnd
int currentGOP
int timeMask
int numI
int numP
int numB
int IOtime
boolean resizeFrame
int outputWidth
int outputHeight
int gopSize = 100
int32 tc_hrs
int32 tc_min
int32 tc_sec
int32 tc_pict
int32 tc_extra
int totalFramesSent
int yuvWidth
int yuvHeight
int realWidth
int realHeight
char currentPath [MAXPATHLEN]
char statFileName [256]
char bitRateFileName [256]
time_t timeStart
time_t timeEnd
FILE * statFile
FILE * bitRateFile = NULL
char * framePattern
int framePatternLen
int referenceFrame
int framesRead
MpegFramepastRefFrame
MpegFramefutureRefFrame
int frameRate = FPS_30
int frameRateRounded = 30
boolean frameRateInteger = TRUE
int aspectRatio = ASPECT_1
unsigned char userDataFileName []
int mult_seq_headers
int32 bit_rate
int32 buf_size
int frameStart
int frameEnd
int32 qtable []
int32 niqtable []
int numFrames
FILE * ofp
char * outputFileName
int lastFrame
char * timeText
int * firstFrame
int32 totalBits
BitBucketbb
int frameNumber

Define Documentation

#define ASPECT_1   0x1
 

Definition at line 177 of file mpeg.c.

#define FPS_30   0x5
 

Definition at line 176 of file mpeg.c.

#define VERSION   "1.5b"
 

Definition at line 169 of file mpeg.c.


Function Documentation

void ProcessRefFrame _ANSI_ARGS_ (MpegFrame *frame, BitBucket *bb, int lastFrame, char *outputFileName   [static]
 

void PrintEndStats _ANSI_ARGS_ (int inputFrameBits, int32 totalBits   [static]
 

void ComputeGOPFrames _ANSI_ARGS_ (int whichGOP, int *firstFrame, int *lastFrame, int numFrames   [static]
 

void ComputeDHMSTime _ANSI_ARGS_ (int32 someTime, char *timeText   [static]
 

void ShowRemainingTime _ANSI_ARGS_ (void)    [static]
 

void SetReferenceFrameType type   
 


Variable Documentation

int aspectRatio = ASPECT_1
 

Definition at line 222 of file mpeg.c.

BitBucket* bb
 

Definition at line 1240 of file mpeg.c.

int32 bit_rate
 

Definition at line 226 of file mpeg.c.

FILE* bitRateFile = NULL
 

Definition at line 212 of file mpeg.c.

char bitRateFileName[256]
 

Definition at line 209 of file mpeg.c.

int32 buf_size
 

Definition at line 226 of file mpeg.c.

int currentGOP [static]
 

Definition at line 187 of file mpeg.c.

char currentPath[MAXPATHLEN]
 

Definition at line 207 of file mpeg.c.

int32 diffTime [static]
 

Definition at line 184 of file mpeg.c.

int* firstFrame
 

Definition at line 1082 of file mpeg.c.

int * frameEnd
 

Definition at line 1256 of file parallel.c.

int frameNumber
 

Definition at line 1853 of file parallel.c.

char* framePattern
 

Definition at line 213 of file mpeg.c.

Referenced by initRateControl().

int framePatternLen
 

Definition at line 214 of file mpeg.c.

Referenced by initRateControl().

int frameRate = FPS_30
 

Definition at line 219 of file mpeg.c.

boolean frameRateInteger = TRUE
 

Definition at line 221 of file mpeg.c.

int frameRateRounded = 30
 

Definition at line 220 of file mpeg.c.

int framesOutput [static]
 

Definition at line 185 of file mpeg.c.

int framesRead [static]
 

Definition at line 216 of file mpeg.c.

int frameStart
 

Definition at line 302 of file mpeg.c.

MpegFrame* futureRefFrame
 

Definition at line 218 of file mpeg.c.

int gopSize = 100
 

Definition at line 202 of file mpeg.c.

int IOtime
 

Definition at line 199 of file mpeg.c.

int lastFrame
 

Definition at line 1241 of file mpeg.c.

int mult_seq_headers
 

Definition at line 224 of file mpeg.c.

int32 niqtable[]
 

Definition at line 305 of file mpeg.c.

int numB [static]
 

Definition at line 189 of file mpeg.c.

int numFrames
 

Definition at line 1084 of file mpeg.c.

int numI [static]
 

Definition at line 189 of file mpeg.c.

int numP [static]
 

Definition at line 189 of file mpeg.c.

FILE* ofp
 

Definition at line 307 of file mpeg.c.

char* outputFileName
 

include <malloc.h> *

Definition at line 1242 of file mpeg.c.

int outputHeight
 

Definition at line 201 of file mpeg.c.

int outputWidth
 

Definition at line 201 of file mpeg.c.

MpegFrame* pastRefFrame
 

Definition at line 217 of file mpeg.c.

int32 qtable[]
 

Definition at line 304 of file mpeg.c.

int realEnd [static]
 

Definition at line 186 of file mpeg.c.

int realHeight
 

Definition at line 206 of file mpeg.c.

int realStart [static]
 

Definition at line 186 of file mpeg.c.

int realWidth
 

Definition at line 206 of file mpeg.c.

int referenceFrame
 

Definition at line 215 of file mpeg.c.

boolean resizeFrame
 

Definition at line 200 of file mpeg.c.

FILE* statFile
 

Definition at line 211 of file mpeg.c.

char statFileName[256]
 

Definition at line 208 of file mpeg.c.

int32 tc_extra
 

Definition at line 203 of file mpeg.c.

int32 tc_hrs
 

Definition at line 203 of file mpeg.c.

int32 tc_min
 

Definition at line 203 of file mpeg.c.

int32 tc_pict
 

Definition at line 203 of file mpeg.c.

int32 tc_sec
 

Definition at line 203 of file mpeg.c.

time_t timeEnd
 

Definition at line 210 of file mpeg.c.

int timeMask [static]
 

Definition at line 188 of file mpeg.c.

time_t timeStart
 

Definition at line 210 of file mpeg.c.

char* timeText
 

Definition at line 1045 of file mpeg.c.

int32 totalBits
 

Definition at line 1160 of file mpeg.c.

int totalFramesSent
 

Definition at line 204 of file mpeg.c.

unsigned char userDataFileName[]
 

Definition at line 223 of file mpeg.c.

int yuvHeight
 

Definition at line 205 of file mpeg.c.

int yuvWidth
 

Definition at line 205 of file mpeg.c.

 

Powered by Plone

This site conforms to the following standards: