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-04-18 13:08:04 +00:00
|
|
|
\version \$Id: p_video.h,v 1.19 2003/04/18 13:08:04 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"
|
2003-04-18 10:28:14 +00:00
|
|
|
#include "pr_generic.h"
|
2003-02-16 17:04:39 +00:00
|
|
|
|
2003-04-11 11:27:32 +00:00
|
|
|
#define VFT_IFRAME 0x10000000L
|
|
|
|
#define VFT_PFRAME 0x20000000L
|
|
|
|
#define VFT_BFRAME 0x40000000L
|
|
|
|
#define VNUMFRAMES 0x0000FFFFL
|
|
|
|
|
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-03-04 10:16:28 +00:00
|
|
|
double fps;
|
2003-03-05 17:44:32 +00:00
|
|
|
int width, height, bpp, packetno;
|
|
|
|
int frames_output, avi_compat_mode;
|
2003-04-18 13:08:04 +00:00
|
|
|
int64_t ref_timecode;
|
2003-02-27 09:52:37 +00:00
|
|
|
|
2003-02-27 09:35:55 +00:00
|
|
|
public:
|
2003-03-05 17:44:32 +00:00
|
|
|
video_packetizer_c(double nfps, int nwidth, int nheight, int nbpp,
|
|
|
|
int navi_compat_mode, track_info_t *nti) throw (error_c);
|
2003-02-26 19:20:26 +00:00
|
|
|
virtual ~video_packetizer_c();
|
2003-02-16 17:04:39 +00:00
|
|
|
|
2003-04-11 11:27:32 +00:00
|
|
|
virtual int process(unsigned char *buf, int size, int64_t old_timecode = -1,
|
|
|
|
int64_t flags = VFT_IFRAME);
|
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
|