Defines | Functions | Variables

client_examples/vnc2mpg.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <math.h>
#include "avformat.h"
#include <rfb/rfbclient.h>
Include dependency graph for vnc2mpg.c:

Go to the source code of this file.

Defines

#define M_PI   3.1415926535897931
#define STREAM_FRAME_RATE   25

Functions

AVStream * add_video_stream (AVFormatContext *oc, int codec_id, int w, int h)
AVFrame * alloc_picture (int pix_fmt, int width, int height)
void open_video (AVFormatContext *oc, AVStream *st)
void write_video_frame (AVFormatContext *oc, AVStream *st)
void close_video (AVFormatContext *oc, AVStream *st)
int main (int argc, char **argv)

Variables

AVFrame * picture
AVFrame * tmp_picture
uint8_t * video_outbuf
int frame_count
int video_outbuf_size

Define Documentation

#define M_PI   3.1415926535897931

Definition at line 32 of file vnc2mpg.c.

#define STREAM_FRAME_RATE   25
Examples:
vnc2mpg.c.

Definition at line 38 of file vnc2mpg.c.


Function Documentation

AVStream* add_video_stream ( AVFormatContext *  oc,
int  codec_id,
int  w,
int  h 
)
Examples:
vnc2mpg.c.

Definition at line 48 of file vnc2mpg.c.

AVFrame* alloc_picture ( int  pix_fmt,
int  width,
int  height 
)
Examples:
vnc2mpg.c.

Definition at line 99 of file vnc2mpg.c.

Here is the caller graph for this function:

void close_video ( AVFormatContext *  oc,
AVStream *  st 
)
Examples:
vnc2mpg.c.

Definition at line 233 of file vnc2mpg.c.

int main ( int  argc,
char **  argv 
)

Definition at line 338 of file vnc2mpg.c.

Here is the call graph for this function:

void open_video ( AVFormatContext *  oc,
AVStream *  st 
)
Examples:
vnc2mpg.c.

Definition at line 119 of file vnc2mpg.c.

Here is the call graph for this function:

void write_video_frame ( AVFormatContext *  oc,
AVStream *  st 
)
Examples:
vnc2mpg.c.

Definition at line 171 of file vnc2mpg.c.

Here is the caller graph for this function:


Variable Documentation

Examples:
vnc2mpg.c.

Definition at line 45 of file vnc2mpg.c.

AVFrame* picture
Examples:
vnc2mpg.c.

Definition at line 43 of file vnc2mpg.c.

AVFrame * tmp_picture
Examples:
vnc2mpg.c.

Definition at line 43 of file vnc2mpg.c.

uint8_t* video_outbuf
Examples:
vnc2mpg.c.

Definition at line 44 of file vnc2mpg.c.

Examples:
vnc2mpg.c.

Definition at line 45 of file vnc2mpg.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines