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-06-15 14:03:28 +00:00
|
|
|
\version $Id$
|
2003-02-16 17:04:39 +00:00
|
|
|
\brief class definition for the video output module
|
2003-05-18 20:57:08 +00:00
|
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
2003-02-16 17:04:39 +00:00
|
|
|
*/
|
2003-05-20 06:30:25 +00:00
|
|
|
|
2003-02-16 17:04:39 +00:00
|
|
|
#ifndef __P_VIDEO_H
|
|
|
|
#define __P_VIDEO_H
|
|
|
|
|
2003-06-20 19:29:26 +00:00
|
|
|
#include "os.h"
|
|
|
|
|
2003-02-16 17:04:39 +00:00
|
|
|
#include "common.h"
|
2003-04-18 10:28:14 +00:00
|
|
|
#include "pr_generic.h"
|
2003-02-16 17:04:39 +00:00
|
|
|
|
2003-06-29 21:35:19 +00:00
|
|
|
#define VFT_IFRAME -1
|
|
|
|
#define VFT_PFRAMEAUTOMATIC -2
|
2003-07-05 09:59:58 +00:00
|
|
|
#define VFT_NOBFRAME -1
|
2003-04-11 11:27:32 +00:00
|
|
|
|
2003-04-18 10:28:14 +00:00
|
|
|
class video_packetizer_c: public generic_packetizer_c {
|
2003-02-27 09:35:55 +00:00
|
|
|
private:
|
2003-05-02 20:11:34 +00:00
|
|
|
double fps;
|
2003-06-29 21:35:19 +00:00
|
|
|
int width, height, bpp, frames_output;
|
2003-05-02 20:11:34 +00:00
|
|
|
int64_t ref_timecode;
|
2003-07-05 09:59:58 +00:00
|
|
|
bool avi_compat_mode, bframes, pass_through;
|
|
|
|
char *codec_id;
|
2003-02-27 09:52:37 +00:00
|
|
|
|
2003-02-27 09:35:55 +00:00
|
|
|
public:
|
2003-07-05 09:59:58 +00:00
|
|
|
video_packetizer_c(generic_reader_c *nreader, const char *ncodec_id,
|
|
|
|
double nfps, int nwidth, int nheight, int nbpp,
|
|
|
|
bool navi_compat_mode, bool nbframes, track_info_t *nti)
|
|
|
|
throw (error_c);
|
2003-02-26 19:20:26 +00:00
|
|
|
virtual ~video_packetizer_c();
|
2003-05-20 06:30:25 +00:00
|
|
|
|
2003-05-02 20:11:34 +00:00
|
|
|
virtual int process(unsigned char *buf, int size, int64_t old_timecode = -1,
|
2003-06-29 21:35:19 +00:00
|
|
|
int64_t duration = -1, int64_t bref = VFT_IFRAME,
|
|
|
|
int64_t fref = VFT_NOBFRAME);
|
2003-05-02 21:49:42 +00:00
|
|
|
virtual void set_headers();
|
2003-05-25 15:35:39 +00:00
|
|
|
|
|
|
|
virtual void dump_debug_info();
|
2003-02-16 17:04:39 +00:00
|
|
|
};
|
|
|
|
|
2003-02-27 09:52:37 +00:00
|
|
|
#endif // __P_VIDEO_H
|