blob: 34e11b81c5d52094e5056645ec89a1dfb227aa8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* 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.2 2008-03-16 22:12:56 phintuka Exp $
*
*/
#ifndef _XINELIBOUTPUT_H264_H_
#define _XINELIBOUTPUT_H264_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "mpeg.h"
typedef struct {
int width;
int height;
double pixel_aspect;
/* ... */
} h264_sps_data_t;
/*
* 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, video_size_t *size);
#ifdef __cplusplus
} /* extern "C" { */
#endif
#endif /* _XINELIBOUTPUT_H264_H_ */
|