AOMedia AV1 Codec
bitstream.h
1
/*
2
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
3
*
4
* This source code is subject to the terms of the BSD 2 Clause License and
5
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6
* was not distributed with this source code in the LICENSE file, you can
7
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
8
* Media Patent License 1.0 was not distributed with this source code in the
9
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10
*/
11
12
#ifndef AOM_AV1_ENCODER_BITSTREAM_H_
13
#define AOM_AV1_ENCODER_BITSTREAM_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
#include "
av1/encoder/encoder.h
"
20
21
struct
aom_write_bit_buffer;
22
23
// Writes only the OBU Sequence Header payload, and returns the size of the
24
// payload written to 'dst'. This function does not write the OBU header, the
25
// optional extension, or the OBU size to 'dst'.
26
uint32_t av1_write_sequence_header_obu(
const
SequenceHeader *seq_params,
27
uint8_t *
const
dst);
28
29
// Writes the OBU header byte, and the OBU header extension byte when
30
// 'obu_extension' is non-zero. Returns number of bytes written to 'dst'.
31
uint32_t av1_write_obu_header(AV1LevelParams *
const
level_params,
32
OBU_TYPE
obu_type,
int
obu_extension,
33
uint8_t *
const
dst);
34
35
int
av1_write_uleb_obu_size(
size_t
obu_header_size,
size_t
obu_payload_size,
36
uint8_t *dest);
37
43
int
av1_pack_bitstream
(
AV1_COMP
*
const
cpi, uint8_t *dst,
size_t
*size,
44
int
*
const
largest_tile_id);
45
46
void
av1_write_tx_type(
const
AV1_COMMON
*
const
cm,
const
MACROBLOCKD
*xd,
47
TX_TYPE tx_type, TX_SIZE tx_size, aom_writer *w);
48
49
#ifdef __cplusplus
50
}
// extern "C"
51
#endif
52
53
#endif // AOM_AV1_ENCODER_BITSTREAM_H_
encoder.h
Declares top-level encoder structures and functions.
AV1_COMP
Top level encoder structure.
Definition:
encoder.h:2095
OBU_TYPE
OBU_TYPE
OBU types.
Definition:
aom_codec.h:541
AV1Common
Top level common structure used by both encoder and decoder.
Definition:
av1_common_int.h:723
av1_pack_bitstream
int av1_pack_bitstream(AV1_COMP *const cpi, uint8_t *dst, size_t *size, int *const largest_tile_id)
Pack the bitstream for one frame.
macroblockd
Variables related to current coding block.
Definition:
blockd.h:568
av1
encoder
bitstream.h
Generated by
1.8.17