diff options
author | cvs2svn <admin@example.com> | 2010-02-14 12:53:07 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 2010-02-14 12:53:07 +0000 |
commit | 038a1d31955a315b5fdf8cee142623226ac3e48e (patch) | |
tree | bceeb16f00f4e73f602a56285093d897052d0063 /tools/mpeg.h | |
parent | 56b10fbbe13a6eb219f41da6d8a78a37d15bd378 (diff) | |
download | xineliboutput-branch-1_o_x.tar.gz xineliboutput-branch-1_o_x.tar.bz2 |
This commit was manufactured by cvs2svn to create branch 'branch-1_o_x'.branch-1_o_x
Diffstat (limited to 'tools/mpeg.h')
-rw-r--r-- | tools/mpeg.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/tools/mpeg.h b/tools/mpeg.h deleted file mode 100644 index 43251b09..00000000 --- a/tools/mpeg.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * mpeg.h: MPEG definitions - * - * See the main source file 'xineliboutput.c' for copyright information and - * how to reach the author. - * - * $Id: mpeg.h,v 1.8 2010-02-03 13:49:39 phintuka Exp $ - * - */ - -#ifndef XINELIBOUTPUT_MPEG_H_ -#define XINELIBOUTPUT_MPEG_H_ - - -#ifdef __cplusplus -extern "C" { -#endif - - -#define SC_PICTURE 0x00 /* picture atart code */ -#define SC_SEQUENCE 0xb3 /* sequence header */ -#define SC_SEQUENCE_END 0xb7 - -#if defined(__i386__) || defined(__x86_64__) -# define IS_SC_PICTURE(buf) (*(const uint32_t *)(buf) == 0x00010000U) -# define IS_SC_SEQUENCE(buf) (*(const uint32_t *)(buf) == 0xb3010000U) -#else -# define IS_SC_PICTURE(buf) ((buf)[0] == 0 && (buf)[1] == 0 && (buf)[2] == 1 && (buf)[3] == SC_PICTURE) -# define IS_SC_SEQUENCE(buf) ((buf)[0] == 0 && (buf)[1] == 0 && (buf)[2] == 1 && (buf)[3] == SC_SEQUENCE) -#endif - -/* Picture types */ -#define NO_PICTURE 0 -#define I_FRAME 1 -#define P_FRAME 2 -#define B_FRAME 3 - -typedef struct mpeg_rational_s { - int num; - int den; -} mpeg_rational_t; - -typedef struct video_size_s { - uint16_t width; - uint16_t height; - mpeg_rational_t pixel_aspect; -} video_size_t; - -extern const char * const picture_type_str[]; - -/* - * input: start of MPEG video data (not PES) - */ -int mpeg2_get_picture_type(const uint8_t *buf, int len); - -/* - * input: start of MPEG video data (not PES) - */ -int mpeg2_get_video_size(const uint8_t *buf, int len, video_size_t *size); - - -#ifdef __cplusplus -} /* extern "C" { */ -#endif - - -#endif |