forked from i-rinat/libvdpau-va-gl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
h264-parse.h
36 lines (29 loc) · 902 Bytes
/
h264-parse.h
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
/*
* Copyright 2013 Rinat Ibragimov
*
* This file is part of libvdpau-va-gl
*
* libvdpau-va-gl distributed under the terms of LGPLv3. See COPYING for details.
*/
#ifndef __H264_PARSE_H
#define __H264_PARSE_H
#include <va/va.h>
#include "bitstream.h"
#define SLICE_TYPE_P 0
#define SLICE_TYPE_B 1
#define SLICE_TYPE_I 2
#define SLICE_TYPE_SP 3
#define SLICE_TYPE_SI 4
#define NAL_UNSPECIFIED 0
#define NAL_SLICE 1
#define NAL_SLICE_DATA_A 2
#define NAL_SLICE_DATA_B 3
#define NAL_SLICE_DATA_C 4
#define NAL_IDR_SLICE 5
void
parse_slice_header(rbsp_state_t *st, const VAPictureParameterBufferH264 *vapp,
const int ChromaArrayType, unsigned int p_num_ref_idx_l0_active_minus1,
unsigned int p_num_ref_idx_l1_active_minus1, VASliceParameterBufferH264 *vasp);
void
reset_va_picture_h264(VAPictureH264 *p);
#endif