FFmpeg
Loading...
Searching...
No Matches
evc_parse.h
Go to the documentation of this file.
1/*
2 * This file is part of FFmpeg.
3 *
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19/**
20 * @file
21 * EVC decoder/parser shared code
22 */
23
24#ifndef AVCODEC_EVC_PARSE_H
25#define AVCODEC_EVC_PARSE_H
26
27#include <stdint.h>
28
30#include "libavutil/log.h"
31#include "evc.h"
32#include "evc_ps.h"
33
34// The structure reflects Slice Header RBSP(raw byte sequence payload) layout
35// @see ISO_IEC_23094-1 section 7.3.2.6
36//
37// The following descriptors specify the parsing process of each element
38// u(n) - unsigned integer using n bits
39// ue(v) - unsigned integer 0-th order Exp_Golomb-coded syntax element with the left bit first
40// u(n) - unsigned integer using n bits.
41// When n is "v" in the syntax table, the number of bits varies in a manner dependent on the value of other syntax elements.
42typedef struct EVCParserSliceHeader {
45 uint8_t first_tile_id; // u(v)
46 uint8_t arbitrary_slice_flag; // u(1)
47 uint8_t last_tile_id; // u(v)
50
51 uint8_t slice_type; // ue(v)
53 uint8_t mmvd_group_enable_flag; // u(1)
54 uint8_t slice_alf_enabled_flag; // u(1)
55
56 uint8_t slice_alf_luma_aps_id; // u(5)
57 uint8_t slice_alf_map_flag; // u(1)<