FFmpeg
Loading...
Searching...
No Matches
hevcdec.h
Go to the documentation of this file.
1/*
2 * HEVC video decoder
3 *
4 * Copyright (C) 2012 - 2013 Guillaume Martres
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef AVCODEC_HEVC_HEVCDEC_H
24#define AVCODEC_HEVC_HEVCDEC_H
25
26#include <stdatomic.h>
27
28#include "libavutil/buffer.h"
30
31#include "libavcodec/avcodec.h"
32#include "libavcodec/bswapdsp.h"
33#include "libavcodec/cabac.h"
34#include "libavcodec/dovi_rpu.h"
37#include "libavcodec/videodsp.h"
38
39#include "dsp.h"
40#include "hevc.h"
41#include "pred.h"
42#include "ps.h"
43#include "sei.h"
44
45#define SHIFT_CTB_WPP 2
46
47#define MAX_TB_SIZE 32
48#define MAX_QP 51
49#define DEFAULT_INTRA_TC_OFFSET 2
50
51#define HEVC_CONTEXTS 199
52#define HEVC_STAT_COEFFS 4
53
54#define MRG_MAX_NUM_CANDS 5
55
56#define L0 0
57#define L1 1
58
59#define EPEL_EXTRA_BEFORE 1
60#define EPEL_EXTRA_AFTER 2
61#define EPEL_EXTRA 3
62#define QPEL_EXTRA_BEFORE 3
63#define QPEL_EXTRA_AFTER 4
64#define QPEL_EXTRA 7
65
66#define EDGE_EMU_BUFFER_STRIDE 80
67
68/**
69 * Value of the luma sample at position (x, y) in the 2D array tab.
70 */
71#define SAMPLE(tab, x, y) ((tab)[(y) * s->sps->width + (x)])
72#define SAMPLE_CTB(tab, x, y) ((tab)[(y) * min_cb_width + (x)])
73
74#define IS_IDR_TYPE(t) ((t) == HEVC_NAL_IDR_W_RADL || (t) == HEVC_NAL_IDR_N_LP)
75#define IS_IDR(s) IS_IDR_TYPE((s)->nal_unit_type)
76#define IS_BLA(s) ((s)->nal_unit_type == HEVC_NAL_BLA_W_RADL || (s)->nal_unit_type == HEVC_NAL_BLA_W_LP || \
77 (s)->nal_unit_type == HEVC_NAL_BLA_N_LP)
78#define IS_IRAP(s) ((s)->nal_unit_type >= HEVC_NAL_BLA_W_LP && (s)->nal_unit_type <= HEVC_NAL_RSV_IRAP_VCL23)
79
80#define HEVC_RECOVERY_UNSPECIFIED INT_MAX
81#define HEVC_RECOVERY_END INT_MIN
82#define HEVC_IS_RECOVERING(s) ((s)->recovery_poc != HEVC_RECOVERY_UNSPECIFIED && (s)->recovery_poc != HEVC_RECOVERY_END)
83
94
105
111
117
124
162
169
176
182
187
188typedef struct LongTermRPS {
189 int poc[32];
190 uint8_t poc_msb_present[32];
191 uint8_t used[32];
192 uint8_t nb_refs;
194
201
205
206typedef struct SliceHeader {
207 unsigned int pps_id;
208
209 /// address (in raster order) of the first block in the current slice segment
210 unsigned int slice_segment_addr;
211 /// address (in raster order) of the first block in the current slice
212 unsigned int slice_addr;
213
215
217 int poc;
218
224
225 /// RPS coded in the slice header itself is stored here
232 unsigned int list_entry_lx[2][32];
233
237
238 unsigned int nb_refs[2];
239
242
244 uint8_t disable_deblocking_filter_flag; ///< slice_header_disable_deblocking_filter_flag
247
248 unsigned int collocated_ref_idx;
249
253
257
259
260 int beta_offset; ///< beta_offset_div2 * 2
261 int tc_offset; ///< tc_offset_div2 * 2
262
263 uint8_t max_num_merge_cand; ///< 5 - 5_minus_max_num_merge_cand
265
267 int * offset;
268 int * size;
270
271 int8_t slice_qp;
272
275
276 int16_t luma_weight_l0[16];
277 int16_t chroma_weight_l0[16][2];
278 int16_t chroma_weight_l1[16][2];
279 int16_t luma_weight_l1[16];
280
281 int16_t luma_offset_l0[16];
282 int16_t chroma_offset_l0[16][2];
283
284 int16_t luma_offset_l1[16];
285 int16_t chroma_offset_l1[16][2];
286
288 unsigned data_offset;
290
291typedef struct CodingUnit {
292 int x;
293 int y;
294
295 enum PredMode pred_mode; ///< PredMode
296 enum PartMode part_mode; ///< PartMode
297
298 // Inferred parameters
299 uint8_t intra_split_flag; ///< IntraSplitFlag
300 uint8_t max_trafo_depth; ///< MaxTrafoDepth
302} CodingUnit;
303
304typedef struct Mv {
305 int16_t x; ///< horizontal component of motion vector
306 int16_t y; ///< vertical component of motion vector
307} Mv;
308
309typedef struct MvField {
311 int8_t ref_idx[2];
312 int8_t pred_flag;
313} MvField;
314
323
333
347
348typedef struct DBParams {
351} DBParams;
352
353#define HEVC_FRAME_FLAG_OUTPUT (1 << 0)
354#define HEVC_FRAME_FLAG_SHORT_REF (1 << 1)
355#define HEVC_FRAME_FLAG_LONG_REF (1 << 2)
356#define HEVC_FRAME_FLAG_UNAVAILABLE (1 << 3)
357#define HEVC_FRAME_FLAG_CORRUPT (1 << 4)
358
359typedef struct HEVCFrame {
360 union {
361 struct {
363 };
365 };
367 int needs_fg; /* 1 if grain needs to be applied by the decoder */
368 MvField *tab_mvf; ///< RefStruct reference
370 RefPicListTab **rpl_tab; ///< RefStruct reference
372 int poc;
373
374 const HEVCPPS *pps; ///< RefStruct reference
375 RefPicListTab *rpl; ///< RefStruct reference
377
378 void *hwaccel_picture_private; ///< RefStruct reference
379
380 // for secondary-layer frames, this is the DPB index of the base-layer frame
381 // from the same AU, if it exists, otherwise -1
383
384 /**
385 * A combination of HEVC_FRAME_FLAG_*
386 */
387 uint8_t flags;
388} HEVCFrame;
389
390/* State carried from one CTB to the next within a substream: one per tile
391 * column, or one per row for WPP. */
392typedef struct HEVCSubstream {
393 const uint8_t *data; ///< CABAC bytes of this substream
394 size_t size;
395 /* 0: open CABAC on data at first use, 1: already open, continue in it */
396 uint8_t opened;
397
401
402 int8_t qp_y;
408
409typedef struct HEVCLocalContext {
411
412 void *logctx;
413 const struct HEVCContext *parent;
414
415 /* Slice being decoded, read instead of HEVCContext so that tiles of
416 * different slices can be decoded interleaved. */
418 const RefPicList *rpl; ///< reference lists of that slice, NULL for I slices
419 const HEVCFrame *collocated_ref; ///< picture read by the temporal MVP, NULL if none
420
421 /**
422 * This is a pointer to the common CABAC state.
423 * In case entropy_coding_sync_enabled_flag is set,
424 * the CABAC state after decoding the second CTU in a row is
425 * stored here and used to initialize the CABAC state before
426 * decoding the first CTU in the next row.
427 * This is the basis for WPP and in case slice-threading is used,
428 * the next row is decoded by another thread making this state
429 * shared between threads.
430 */
432
434
436 uint8_t ctb_up_flag;
441 /* +7 is for subpixel interpolation, *2 for high bit depths */
443 /* The extended size between the new edge emu buffer is abused by SAO */
446
451
452#define BOUNDARY_LEFT_SLICE (1 << 0)
453#define BOUNDARY_LEFT_TILE (1 << 1)
454#define BOUNDARY_UPPER_SLICE (1 << 2)
455#define BOUNDARY_UPPER_TILE (1 << 3)
456 /* properties of the boundary of the current CTB for the purposes
457 * of the deblocking filter */
459
460 /* decoding tiles in parallel: defer tile-boundary BS to a serial pass */
463
464 // an array of these structs is used for per-thread state - pad its size
465 // to avoid false sharing
466 char padding[128];
468
469typedef struct HEVCLayerContext {
472
473 const HEVCSPS *sps; // RefStruct reference
474
477
480
481 // CU
482 uint8_t *skip_flag;
483 uint8_t *tab_ct_depth;
484
485 // PU
486 uint8_t *cbf_luma; // cbf_luma of colocated TU
487 uint8_t *tab_ipm;
488 uint8_t *is_pcm;
489
490 // CTB-level flags affecting loop filter operation
492
494
495 int8_t *qp_y_tab;
496
498 uint8_t *vertical_bs;
499
502
506
507/* A slice deferred to be decoded with the rest of its picture. sh is a
508 * shallow copy with the heap arrays cleared, see defer_tile_slice(). */
509typedef struct HEVCTileSlice {
511 const uint8_t *data;
512 int size;
515 int qp_y_seed; ///< lc[0].qp_y before deferring, the initial QP predictor
516 const RefPicList *rpl; ///< reference lists of this slice
517 const HEVCFrame *collocated_ref; ///< temporal MVP target of this slice
519
520/* Start and state of one tile, for tiles bound by entry points and for one
521 * slice per tile alike. */
522typedef struct HEVCTileStream {
523 const SliceHeader *sh; ///< header of the slice this tile belongs to
524 const RefPicList *rpl; ///< reference lists of that slice, NULL for I slices
525 const HEVCFrame *collocated_ref; ///< temporal MVP target of that slice
526 const uint8_t *data; ///< start of the CABAC substream
527 size_t size;
529 int start_ts; ///< first CTB of the tile, in tile scan order
530 int ended; ///< the substream signalled its end (damaged input)
532
533typedef struct HEVCContext {
534 const AVClass *c; // needed by private avoptions
536
538 unsigned nb_local_ctx;
539
540 // per-layer decoding state, addressed by VPS layer indices
542 // VPS index of the layer currently being decoded
543 unsigned cur_layer;
544 // bitmask of layer indices that are active for decoding/output
547
548 /** 1 if the independent slice segment header was successfully parsed */
550
552
555 struct AVMD5 *md5_ctx;
556
557 /// candidate references for the current frame
559
560 const HEVCVPS *vps; ///< RefStruct reference
561 const HEVCPPS *pps; ///< RefStruct reference
564 int temporal_id; ///< temporal_id_plus1 - 1
567 int poc;
569 int slice_idx; ///< number of the slice being currently decoded
570 int eos; ///< current packet contains an EOS/EOB NAL
571 int last_eos; ///< last packet contains an EOS/EOB NAL
573
574 // NoRaslOutputFlag associated with the last IRAP frame
576
577 // The first slice of the current picture was skipped (undecodable RASL
578 // or avctx->skip_frame), so drop its remaining slices too
580
585
586 /** used on BE to byteswap the lines for checksumming */
587 uint8_t *checksum_buf;
589
590 /** The target for the common_cabac_state of the local contexts. */
592
595
597
598 const uint8_t *data;
599
601 // type of the first VCL NAL of the current frame
603 // index in pkt.nals of the NAL unit after which we can call
604 // ff_thread_finish_setup()
606
607 int is_nalff; ///< this flag is != 0 if bitstream is encapsulated
608 ///< as a format defined in 14496-15
610
611 // multi-layer AVOptions
613 unsigned nb_view_ids;
614
617
620
621 int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4)
623
625
626 // dts of the packet currently being decoded
628
629 AVBufferRef *rpu_buf; ///< 0 or 1 Dolby Vision RPUs.
630 DOVIContext dovi_ctx; ///< Dolby Vision decoding context
631
632 /* Slices deferred when every tile carries its own slice, or when the
633 * slices of an untiled picture are decoded in parallel. Frame and layer
634 * are kept so that leftovers are dropped, not decoded into another
635 * frame. */
641
642 /* Per-tile substream table of the picture, one entry per tile */
645
646 /* Substream state per tile column, only ever grows */
649
652
653/**
654 * Mark all frames in DPB as unused for reference.
655 */
657
658/**
659 * Drop all frames currently in DPB.
660 */
662
663const RefPicList *ff_hevc_get_ref_list(const HEVCFrame *frame, int x0, int y0);
664
665/**
666 * Construct the reference picture sets for the current frame.
667 */
669
670/**
671 * Construct the reference picture list(s) for the current slice.
672 */
674
676 int ctb_addr_ts);
678 int ctb_addr_ts);
687int ff_hevc_skip_flag_decode(HEVCLocalContext *lc, uint8_t *skip_flag,
688 int x0, int y0, int x_cb, int y_cb, int min_cb_width);
690int ff_hevc_split_coding_unit_flag_decode(HEVCLocalContext *lc, uint8_t *tab_ct_depth,
691 const HEVCSPS *sps,
692 int ct_depth, int x0, int y0);
693int ff_hevc_part_mode_decode(HEVCLocalContext *lc, const HEVCSPS *sps, int log2_cb_size);
701int ff_hevc_inter_pred_idc_decode(HEVCLocalContext *lc, int nPbW, int nPbH);
702int ff_hevc_ref_idx_lx_decode(HEVCLocalContext *lc, int num_ref_idx_lx);
705int ff_hevc_split_transform_flag_decode(HEVCLocalContext *lc, int log2_trafo_size);
706int ff_hevc_cbf_cb_cr_decode(HEVCLocalContext *lc, int trafo_depth);
707int ff_hevc_cbf_luma_decode(HEVCLocalContext *lc, int trafo_depth);
710
711/**
712 * Get the number of candidate references for the current frame.
713 */
714int ff_hevc_frame_nb_refs(const SliceHeader *sh, const HEVCPPS *pps,
715 unsigned layer_idx);
716
718
720{
721 switch (type) {
722 case HEVC_NAL_TRAIL_N:
723 case HEVC_NAL_TSA_N:
724 case HEVC_NAL_STSA_N:
725 case HEVC_NAL_RADL_N:
726 case HEVC_NAL_RASL_N:
727 case HEVC_NAL_VCL_N10:
728 case HEVC_NAL_VCL_N12:
729 case HEVC_NAL_VCL_N14:
730 return 1;
731 default: break;
732 }
733 return 0;
734}
735
736/**
737 * Find frames in the DPB that are ready for output and either write them to the
738 * output FIFO or drop their output flag, depending on the value of discard.
739 *
740 * @param max_output maximum number of AUs with an output-pending frame in at
741 * least one layer that can be present in the DPB before output
742 * is triggered
743 * @param max_dpb maximum number of any frames that can be present in the DPB
744 * for any layer before output is triggered
745 */
747 unsigned layers_active_decode, unsigned layers_active_output,
748 unsigned max_output, unsigned max_dpb, int discard);
749
751
753 int nPbW, int nPbH, int log2_ctb_size);
755 int x0, int y0,
756 int nPbW, int nPbH, int log2_cb_size,
757 int part_idx, int merge_idx, MvField *mv);
759 int x0, int y0,
760 int nPbW, int nPbH, int log2_cb_size,
761 int part_idx, int merge_idx,
762 MvField *mv, int mvp_lx_flag, int LX);
764 const HEVCPPS *pps,
765 int x, int y, int ctb_size);
767 const HEVCPPS *pps,
768 int x_ctb, int y_ctb, int ctb_size);
770 const HEVCLayerContext *l, const HEVCPPS *pps,
771 int xBase, int yBase, int log2_cb_size);
773 const HEVCPPS *pps,
774 int x0, int y0, int log2_trafo_size);
776 const HEVCPPS *pps, int x0, int y0, unsigned edges);
780int ff_hevc_cu_chroma_qp_offset_idx(HEVCLocalContext *lc, int chroma_qp_offset_list_len_minus1);
782 int x0, int y0,
783 int log2_trafo_size, enum ScanType scan_idx,
784 int c_idx);
785
786void ff_hevc_hls_mvd_coding(HEVCLocalContext *lc, int x0, int y0, int log2_cb_size);
787
789
790/**
791 * Resolve the caller's view selection into layers.
792 *
793 * Depends only on the requested view IDs and the VPS, so unlike
794 * layers_active_decode it is already valid before setup_multilayer() runs and
795 * can be used from a hwaccel frame_params()/init() callback. Auxiliary alpha
796 * video is not covered here, as its layers do not follow view selection.
797 *
798 * @param active_output receives the mask of layers to output
799 * @return number of layers that will be decoded, or a negative error code
800 */
802 unsigned *active_output);
803
804extern const uint8_t ff_hevc_qpel_extra_before[4];
805extern const uint8_t ff_hevc_qpel_extra_after[4];
806extern const uint8_t ff_hevc_qpel_extra[4];
807
808#endif /* AVCODEC_HEVC_HEVCDEC_H */
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
Definition af_astats.c:246
int32_t
Libavcodec external API header.
refcounted data buffer API
Context Adaptive Binary Arithmetic Coder.
#define flags(name, subs,...)
Definition cbs_h264.c:74
static int FUNC sps(CodedBitstreamContext *ctx, RWContext *rw, H264RawSPS *current)
static int FUNC vps(CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
#define s(width, name)
Definition cbs_vp9.c:198
long long int64_t
Definition coverity.c:34
PredMode
Definition ctu.h:191
static AVFrame * frame
uint64_t pps
Definition dovi_rpuenc.c:36
#define MAX_PB_SIZE
Definition dsp.h:32
#define HEVC_VPS_MAX_LAYERS
Definition ps.h:35
int ff_hevc_end_of_slice_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:577
int ff_hevc_cu_transquant_bypass_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:582
int ff_hevc_output_frames(HEVCContext *s, unsigned layers_active_decode, unsigned layers_active_output, unsigned max_output, unsigned max_dpb, int discard)
Find frames in the DPB that are ready for output and either write them to the output FIFO or drop the...
Definition refs.c:267
int ff_hevc_sao_type_idx_decode(HEVCLocalContext *lc)
Definition cabac.c:535
void ff_hevc_set_qPy(HEVCLocalContext *lc, const HEVCLayerContext *l, const HEVCPPS *pps, int xBase, int yBase, int log2_cb_size)
Definition filter.c:122
void ff_hevc_ctb_edge_bs(HEVCLocalContext *lc, const HEVCLayerContext *l, const HEVCPPS *pps, int x0, int y0, unsigned edges)
Definition filter.c:933
int ff_hevc_no_residual_syntax_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:797
int ff_hevc_sao_merge_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:530
#define HEVC_STAT_COEFFS
Definition hevcdec.h:52
void ff_hevc_flush_dpb(HEVCContext *s)
Drop all frames currently in DPB.
Definition refs.c:76
int ff_hevc_merge_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:761
int ff_hevc_cu_chroma_qp_offset_flag(HEVCLocalContext *lc)
Definition cabac.c:632
PredMode
Definition hevcdec.h:106
@ MODE_INTER
Definition hevcdec.h:107
@ MODE_SKIP
Definition hevcdec.h:109
PartMode
Definition hevcdec.h:95
@ PART_2Nx2N
Definition hevcdec.h:96
@ PART_Nx2N
Definition hevcdec.h:98
@ PART_NxN
Definition hevcdec.h:99
@ PART_2NxnD
Definition hevcdec.h:101
@ PART_nLx2N
Definition hevcdec.h:102
@ PART_2NxN
Definition hevcdec.h:97
@ PART_2NxnU
Definition hevcdec.h:100
@ PART_nRx2N
Definition hevcdec.h:103
int ff_hevc_cu_chroma_qp_offset_idx(HEVCLocalContext *lc, int chroma_qp_offset_list_len_minus1)
Definition cabac.c:637
PredFlag
Definition hevcdec.h:118
@ PF_L1
Definition hevcdec.h:121
@ PF_BI
Definition hevcdec.h:122
@ PF_L0
Definition hevcdec.h:120
@ PF_INTRA
Definition hevcdec.h:119
int ff_hevc_sao_offset_abs_decode(HEVCLocalContext *lc, int bit_depth)
Definition cabac.c:555
int ff_hevc_frame_nb_refs(const SliceHeader *sh, const HEVCPPS *pps, unsigned layer_idx)
Get the number of candidate references for the current frame.
Definition refs.c:617
int ff_hevc_res_scale_sign_flag(HEVCLocalContext *lc, int idx)
Definition cabac.c:875
void ff_hevc_deblocking_boundary_strengths(HEVCLocalContext *lc, const HEVCLayerContext *l, const HEVCPPS *pps, int x0, int y0, int log2_trafo_size)
Definition filter.c:763
int ff_hevc_cu_qp_delta_abs(HEVCLocalContext *lc)
Definition cabac.c:600
IntraPredMode
Definition hevcdec.h:125
@ INTRA_ANGULAR_22
Definition hevcdec.h:148
@ INTRA_ANGULAR_7
Definition hevcdec.h:133
@ INTRA_ANGULAR_17
Definition hevcdec.h:143
@ INTRA_ANGULAR_26
Definition hevcdec.h:152
@ INTRA_ANGULAR_31
Definition hevcdec.h:157
@ INTRA_ANGULAR_4
Definition hevcdec.h:130
@ INTRA_DC
Definition hevcdec.h:127
@ INTRA_ANGULAR_14
Definition hevcdec.h:140
@ INTRA_ANGULAR_5
Definition hevcdec.h:131
@ INTRA_ANGULAR_8
Definition hevcdec.h:134
@ INTRA_ANGULAR_3
Definition hevcdec.h:129
@ INTRA_ANGULAR_13
Definition hevcdec.h:139
@ INTRA_ANGULAR_21
Definition hevcdec.h:147
@ INTRA_ANGULAR_23
Definition hevcdec.h:149
@ INTRA_ANGULAR_10
Definition hevcdec.h:136
@ INTRA_ANGULAR_12
Definition hevcdec.h:138
@ INTRA_ANGULAR_19
Definition hevcdec.h:145
@ INTRA_ANGULAR_29
Definition hevcdec.h:155
@ INTRA_ANGULAR_34
Definition hevcdec.h:160
@ INTRA_ANGULAR_33
Definition hevcdec.h:159
@ INTRA_ANGULAR_6
Definition hevcdec.h:132
@ INTRA_ANGULAR_2
Definition hevcdec.h:128
@ INTRA_ANGULAR_25
Definition hevcdec.h:151
@ INTRA_ANGULAR_20
Definition hevcdec.h:146
@ INTRA_ANGULAR_18
Definition hevcdec.h:144
@ INTRA_ANGULAR_24
Definition hevcdec.h:150
@ INTRA_ANGULAR_9
Definition hevcdec.h:135
@ INTRA_ANGULAR_30
Definition hevcdec.h:156
@ INTRA_ANGULAR_16
Definition hevcdec.h:142
@ INTRA_ANGULAR_11
Definition hevcdec.h:137
@ INTRA_ANGULAR_28
Definition hevcdec.h:154
@ INTRA_ANGULAR_15
Definition hevcdec.h:141
@ INTRA_PLANAR
Definition hevcdec.h:126
@ INTRA_ANGULAR_32
Definition hevcdec.h:158
@ INTRA_ANGULAR_27
Definition hevcdec.h:153
InterPredIdc
Definition hevcdec.h:112
@ PRED_L0
Definition hevcdec.h:113
@ PRED_BI
Definition hevcdec.h:115
@ PRED_L1
Definition hevcdec.h:114
int ff_hevc_mvp_lx_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:792
void ff_hevc_clear_refs(HEVCLayerContext *l)
Mark all frames in DPB as unused for reference.
Definition refs.c:67
void ff_hevc_save_states(HEVCLocalContext *lc, const HEVCPPS *pps, int ctb_addr_ts)
Definition cabac.c:402
int ff_hevc_cabac_init(HEVCLocalContext *lc, const HEVCPPS *pps, int ctb_addr_ts)
Definition cabac.c:472
int ff_hevc_split_transform_flag_decode(HEVCLocalContext *lc, int log2_trafo_size)
Definition cabac.c:835
int ff_hevc_log2_res_scale_abs(HEVCLocalContext *lc, int idx)
Definition cabac.c:865
const RefPicList * ff_hevc_get_ref_list(const HEVCFrame *frame, int x0, int y0)
Definition refs.c:57
int ff_hevc_sao_eo_class_decode(HEVCLocalContext *lc)
Definition cabac.c:570
void ff_hevc_hls_mvd_coding(HEVCLocalContext *lc, int x0, int y0, int log2_cb_size)
Definition cabac.c:1609
int ff_hevc_set_new_ref(HEVCContext *s, HEVCLayerContext *l, int poc)
Definition refs.c:211
int ff_hevc_frame_rps(HEVCContext *s, HEVCLayerContext *l)
Construct the reference picture sets for the current frame.
Definition refs.c:537
int ff_hevc_mpm_idx_decode(HEVCLocalContext *lc)
Definition cabac.c:721
SAOType
Definition hevcdec.h:163
@ SAO_BAND
Definition hevcdec.h:165
@ SAO_NOT_APPLIED
Definition hevcdec.h:164
@ SAO_EDGE
Definition hevcdec.h:166
@ SAO_APPLIED
Definition hevcdec.h:167
void ff_hevc_luma_mv_mvp_mode(HEVCLocalContext *lc, const HEVCPPS *pps, int x0, int y0, int nPbW, int nPbH, int log2_cb_size, int part_idx, int merge_idx, MvField *mv, int mvp_lx_flag, int LX)
Definition mvs.c:590
int ff_hevc_is_alpha_video(const HEVCContext *s)
Definition hevcdec.c:440
#define HEVC_CONTEXTS
Definition hevcdec.h:51
int ff_hevc_sao_band_position_decode(HEVCLocalContext *lc)
Definition cabac.c:545
int ff_hevc_inter_pred_idc_decode(HEVCLocalContext *lc, int nPbW, int nPbH)
Definition cabac.c:766
void ff_hevc_hls_filters(HEVCLocalContext *lc, const HEVCLayerContext *l, const HEVCPPS *pps, int x_ctb, int y_ctb, int ctb_size)
Definition filter.c:1059
int ff_hevc_cbf_cb_cr_decode(HEVCLocalContext *lc, int trafo_depth)
Definition cabac.c:840
int ff_hevc_rem_intra_luma_pred_mode_decode(HEVCLocalContext *lc)
Definition cabac.c:729
int ff_hevc_sao_offset_sign_decode(HEVCLocalContext *lc)
Definition cabac.c:565
int ff_hevc_intra_chroma_pred_mode_decode(HEVCLocalContext *lc)
Definition cabac.c:739
int ff_hevc_requested_layers(const HEVCContext *s, const HEVCVPS *vps, unsigned *active_output)
Resolve the caller's view selection into layers.
Definition hevcdec.c:459
int ff_hevc_cbf_luma_decode(HEVCLocalContext *lc, int trafo_depth)
Definition cabac.c:845
int ff_hevc_merge_idx_decode(HEVCLocalContext *lc)
Definition cabac.c:750
static av_always_inline int ff_hevc_nal_is_nonref(enum HEVCNALUnitType type)
Definition hevcdec.h:719
const uint8_t ff_hevc_qpel_extra_after[4]
void ff_hevc_set_neighbour_available(HEVCLocalContext *lc, int x0, int y0, int nPbW, int nPbH, int log2_ctb_size)
Definition mvs.c:43
void ff_hevc_luma_mv_merge_mode(HEVCLocalContext *lc, const HEVCPPS *pps, int x0, int y0, int nPbW, int nPbH, int log2_cb_size, int part_idx, int merge_idx, MvField *mv)
Definition mvs.c:485
void ff_hevc_hls_residual_coding(HEVCLocalContext *lc, const HEVCPPS *pps, int x0, int y0, int log2_trafo_size, enum ScanType scan_idx, int c_idx)
Definition cabac.c:1075
SAOEOClass
Definition hevcdec.h:170
@ SAO_EO_VERT
Definition hevcdec.h:172
@ SAO_EO_45D
Definition hevcdec.h:174
@ SAO_EO_135D
Definition hevcdec.h:173
@ SAO_EO_HORIZ
Definition hevcdec.h:171
int ff_hevc_split_coding_unit_flag_decode(HEVCLocalContext *lc, uint8_t *tab_ct_depth, const HEVCSPS *sps, int ct_depth, int x0, int y0)
Definition cabac.c:653
int ff_hevc_pcm_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:711
int ff_hevc_part_mode_decode(HEVCLocalContext *lc, const HEVCSPS *sps, int log2_cb_size)
Definition cabac.c:674
void ff_hevc_unref_frame(HEVCFrame *frame, int flags)
Definition refs.c:35
int ff_hevc_skip_flag_decode(HEVCLocalContext *lc, uint8_t *skip_flag, int x0, int y0, int x_cb, int y_cb, int min_cb_width)
Definition cabac.c:587
int ff_hevc_cu_qp_delta_sign_flag(HEVCLocalContext *lc)
Definition cabac.c:627
void ff_hevc_hls_filter(HEVCLocalContext *lc, const HEVCLayerContext *l, const HEVCPPS *pps, int x, int y, int ctb_size)
Definition filter.c:999
int ff_hevc_prev_intra_luma_pred_flag_decode(HEVCLocalContext *lc)
Definition cabac.c:716
int ff_hevc_slice_rpl(HEVCContext *s)
Construct the reference picture list(s) for the current slice.
Definition refs.c:345
const uint8_t ff_hevc_qpel_extra[4]
int ff_hevc_pred_mode_decode(HEVCLocalContext *lc)
Definition cabac.c:648
ScanType
Definition hevcdec.h:177
@ SCAN_HORIZ
Definition hevcdec.h:179
@ SCAN_DIAG
Definition hevcdec.h:178
@ SCAN_VERT
Definition hevcdec.h:180
#define EDGE_EMU_BUFFER_STRIDE
Definition hevcdec.h:66
int ff_hevc_ref_idx_lx_decode(HEVCLocalContext *lc, int num_ref_idx_lx)
Definition cabac.c:776
const uint8_t ff_hevc_qpel_extra_before[4]
RPSType
Definition hevcdec.h:84
@ ST_CURR_AFT
Definition hevcdec.h:86
@ INTER_LAYER1
Definition hevcdec.h:91
@ NB_RPS_TYPE
Definition hevcdec.h:92
@ LT_FOLL
Definition hevcdec.h:89
@ ST_CURR_BEF
Definition hevcdec.h:85
@ LT_CURR
Definition hevcdec.h:88
@ INTER_LAYER0
Definition hevcdec.h:90
@ ST_FOLL
Definition hevcdec.h:87
enum MPFType type
Definition jpegmpfenc.c:55
static const int8_t mv[256][2]
Definition 4xm.c:81
HEVCNALUnitType
Table 7-1 – NAL unit type codes and NAL unit type classes in T-REC-H.265-201802.
Definition hevc.h:28
@ HEVC_NAL_RASL_N
Definition hevc.h:37
@ HEVC_NAL_TRAIL_N
Definition hevc.h:29
@ HEVC_NAL_VCL_N14
Definition hevc.h:43
@ HEVC_NAL_VCL_N12
Definition hevc.h:41
@ HEVC_NAL_TSA_N
Definition hevc.h:31
@ HEVC_NAL_VCL_N10
Definition hevc.h:39
@ HEVC_NAL_STSA_N
Definition hevc.h:33
@ HEVC_NAL_RADL_N
Definition hevc.h:35
HEVCSliceType
Definition hevc.h:95
@ HEVC_MAX_REFS
Definition hevc.h:122
#define av_always_inline
Definition attributes.h:72
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
int atomic_int
Definition stdatomic.h:63
A reference to a data buffer.
Definition buffer.h:82
Describe the class of an AVClass context structure.
Definition log.h:76
main external API structure.
Definition avcodec.h:443
AVContainerFifo is a FIFO for "containers" - dynamically allocated reusable structs (e....
This structure describes decoded (raw) audio or video data.
Definition frame.h:479
Definition md5.c:42
AVRefStructPool is an API for a thread-safe pool of objects managed via the RefStruct API.
Definition refstruct.c:184
enum PredMode pred_mode
PredMode.
Definition hevcdec.h:295
uint8_t intra_split_flag
IntraSplitFlag.
Definition hevcdec.h:299
uint8_t max_trafo_depth
MaxTrafoDepth.
Definition hevcdec.h:300
enum PartMode part_mode
PartMode.
Definition hevcdec.h:296
uint8_t cu_transquant_bypass_flag
Definition hevcdec.h:301
int beta_offset
Definition hevcdec.h:349
int tc_offset
Definition hevcdec.h:350
uint8_t state[HEVC_CONTEXTS]
Definition hevcdec.h:184
uint8_t stat_coeff[HEVC_STAT_COEFFS]
Definition hevcdec.h:185
int is_nalff
this flag is != 0 if bitstream is encapsulated as a format defined in 14496-15
Definition hevcdec.h:607
HEVCLocalContext * local_ctx
Definition hevcdec.h:537
HEVCTileSlice * tile_slices
Definition hevcdec.h:636
int64_t pkt_dts
Definition hevcdec.h:627
int film_grain_warning_shown
Definition hevcdec.h:624
int * view_ids
Definition hevcdec.h:612
int last_eos
last packet contains an EOS/EOB NAL
Definition hevcdec.h:571
unsigned nb_view_pos_available
Definition hevcdec.h:619
int temporal_id
temporal_id_plus1 - 1
Definition hevcdec.h:564
AVBufferRef * rpu_buf
0 or 1 Dolby Vision RPUs.
Definition hevcdec.h:629
const HEVCPPS * pps
RefStruct reference.
Definition hevcdec.h:561
struct AVContainerFifo * output_fifo
Definition hevcdec.h:551
int nal_length_size
Number of bytes used for nal length (1, 2 or 4)
Definition hevcdec.h:621
unsigned cur_layer
Definition hevcdec.h:543
unsigned nb_view_ids_available
Definition hevcdec.h:616
HEVCLayerContext layers[HEVC_VPS_MAX_LAYERS]
Definition hevcdec.h:541
HEVCSEI sei
Definition hevcdec.h:554
BswapDSPContext bdsp
Definition hevcdec.h:584
HEVCDSPContext hevcdsp
Definition hevcdec.h:582
HEVCFrame * collocated_ref
Definition hevcdec.h:566
H2645Packet pkt
Definition hevcdec.h:600
struct ThreadProgress * wpp_progress
Definition hevcdec.h:593
AVCodecContext * avctx
Definition hevcdec.h:535
SliceHeader sh
Definition hevcdec.h:562
const AVClass * c
Definition hevcdec.h:534
uint8_t * checksum_buf
used on BE to byteswap the lines for checksumming
Definition hevcdec.h:587
unsigned * view_pos_available
Definition hevcdec.h:618
int recovery_poc
Definition hevcdec.h:572
HEVCTileStream * tile_streams
Definition hevcdec.h:643
const HEVCFrame * tile_slices_frame
Definition hevcdec.h:639
unsigned nb_tile_slices
Definition hevcdec.h:637
unsigned finish_setup_nal_idx
Definition hevcdec.h:605
HEVCCABACState cabac
The target for the common_cabac_state of the local contexts.
Definition hevcdec.h:591
int skipping_frame
Definition hevcdec.h:579
unsigned tile_streams_alloc
Definition hevcdec.h:644
VideoDSPContext vdsp
Definition hevcdec.h:583
unsigned * view_ids_available
Definition hevcdec.h:615
unsigned nb_substreams
Definition hevcdec.h:648
HEVCPredContext hpc
Definition hevcdec.h:581
RefPicList rps[NB_RPS_TYPE]
candidate references for the current frame
Definition hevcdec.h:558
int eos
current packet contains an EOS/EOB NAL
Definition hevcdec.h:570
struct AVMD5 * md5_ctx
Definition hevcdec.h:555
unsigned layers_active_output
Definition hevcdec.h:546
HEVCParamSets ps
Definition hevcdec.h:553
unsigned tile_slices_alloc
Definition hevcdec.h:638
int apply_defdispwin
Definition hevcdec.h:609
DOVIContext dovi_ctx
Dolby Vision decoding context.
Definition hevcdec.h:630
atomic_int wpp_err
Definition hevcdec.h:596
uint8_t slice_initialized
1 if the independent slice segment header was successfully parsed
Definition hevcdec.h:549
enum HEVCNALUnitType first_nal_type
Definition hevcdec.h:602
HEVCFrame * cur_frame
Definition hevcdec.h:565
int tile_interleave
Definition hevcdec.h:650
const HEVCVPS * vps
RefStruct reference.
Definition hevcdec.h:560
int poc_tid0
Definition hevcdec.h:568
enum HEVCNALUnitType nal_unit_type
Definition hevcdec.h:563
int tile_slices_layer
Definition hevcdec.h:640
unsigned nb_local_ctx
Definition hevcdec.h:538
int slice_idx
number of the slice being currently decoded
Definition hevcdec.h:569
const uint8_t * data
Definition hevcdec.h:598
unsigned layers_active_decode
Definition hevcdec.h:545
int checksum_buf_size
Definition hevcdec.h:588
unsigned nb_wpp_progress
Definition hevcdec.h:594
int nuh_layer_id
Definition hevcdec.h:622
int no_rasl_output_flag
Definition hevcdec.h:575
HEVCSubstream * substreams
Definition hevcdec.h:647
unsigned nb_view_ids
Definition hevcdec.h:613
int needs_fg
Definition hevcdec.h:367
RefPicListTab ** rpl_tab
RefStruct reference.
Definition hevcdec.h:370
void * hwaccel_picture_private
RefStruct reference.
Definition hevcdec.h:378
ProgressFrame tf
Definition hevcdec.h:364
const HEVCPPS * pps
RefStruct reference.
Definition hevcdec.h:374
AVFrame * f
Definition hevcdec.h:362
RefPicListTab * rpl
RefStruct reference.
Definition hevcdec.h:375
uint8_t flags
A combination of HEVC_FRAME_FLAG_*.
Definition hevcdec.h:387
int poc
Definition hevcdec.h:372
AVFrame * frame_grain
Definition hevcdec.h:366
RefPicList * refPicList
Definition hevcdec.h:369
MvField * tab_mvf
RefStruct reference.
Definition hevcdec.h:368
int nb_rpl_elems
Definition hevcdec.h:376
int ctb_count
Definition hevcdec.h:371
int base_layer_frame
Definition hevcdec.h:382
uint8_t * skip_flag
Definition hevcdec.h:482
HEVCFrame DPB[32]
Definition hevcdec.h:470
HEVCFrame * cur_frame
Definition hevcdec.h:471
uint8_t * filter_slice_edges
Definition hevcdec.h:491
const HEVCSPS * sps
Definition hevcdec.h:473
struct AVRefStructPool * rpl_tab_pool
Definition hevcdec.h:504
int32_t * tab_slice_address
Definition hevcdec.h:493
uint8_t * sao_pixel_buffer_h[3]
Definition hevcdec.h:500
uint8_t * tab_ct_depth
Definition hevcdec.h:483
int8_t * qp_y_tab
Definition hevcdec.h:495
DBParams * deblock
Definition hevcdec.h:479
uint8_t * cbf_luma
Definition hevcdec.h:486
uint8_t * tab_ipm
Definition hevcdec.h:487
uint8_t * is_pcm
Definition hevcdec.h:488
SAOParams * sao
Definition hevcdec.h:478
struct AVRefStructPool * tab_mvf_pool
Definition hevcdec.h:503
uint8_t * sao_pixel_buffer_v[3]
Definition hevcdec.h:501
uint8_t * vertical_bs
Definition hevcdec.h:498
uint8_t * horizontal_bs
Definition hevcdec.h:497
uint8_t ctb_left_flag
Definition hevcdec.h:435
const RefPicList * rpl
reference lists of that slice, NULL for I slices
Definition hevcdec.h:418
PredictionUnit pu
Definition hevcdec.h:449
const HEVCFrame * collocated_ref
picture read by the temporal MVP, NULL if none
Definition hevcdec.h:419
uint8_t ctb_up_left_flag
Definition hevcdec.h:438
HEVCSubstream sub
Definition hevcdec.h:410
uint8_t edge_emu_buffer[(MAX_PB_SIZE+7) *EDGE_EMU_BUFFER_STRIDE *2]
Definition hevcdec.h:442
char padding[128]
Definition hevcdec.h:466
TransformUnit tu
Definition hevcdec.h:433
const struct HEVCContext * parent
Definition hevcdec.h:413
NeighbourAvailable na
Definition hevcdec.h:450
int16_t tmp[MAX_PB_SIZE *MAX_PB_SIZE]
Definition hevcdec.h:445
HEVCCABACState * common_cabac_state
This is a pointer to the common CABAC state.
Definition hevcdec.h:431
uint8_t ctb_up_flag
Definition hevcdec.h:436
CodingUnit cu
Definition hevcdec.h:448
uint8_t ctb_up_right_flag
Definition hevcdec.h:437
uint8_t edge_emu_buffer2[(MAX_PB_SIZE+7) *EDGE_EMU_BUFFER_STRIDE *2]
Definition hevcdec.h:444
const SliceHeader * sh
Definition hevcdec.h:417
Definition ps.h:371
Definition sei.h:106
Definition ps.h:252
int8_t cu_qp_offset_cr
Definition hevcdec.h:406
int8_t qp_y
Definition hevcdec.h:402
uint8_t opened
Definition hevcdec.h:396
uint8_t first_qp_group
Definition hevcdec.h:404
CABACContext cc
Definition hevcdec.h:398
uint8_t stat_coeff[HEVC_STAT_COEFFS]
Definition hevcdec.h:400
int8_t cu_qp_offset_cb
Definition hevcdec.h:405
uint8_t cabac_state[HEVC_CONTEXTS]
Definition hevcdec.h:399
size_t size
Definition hevcdec.h:394
const uint8_t * data
CABAC bytes of this substream.
Definition hevcdec.h:393
const uint8_t * data
Definition hevcdec.h:511
const HEVCFrame * collocated_ref
temporal MVP target of this slice
Definition hevcdec.h:517
const RefPicList * rpl
reference lists of this slice
Definition hevcdec.h:516
SliceHeader sh
Definition hevcdec.h:510
int qp_y_seed
lc[0].qp_y before deferring, the initial QP predictor
Definition hevcdec.h:515
const uint8_t * data
start of the CABAC substream
Definition hevcdec.h:526
int ended
the substream signalled its end (damaged input)
Definition hevcdec.h:530
const SliceHeader * sh
header of the slice this tile belongs to
Definition hevcdec.h:523
const HEVCFrame * collocated_ref
temporal MVP target of that slice
Definition hevcdec.h:525
size_t size
Definition hevcdec.h:527
const RefPicList * rpl
reference lists of that slice, NULL for I slices
Definition hevcdec.h:524
int start_ts
first CTB of the tile, in tile scan order
Definition hevcdec.h:529
Definition ps.h:168
uint8_t used[32]
Definition hevcdec.h:191
uint8_t nb_refs
Definition hevcdec.h:192
int poc[32]
Definition hevcdec.h:189
uint8_t poc_msb_present[32]
Definition hevcdec.h:190
int8_t ref_idx[2]
refIdxL0, refIdxL1
Definition hevcdec.h:311
int8_t pred_flag
Definition hevcdec.h:312
Mv mv[2]
mvL0, vvL1
Definition hevcdec.h:310
Definition hevcdec.h:304
int16_t x
horizontal component of motion vector
Definition hevcdec.h:305
int16_t y
vertical component of motion vector
Definition hevcdec.h:306
uint8_t intra_pred_mode_c[4]
Definition hevcdec.h:330
uint8_t intra_pred_mode[4]
Definition hevcdec.h:327
int rem_intra_luma_pred_mode
Definition hevcdec.h:326
uint8_t merge_flag
Definition hevcdec.h:329
uint8_t chroma_mode_c[4]
Definition hevcdec.h:331
The ProgressFrame structure.
RefPicList refPicList[2]
Definition hevcdec.h:203
int isLongTerm[HEVC_MAX_REFS]
Definition hevcdec.h:198
struct HEVCFrame * ref[HEVC_MAX_REFS]
Definition hevcdec.h:196
int nb_refs
Definition hevcdec.h:199
int list[HEVC_MAX_REFS]
Definition hevcdec.h:197
int16_t chroma_weight_l1[16][2]
Definition hevcdec.h:278
uint8_t cu_chroma_qp_offset_enabled_flag
Definition hevcdec.h:258
const ShortTermRPS * short_term_rps
Definition hevcdec.h:229
unsigned int slice_addr
address (in raster order) of the first block in the current slice
Definition hevcdec.h:212
int16_t luma_weight_l0[16]
Definition hevcdec.h:276
uint8_t disable_deblocking_filter_flag
slice_header_disable_deblocking_filter_flag
Definition hevcdec.h:244
uint8_t max_num_merge_cand
5 - 5_minus_max_num_merge_cand
Definition hevcdec.h:263
uint8_t mvd_l1_zero_flag
Definition hevcdec.h:241
uint8_t slice_temporal_mvp_enabled_flag
Definition hevcdec.h:236
int tc_offset
tc_offset_div2 * 2
Definition hevcdec.h:261
uint8_t luma_log2_weight_denom
Definition hevcdec.h:273
int8_t slice_qp
Definition hevcdec.h:271
uint8_t no_output_of_prior_pics_flag
Definition hevcdec.h:235
unsigned int pps_id
Definition hevcdec.h:207
int16_t luma_weight_l1[16]
Definition hevcdec.h:279
uint8_t colour_plane_id
Definition hevcdec.h:222
int short_term_ref_pic_set_sps_flag
RPS coded in the slice header itself is stored here.
Definition hevcdec.h:226
unsigned data_offset
Definition hevcdec.h:288
uint8_t use_integer_mv_flag
Definition hevcdec.h:264
int slice_cb_qp_offset
Definition hevcdec.h:251
int16_t luma_offset_l1[16]
Definition hevcdec.h:284
int16_t chroma_offset_l1[16][2]
Definition hevcdec.h:285
enum HEVCSliceType slice_type
Definition hevcdec.h:214
int * size
Definition hevcdec.h:268
unsigned int list_entry_lx[2][32]
Definition hevcdec.h:232
uint8_t inter_layer_pred
Definition hevcdec.h:223
unsigned * entry_point_offset
Definition hevcdec.h:266
int16_t chroma_offset_l0[16][2]
Definition hevcdec.h:282
unsigned int slice_segment_addr
address (in raster order) of the first block in the current slice segment
Definition hevcdec.h:210
int slice_ctb_addr_rs
Definition hevcdec.h:287
unsigned int nb_refs[2]
Definition hevcdec.h:238
int slice_act_y_qp_offset
Definition hevcdec.h:254
int slice_qp_delta
Definition hevcdec.h:250
uint8_t cabac_init_flag
Definition hevcdec.h:243
int16_t chroma_log2_weight_denom
Definition hevcdec.h:274
int16_t chroma_weight_l0[16][2]
Definition hevcdec.h:277
int slice_act_cb_qp_offset
Definition hevcdec.h:255
uint8_t dependent_slice_segment_flag
Definition hevcdec.h:220
int * offset
Definition hevcdec.h:267
ShortTermRPS slice_rps
Definition hevcdec.h:228
uint8_t rpl_modification_flag[2]
Definition hevcdec.h:234
int short_term_ref_pic_set_size
Definition hevcdec.h:227
uint8_t first_slice_in_pic_flag
Definition hevcdec.h:219
LongTermRPS long_term_rps
Definition hevcdec.h:231
int num_entry_point_offsets
Definition hevcdec.h:269
uint8_t slice_sample_adaptive_offset_flag[3]
Definition hevcdec.h:240
unsigned int collocated_ref_idx
Definition hevcdec.h:248
int16_t luma_offset_l0[16]
Definition hevcdec.h:281
int beta_offset
beta_offset_div2 * 2
Definition hevcdec.h:260
int slice_act_cr_qp_offset
Definition hevcdec.h:256
uint8_t slice_loop_filter_across_slices_enabled_flag
Definition hevcdec.h:245
uint8_t collocated_list
Definition hevcdec.h:246
uint8_t pic_output_flag
Definition hevcdec.h:221
int slice_cr_qp_offset
Definition hevcdec.h:252
int long_term_ref_pic_set_size
Definition hevcdec.h:230
int pic_order_cnt_lsb
Definition hevcdec.h:216
ThreadProgress is an API to easily notify other threads about progress of any kind as long as it can ...
uint8_t is_cu_chroma_qp_offset_coded
Definition hevcdec.h:344
uint8_t cross_pf
Definition hevcdec.h:345
int cu_qp_delta
Definition hevcdec.h:335
int intra_pred_mode_c
Definition hevcdec.h:341
int chroma_mode_c
Definition hevcdec.h:342
uint8_t is_cu_qp_delta_coded
Definition hevcdec.h:343
int res_scale_val
Definition hevcdec.h:337
int intra_pred_mode
Definition hevcdec.h:340
Core video DSP helper functions.
#define MODE_INTRA
Definition vp3.c:83