2003-02-16 17:04:39 +00:00
|
|
|
/*
|
|
|
|
mkvmerge -- utility for splicing together matroska files
|
|
|
|
from component media subtypes
|
|
|
|
|
|
|
|
p_video.h
|
|
|
|
|
|
|
|
Written by Moritz Bunkus <moritz@bunkus.org>
|
|
|
|
|
|
|
|
Distributed under the GPL
|
|
|
|
see the file COPYING for details
|
|
|
|
or visit http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\file
|
2003-03-04 09:27:05 +00:00
|
|
|
\version \$Id: p_video.h,v 1.12 2003/03/04 09:27:05 mosu Exp $
|
2003-02-16 17:04:39 +00:00
|
|
|
\brief class definition for the video output module
|
|
|
|
\author Moritz Bunkus <moritz @ bunkus.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __P_VIDEO_H
|
|
|
|
#define __P_VIDEO_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "queue.h"
|
|
|
|
|
|
|
|
class video_packetizer_c: public q_c {
|
2003-02-27 09:35:55 +00:00
|
|
|
private:
|
|
|
|
char codec[5];
|
|
|
|
double fps;
|
|
|
|
int width, height, bpp, max_frame_size, packetno;
|
|
|
|
int frames_output;
|
|
|
|
char *tempbuf;
|
|
|
|
int avi_compat_mode;
|
|
|
|
u_int64_t last_id;
|
2003-02-27 09:52:37 +00:00
|
|
|
|
2003-02-27 09:35:55 +00:00
|
|
|
public:
|
2003-03-01 16:55:43 +00:00
|
|
|
video_packetizer_c(void *pr_data, int pd_size, char *ncodec, double nfps,
|
|
|
|
int nwidth, int nheight, int nbpp, int nmax_frame_size,
|
2003-03-04 09:27:05 +00:00
|
|
|
audio_sync_t *nasync, int navi_compat_mode)
|
|
|
|
throw (error_c);
|
2003-02-26 19:20:26 +00:00
|
|
|
virtual ~video_packetizer_c();
|
2003-02-16 17:04:39 +00:00
|
|
|
|
2003-02-26 19:20:26 +00:00
|
|
|
virtual int process(char *buf, int size, int num_frames, int key,
|
2003-03-03 23:21:11 +00:00
|
|
|
int last_frame, int64_t old_timecode = -1);
|
2003-02-26 19:20:26 +00:00
|
|
|
virtual void set_header();
|
2003-02-16 17:04:39 +00:00
|
|
|
};
|
|
|
|
|
2003-02-27 09:52:37 +00:00
|
|
|
#endif // __P_VIDEO_H
|