summaryrefslogtreecommitdiff
path: root/tools/h264.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h264.h')
-rw-r--r--tools/h264.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/tools/h264.h b/tools/h264.h
deleted file mode 100644
index df869e96..00000000
--- a/tools/h264.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * h264.h: H.264 bitstream decoding
- *
- * See the main source file 'xineliboutput.c' for copyright information and
- * how to reach the author.
- *
- * $Id: h264.h,v 1.9 2009-06-29 15:49:43 phintuka Exp $
- *
- */
-
-#ifndef _XINELIBOUTPUT_H264_H_
-#define _XINELIBOUTPUT_H264_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "mpeg.h"
-
-
-#define NAL_SPS 0x07 /* Sequence Parameter Set */
-#define NAL_AUD 0x09 /* Access Unit Delimiter */
-#define NAL_END_SEQ 0x0a /* End of Sequence */
-
-
-#if defined(__i386__) || defined(__x86_64__)
-# define IS_NAL_SPS(buf) (*(uint32_t*)(buf) == 0x07010000U)
-# define IS_NAL_AUD(buf) (*(uint32_t*)(buf) == 0x09010000U)
-# define IS_NAL_END_SEQ(buf) (*(uint32_t*)(buf) == 0x0a010000U)
-#else
-# define IS_NAL_SPS(buf) ((buf)[0] == 0 && (buf)[1] == 0 && (buf)[2] == 1 && (buf)[3] == NAL_SPS)
-# define IS_NAL_AUD(buf) ((buf)[0] == 0 && (buf)[1] == 0 && (buf)[2] == 1 && (buf)[3] == NAL_AUD)
-# define IS_NAL_END_SEQ(buf) ((buf)[0] == 0 && (buf)[1] == 0 && (buf)[2] == 1 && (buf)[3] == NAL_END_SEQ)
-#endif
-
-
-typedef struct {
- uint16_t width;
- uint16_t height;
- mpeg_rational_t pixel_aspect;
- /* ... */
-} h264_sps_data_t;
-
-struct video_size_s;
-
-
-/*
- * input: start of NAL SPS (without 00 00 01 07)
- */
-int h264_parse_sps(const uint8_t *buf, int len, h264_sps_data_t *sps);
-
-/*
- * input: start of H.264 video data (not PES)
- */
-int h264_get_picture_type(const uint8_t *buf, int len);
-
-/*
- * input: start of H.264 video data (not PES)
- */
-int h264_get_video_size(const uint8_t *buf, int len, struct video_size_s *size);
-
-
-#ifdef __cplusplus
-} /* extern "C" { */
-#endif
-
-
-#endif /* _XINELIBOUTPUT_H264_H_ */