Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
52866 views
1
/*****************************************************************************
2
* set.h: header writing
3
*****************************************************************************
4
* Copyright (C) 2003-2016 x264 project
5
*
6
* Authors: Laurent Aimar <[email protected]>
7
* Loren Merritt <[email protected]>
8
*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
22
*
23
* This program is also available under a commercial proprietary license.
24
* For more information, contact us at [email protected].
25
*****************************************************************************/
26
27
#ifndef X264_ENCODER_SET_H
28
#define X264_ENCODER_SET_H
29
30
void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param );
31
void x264_sps_write( bs_t *s, x264_sps_t *sps );
32
void x264_pps_init( x264_pps_t *pps, int i_id, x264_param_t *param, x264_sps_t *sps );
33
void x264_pps_write( bs_t *s, x264_sps_t *sps, x264_pps_t *pps );
34
void x264_sei_recovery_point_write( x264_t *h, bs_t *s, int recovery_frame_cnt );
35
int x264_sei_version_write( x264_t *h, bs_t *s );
36
int x264_validate_levels( x264_t *h, int verbose );
37
void x264_sei_buffering_period_write( x264_t *h, bs_t *s );
38
void x264_sei_pic_timing_write( x264_t *h, bs_t *s );
39
void x264_sei_dec_ref_pic_marking_write( x264_t *h, bs_t *s );
40
void x264_sei_frame_packing_write( x264_t *h, bs_t *s );
41
int x264_sei_avcintra_umid_write( x264_t *h, bs_t *s );
42
int x264_sei_avcintra_vanc_write( x264_t *h, bs_t *s, int len );
43
void x264_sei_write( bs_t *s, uint8_t *payload, int payload_size, int payload_type );
44
void x264_filler_write( x264_t *h, bs_t *s, int filler );
45
46
#endif
47
48