#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <signal.h>
#include <sys/time.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <rfb/rfbclient.h>
Go to the source code of this file.
|
int | add_video_stream (VideoOutputStream *ost, AVFormatContext *oc, enum AVCodecID codec_id, int64_t br, int sr, int w, int h) |
|
AVFrame * | alloc_picture (enum AVPixelFormat pix_fmt, int width, int height) |
|
int | open_video (AVFormatContext *oc, VideoOutputStream *ost) |
|
int | write_video_frame (AVFormatContext *oc, VideoOutputStream *ost, int64_t pts) |
|
int | write_final_video_frame (AVFormatContext *oc, VideoOutputStream *ost) |
|
void | close_video_stream (VideoOutputStream *ost) |
|
AVFormatContext * | movie_open (char *filename, VideoOutputStream *video_st, int br, int fr, int w, int h) |
|
void | movie_close (AVFormatContext **ocp, VideoOutputStream *video_st) |
|
void | signal_handler (int signal) |
|
int64_t | time_to_pts (int framerate, struct timespec *start_time, struct timespec *cur_time) |
|
rfbBool | vnc_malloc_fb (rfbClient *client) |
|
void | vnc_update (rfbClient *client, int x, int y, int w, int h) |
|
int | main (int argc, char **argv) |
|
◆ OUTPUT_PIX_FMT
#define OUTPUT_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ |
◆ VNC_PIX_FMT
#define VNC_PIX_FMT AV_PIX_FMT_RGB565 /* pixel format generated by VNC client */ |
◆ add_video_stream()
int add_video_stream |
( |
VideoOutputStream * |
ost, |
|
|
AVFormatContext * |
oc, |
|
|
enum AVCodecID |
codec_id, |
|
|
int64_t |
br, |
|
|
int |
sr, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
◆ alloc_picture()
AVFrame* alloc_picture |
( |
enum AVPixelFormat |
pix_fmt, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ close_video_stream()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ movie_close()
◆ movie_open()
AVFormatContext* movie_open |
( |
char * |
filename, |
|
|
VideoOutputStream * |
video_st, |
|
|
int |
br, |
|
|
int |
fr, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
◆ open_video()
◆ signal_handler()
void signal_handler |
( |
int |
signal | ) |
|
◆ time_to_pts()
int64_t time_to_pts |
( |
int |
framerate, |
|
|
struct timespec * |
start_time, |
|
|
struct timespec * |
cur_time |
|
) |
| |
◆ vnc_malloc_fb()
◆ vnc_update()
void vnc_update |
( |
rfbClient * |
client, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
◆ write_final_video_frame()
◆ write_video_frame()
◆ bitrate
◆ client
◆ cur_time
struct timespec start_time cur_time |
◆ filename
◆ framerate
◆ max_time
◆ oc
AVFormatContext* oc = NULL |
◆ quit
◆ video_st