es: pass no cc reorder in es fmt
[vlc.git] / modules / packetizer / hxxx_common.h
blob6e7cd0964fc7fc0ae1c6e00ff7e21f61a4fe0c91
1 /*****************************************************************************
2 * hxxx_common.h: AVC/HEVC packetizers shared code
3 *****************************************************************************
4 * Copyright (C) 2001-2015 VLC authors and VideoLAN
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20 #ifndef HXXX_COMMON_H
21 #define HXXX_COMMON_H
23 #include <vlc_common.h>
25 /* */
26 typedef struct cc_storage_t cc_storage_t;
28 cc_storage_t * cc_storage_new( void );
29 void cc_storage_delete( cc_storage_t *p_ccs );
31 void cc_storage_reset( cc_storage_t *p_ccs );
32 void cc_storage_append( cc_storage_t *p_ccs, bool b_top_field_first,
33 const uint8_t *p_buf, size_t i_buf );
34 void cc_storage_commit( cc_storage_t *p_ccs, block_t *p_pic );
36 block_t * cc_storage_get_current( cc_storage_t *p_ccs, bool pb_present[4],
37 int *pi_reorder_depth );
39 /* */
41 typedef block_t * (*pf_annexb_nal_packetizer)(decoder_t *, bool *, block_t *);
42 block_t *PacketizeXXC1( decoder_t *, uint8_t, block_t **, pf_annexb_nal_packetizer );
44 #endif // HXXX_COMMON_H