FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvdec_hevc.c
Go to the documentation of this file.
1 /*
2  * HEVC HW decode acceleration through NVDEC
3  *
4  * Copyright (c) 2017 Anton Khirnov
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 #include <stdint.h>
24 #include <string.h>
25 
26 #include "avcodec.h"
27 #include "nvdec.h"
28 #include "decode.h"
29 #include "internal.h"
30 #include "hevcdec.h"
31 #include "hevc_data.h"
32 
33 static void dpb_add(CUVIDHEVCPICPARAMS *pp, int idx, const HEVCFrame *src)
34 {
36  const NVDECFrame *cf = fdd->hwaccel_priv;
37 
38  pp->RefPicIdx[idx] = cf ? cf->idx : -1;
39  pp->PicOrderCntVal[idx] = src->poc;
40  pp->IsLongTerm[idx] = !!(src->flags & HEVC_FRAME_FLAG_LONG_REF);
41 }
42 
44 {
46  &s->ps.pps->scaling_list : &s->ps.sps->scaling_list;
47  int i, j, pos;
48 
49  for (i = 0; i < 6; i++) {
50  for (j = 0; j < 16; j++) {
52  ppc->ScalingList4x4[i][j] = sl->sl[0][i][pos];
53  }
54 
55  for (j = 0; j < 64; j++) {
57  ppc->ScalingList8x8[i][j] = sl->sl[1][i][pos];
58  ppc->ScalingList16x16[i][j] = sl->sl[2][i][pos];
59 
60  if (i < 2)
61  ppc->ScalingList32x32[i][j] = sl->sl[3][i][pos];
62  }
63  }
64 
65  memcpy(ppc->ScalingListDCCoeff16x16, sl->sl_dc[0], sizeof(ppc->ScalingListDCCoeff16x16));
66  memcpy(ppc->ScalingListDCCoeff32x32, sl->sl_dc[1], sizeof(ppc->ScalingListDCCoeff32x32));
67 }
68 
70  const uint8_t *buffer, uint32_t size)
71 {
72  const HEVCContext *s = avctx->priv_data;
73  const HEVCPPS *pps = s->ps.pps;
74  const HEVCSPS *sps = s->ps.sps;
75 
77  CUVIDPICPARAMS *pp = &ctx->pic_params;
79  FrameDecodeData *fdd;
80  NVDECFrame *cf;
81 
82  int i, j, dpb_size, ret;
83 
84  ret = ff_nvdec_start_frame(avctx, s->ref->frame);
85  if (ret < 0)
86  return ret;
87 
89  cf = (NVDECFrame*)fdd->hwaccel_priv;
90 
91  *pp = (CUVIDPICPARAMS) {
92  .PicWidthInMbs = sps->width / 16,
93  .FrameHeightInMbs = sps->height / 16,
94  .CurrPicIdx = cf->idx,
95  .ref_pic_flag = 1,
96  .intra_pic_flag = 0,
97 
98  .CodecSpecific.hevc = {
99  .pic_width_in_luma_samples = sps->width,
100  .pic_height_in_luma_samples = sps->height,
101  .log2_min_luma_coding_block_size_minus3 = sps->log2_min_cb_size - 3,
102  .log2_diff_max_min_luma_coding_block_size = sps->log2_diff_max_min_coding_block_size,
103  .log2_min_transform_block_size_minus2 = sps->log2_min_tb_size - 2,
104  .log2_diff_max_min_transform_block_size = sps->log2_max_trafo_size - sps->log2_min_tb_size,
105  .pcm_enabled_flag = sps->pcm_enabled_flag,
106  .log2_min_pcm_luma_coding_block_size_minus3 = sps->pcm_enabled_flag ? sps->pcm.log2_min_pcm_cb_size - 3 : 0,
107  .log2_diff_max_min_pcm_luma_coding_block_size = sps->pcm.log2_max_pcm_cb_size - sps->pcm.log2_min_pcm_cb_size,
108  .pcm_sample_bit_depth_luma_minus1 = sps->pcm_enabled_flag ? sps->pcm.bit_depth - 1 : 0,
109  .pcm_sample_bit_depth_chroma_minus1 = sps->pcm_enabled_flag ? sps->pcm.bit_depth_chroma - 1 : 0,
110  .pcm_loop_filter_disabled_flag = sps->pcm.loop_filter_disable_flag,
111  .strong_intra_smoothing_enabled_flag = sps->sps_strong_intra_smoothing_enable_flag,
112  .max_transform_hierarchy_depth_intra = sps->max_transform_hierarchy_depth_intra,
113  .max_transform_hierarchy_depth_inter = sps->max_transform_hierarchy_depth_inter,
114  .amp_enabled_flag = sps->amp_enabled_flag,
115  .separate_colour_plane_flag = sps->separate_colour_plane_flag,
116  .log2_max_pic_order_cnt_lsb_minus4 = sps->log2_max_poc_lsb - 4,
117  .num_short_term_ref_pic_sets = sps->nb_st_rps,
118  .long_term_ref_pics_present_flag = sps->long_term_ref_pics_present_flag,
119  .num_long_term_ref_pics_sps = sps->num_long_term_ref_pics_sps,
120  .sps_temporal_mvp_enabled_flag = sps->sps_temporal_mvp_enabled_flag,
121  .sample_adaptive_offset_enabled_flag = sps->sao_enabled,
122  .scaling_list_enable_flag = sps->scaling_list_enable_flag,
123  .IrapPicFlag = IS_IRAP(s),
124  .IdrPicFlag = IS_IDR(s),
125  .bit_depth_luma_minus8 = sps->bit_depth - 8,
126  .bit_depth_chroma_minus8 = sps->bit_depth - 8,
127 
128  .dependent_slice_segments_enabled_flag = pps->dependent_slice_segments_enabled_flag,
129  .slice_segment_header_extension_present_flag = pps->slice_header_extension_present_flag,
130  .sign_data_hiding_enabled_flag = pps->sign_data_hiding_flag,
131  .cu_qp_delta_enabled_flag = pps->cu_qp_delta_enabled_flag,
132  .diff_cu_qp_delta_depth = pps->diff_cu_qp_delta_depth,
133  .init_qp_minus26 = pps->pic_init_qp_minus26,
134  .pps_cb_qp_offset = pps->cb_qp_offset,
135  .pps_cr_qp_offset = pps->cr_qp_offset,
136  .constrained_intra_pred_flag = pps->constrained_intra_pred_flag,
137  .weighted_pred_flag = pps->weighted_pred_flag,
138  .weighted_bipred_flag = pps->weighted_bipred_flag,
139  .transform_skip_enabled_flag = pps->transform_skip_enabled_flag,
140  .transquant_bypass_enabled_flag = pps->transquant_bypass_enable_flag,
141  .entropy_coding_sync_enabled_flag = pps->entropy_coding_sync_enabled_flag,
142  .log2_parallel_merge_level_minus2 = pps->log2_parallel_merge_level - 2,
143  .num_extra_slice_header_bits = pps->num_extra_slice_header_bits,
144  .loop_filter_across_tiles_enabled_flag = pps->loop_filter_across_tiles_enabled_flag,
145  .loop_filter_across_slices_enabled_flag = pps->seq_loop_filter_across_slices_enabled_flag,
146  .output_flag_present_flag = pps->output_flag_present_flag,
147  .num_ref_idx_l0_default_active_minus1 = pps->num_ref_idx_l0_default_active - 1,
148  .num_ref_idx_l1_default_active_minus1 = pps->num_ref_idx_l1_default_active - 1,
149  .lists_modification_present_flag = pps->lists_modification_present_flag,
150  .cabac_init_present_flag = pps->cabac_init_present_flag,
151  .pps_slice_chroma_qp_offsets_present_flag = pps->pic_slice_level_chroma_qp_offsets_present_flag,
152  .deblocking_filter_override_enabled_flag = pps->deblocking_filter_override_enabled_flag,
153  .pps_deblocking_filter_disabled_flag = pps->disable_dbf,
154  .pps_beta_offset_div2 = pps->beta_offset / 2,
155  .pps_tc_offset_div2 = pps->tc_offset / 2,
156  .tiles_enabled_flag = pps->tiles_enabled_flag,
157  .uniform_spacing_flag = pps->uniform_spacing_flag,
158  .num_tile_columns_minus1 = pps->num_tile_columns - 1,
159  .num_tile_rows_minus1 = pps->num_tile_rows - 1,
160 
161  .NumBitsForShortTermRPSInSlice = s->sh.short_term_rps ? s->sh.short_term_ref_pic_set_size : 0,
162  .NumDeltaPocsOfRefRpsIdx = s->sh.short_term_rps ? s->sh.short_term_rps->rps_idx_num_delta_pocs : 0,
163  .NumPocTotalCurr = s->rps[ST_CURR_BEF].nb_refs + s->rps[ST_CURR_AFT].nb_refs +
164  s->rps[LT_CURR].nb_refs,
165  .NumPocStCurrBefore = s->rps[ST_CURR_BEF].nb_refs,
166  .NumPocStCurrAfter = s->rps[ST_CURR_AFT].nb_refs,
167  .NumPocLtCurr = s->rps[LT_CURR].nb_refs,
168  .CurrPicOrderCntVal = s->ref->poc,
169  },
170  };
171 
174  av_log(avctx, AV_LOG_ERROR, "Too many tiles\n");
175  return AVERROR(ENOSYS);
176  }
177  for (i = 0; i < pps->num_tile_columns; i++)
178  ppc->column_width_minus1[i] = pps->column_width[i] - 1;
179  for (i = 0; i < pps->num_tile_rows; i++)
180  ppc->row_height_minus1[i] = pps->row_height[i] - 1;
181 
185  av_log(avctx, AV_LOG_ERROR, "Too many reference frames\n");
186  return AVERROR(ENOSYS);
187  }
188 
189  dpb_size = 0;
190  for (i = 0; i < FF_ARRAY_ELEMS(s->DPB); i++) {
191  const HEVCFrame *ref = &s->DPB[i];
193  continue;
194  if (dpb_size >= FF_ARRAY_ELEMS(ppc->RefPicIdx)) {
195  av_log(avctx, AV_LOG_ERROR, "Too many reference frames\n");
196  return AVERROR_INVALIDDATA;
197  }
198  dpb_add(ppc, dpb_size++, ref);
199 
200  }
201  for (i = dpb_size; i < FF_ARRAY_ELEMS(ppc->RefPicIdx); i++)
202  ppc->RefPicIdx[i] = -1;
203 
204  for (i = 0; i < s->rps[ST_CURR_BEF].nb_refs; i++) {
205  for (j = 0; j < dpb_size; j++) {
206  if (ppc->PicOrderCntVal[j] == s->rps[ST_CURR_BEF].list[i]) {
207  ppc->RefPicSetStCurrBefore[i] = j;
208  break;
209  }
210  }
211  }
212  for (i = 0; i < s->rps[ST_CURR_AFT].nb_refs; i++) {
213  for (j = 0; j < dpb_size; j++) {
214  if (ppc->PicOrderCntVal[j] == s->rps[ST_CURR_AFT].list[i]) {
215  ppc->RefPicSetStCurrAfter[i] = j;
216  break;
217  }
218  }
219  }
220  for (i = 0; i < s->rps[LT_CURR].nb_refs; i++) {
221  for (j = 0; j < dpb_size; j++) {
222  if (ppc->PicOrderCntVal[j] == s->rps[LT_CURR].list[i]) {
223  ppc->RefPicSetLtCurr[i] = j;
224  break;
225  }
226  }
227  }
228 
229  fill_scaling_lists(ppc, s);
230 
231  return 0;
232 }
233 
235  uint32_t size)
236 {
238  void *tmp;
239 
241  ctx->bitstream_len + size + 3);
242  if (!tmp)
243  return AVERROR(ENOMEM);
244  ctx->bitstream = tmp;
245 
247  (ctx->nb_slices + 1) * sizeof(*ctx->slice_offsets));
248  if (!tmp)
249  return AVERROR(ENOMEM);
250  ctx->slice_offsets = tmp;
251 
252  AV_WB24(ctx->bitstream + ctx->bitstream_len, 1);
253  memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size);
254  ctx->slice_offsets[ctx->nb_slices] = ctx->bitstream_len ;
255  ctx->bitstream_len += size + 3;
256  ctx->nb_slices++;
257 
258  return 0;
259 }
260 
262  AVBufferRef *hw_frames_ctx)
263 {
264  const HEVCContext *s = avctx->priv_data;
265  const HEVCSPS *sps = s->ps.sps;
266  return ff_nvdec_frame_params(avctx, hw_frames_ctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1);
267 }
268 
270  .name = "hevc_nvdec",
271  .type = AVMEDIA_TYPE_VIDEO,
272  .id = AV_CODEC_ID_HEVC,
273  .pix_fmt = AV_PIX_FMT_CUDA,
274  .start_frame = nvdec_hevc_start_frame,
275  .end_frame = ff_nvdec_end_frame,
276  .decode_slice = nvdec_hevc_decode_slice,
277  .frame_params = nvdec_hevc_frame_params,
278  .init = ff_nvdec_decode_init,
279  .uninit = ff_nvdec_decode_uninit,
280  .priv_data_size = sizeof(NVDECContext),
281 };
const HEVCPPS * pps
Definition: hevc_ps.h:402
AVFrame * frame
Definition: hevcdec.h:312
unsigned int log2_min_cb_size
Definition: hevc_ps.h:277
int PicWidthInMbs
IN: Coded frame size in macroblocks.
const char * s
Definition: avisynth_c.h:768
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
static void fill_scaling_lists(CUVIDHEVCPICPARAMS *ppc, const HEVCContext *s)
Definition: nvdec_hevc.c:43
unsigned char RefPicSetStCurrAfter[8]
HEVCFrame * ref
Definition: hevcdec.h:423
unsigned char RefPicSetLtCurr[8]
static int nvdec_hevc_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_hevc.c:69
int max_dec_pic_buffering
Definition: hevc_ps.h:244
unsigned int * row_height
RowHeight.
Definition: hevc_ps.h:378
int pic_init_qp_minus26
Definition: hevc_ps.h:326
unsigned short column_width_minus1[21]
unsigned * slice_offsets
Definition: nvdec.h:52
uint8_t weighted_bipred_flag
Definition: hevc_ps.h:338
unsigned char ScalingList16x16[6][64]
uint8_t seq_loop_filter_across_slices_enabled_flag
Definition: hevc_ps.h:351
uint8_t cabac_init_present_flag
Definition: hevc_ps.h:322
HEVCParamSets ps
Definition: hevcdec.h:408
int num_ref_idx_l0_default_active
num_ref_idx_l0_default_active_minus1 + 1
Definition: hevc_ps.h:324
static void dpb_add(CUVIDHEVCPICPARAMS *pp, int idx, const HEVCFrame *src)
Definition: nvdec_hevc.c:33
unsigned char IsLongTerm[16]
int nb_slices
Definition: nvdec.h:53
#define src
Definition: vp8dsp.c:254
int width
Definition: hevc_ps.h:295
uint8_t entropy_coding_sync_enabled_flag
Definition: hevc_ps.h:344
int log2_parallel_merge_level
log2_parallel_merge_level_minus2 + 2
Definition: hevc_ps.h:363
int nb_refs
Definition: hevcdec.h:235
uint8_t disable_dbf
Definition: hevc_ps.h:355
uint8_t * bitstream
Definition: nvdec.h:48
unsigned int log2_max_trafo_size
Definition: hevc_ps.h:280
uint8_t
HEVC picture parameters This structure is used in CUVIDPICPARAMS structure.
CUVIDPICPARAMS pic_params
Definition: nvdec.h:42
AVBufferRef * private_ref
AVBufferRef for internal use by a single libav* library.
Definition: frame.h:578
static int nvdec_hevc_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx)
Definition: nvdec_hevc.c:261
const uint8_t ff_hevc_diag_scan8x8_x[64]
Definition: hevc_data.c:39
int num_ref_idx_l1_default_active
num_ref_idx_l1_default_active_minus1 + 1
Definition: hevc_ps.h:325
unsigned int log2_min_pcm_cb_size
Definition: hevc_ps.h:270
uint8_t scaling_list_data_present_flag
Definition: hevc_ps.h:359
unsigned char RefPicSetStCurrBefore[8]
uint8_t loop_filter_disable_flag
Definition: hevc_ps.h:272
ptrdiff_t size
Definition: opengl_enc.c:101
uint8_t transquant_bypass_enable_flag
Definition: hevc_ps.h:340
#define av_log(a,...)
union CUVIDPICPARAMS::@31 CodecSpecific
int bit_depth_chroma
Definition: hevc_ps.h:235
Picture parameters for decoding This structure is used in cuvidDecodePicture API IN for cuvidDecodePi...
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
unsigned int log2_max_poc_lsb
Definition: hevc_ps.h:239
#define HEVC_FRAME_FLAG_LONG_REF
Definition: hevcdec.h:308
#define AVERROR(e)
Definition: error.h:43
uint8_t amp_enabled_flag
Definition: hevc_ps.h:259
int ff_nvdec_end_frame(AVCodecContext *avctx)
Definition: nvdec.c:459
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)
Definition: nvdec.c:417
static int nvdec_hevc_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
Definition: nvdec_hevc.c:234
const ShortTermRPS * short_term_rps
Definition: hevc_ps.h:69
#define IS_IDR(s)
Definition: hevcdec.h:77
#define HEVC_FRAME_FLAG_SHORT_REF
Definition: hevcdec.h:307
unsigned int idx
Definition: nvdec.h:36
uint8_t tiles_enabled_flag
Definition: hevc_ps.h:343
const HEVCSPS * sps
Definition: hevc_ps.h:401
int ff_nvdec_decode_init(AVCodecContext *avctx)
Definition: nvdec.c:263
uint8_t lists_modification_present_flag
Definition: hevc_ps.h:362
#define IS_IRAP(s)
Definition: hevcdec.h:80
int ff_nvdec_frame_params(AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, int dpb_size)
Definition: nvdec.c:523
const char * name
Name of the hardware accelerated codec.
Definition: avcodec.h:3510
int max_transform_hierarchy_depth_inter
Definition: hevc_ps.h:284
struct HEVCSPS::@84 pcm
unsigned char ScalingListDCCoeff16x16[6]
int num_tile_columns
num_tile_columns_minus1 + 1
Definition: hevc_ps.h:346
int bitstream_len
Definition: nvdec.h:49
AVFormatContext * ctx
Definition: movenc.c:48
unsigned char ScalingListDCCoeff32x32[2]
uint8_t cu_qp_delta_enabled_flag
Definition: hevc_ps.h:331
#define AV_WB24(p, d)
Definition: intreadwrite.h:450
void * av_fast_realloc(void *ptr, unsigned int *size, size_t min_size)
Reallocate the given buffer if it is not large enough, otherwise do nothing.
Definition: mem.c:464
uint8_t sl_dc[2][6]
Definition: hevc_ps.h:222
uint8_t sign_data_hiding_flag
Definition: hevc_ps.h:320
int height
Definition: hevc_ps.h:296
uint8_t output_flag_present_flag
Definition: hevc_ps.h:339
const uint8_t ff_hevc_diag_scan4x4_y[16]
Definition: hevc_data.c:32
HW acceleration through CUDA.
Definition: pixfmt.h:231
#define FF_ARRAY_ELEMS(a)
uint8_t constrained_intra_pred_flag
Definition: hevc_ps.h:328
uint8_t sl[4][6][64]
Definition: hevc_ps.h:221
uint8_t pic_slice_level_chroma_qp_offsets_present_flag
Definition: hevc_ps.h:336
struct HEVCSPS::@83 temporal_layer[HEVC_MAX_SUB_LAYERS]
HEVCFrame DPB[32]
Definition: hevcdec.h:424
uint8_t transform_skip_enabled_flag
Definition: hevc_ps.h:329
int short_term_ref_pic_set_size
Definition: hevc_ps.h:67
Libavcodec external API header.
uint8_t uniform_spacing_flag
Definition: hevc_ps.h:348
unsigned int bitstream_allocated
Definition: nvdec.h:50
int max_sub_layers
Definition: hevc_ps.h:242
ScalingList scaling_list
Definition: hevc_ps.h:360
main external API structure.
Definition: avcodec.h:1488
uint8_t sao_enabled
Definition: hevc_ps.h:260
int ff_nvdec_decode_uninit(AVCodecContext *avctx)
Definition: nvdec.c:245
int num_extra_slice_header_bits
Definition: hevc_ps.h:364
uint8_t * data
The data buffer.
Definition: buffer.h:89
uint8_t loop_filter_across_tiles_enabled_flag
Definition: hevc_ps.h:349
uint8_t num_long_term_ref_pics_sps
Definition: hevc_ps.h:265
uint8_t sps_temporal_mvp_enabled_flag
Definition: hevc_ps.h:274
unsigned int nb_st_rps
Definition: hevc_ps.h:256
int num_tile_rows
num_tile_rows_minus1 + 1
Definition: hevc_ps.h:347
static int FUNC() pps(CodedBitstreamContext *ctx, RWContext *rw, H264RawPPS *current)
int poc
Definition: hevcdec.h:318
const AVHWAccel ff_hevc_nvdec_hwaccel
Definition: nvdec_hevc.c:269
unsigned int slice_offsets_allocated
Definition: nvdec.h:54
unsigned int log2_min_tb_size
Definition: hevc_ps.h:279
static int FUNC() sps(CodedBitstreamContext *ctx, RWContext *rw, H264RawSPS *current)
uint8_t scaling_list_enable_flag
Definition: hevc_ps.h:253
int tc_offset
tc_offset_div2 * 2
Definition: hevc_ps.h:357
uint8_t flags
A combination of HEVC_FRAME_FLAG_*.
Definition: hevcdec.h:337
int cr_qp_offset
Definition: hevc_ps.h:335
ScalingList scaling_list
Definition: hevc_ps.h:254
int list[HEVC_MAX_REFS]
Definition: hevcdec.h:233
unsigned int log2_diff_max_min_coding_block_size
Definition: hevc_ps.h:278
unsigned int log2_max_pcm_cb_size
Definition: hevc_ps.h:271
const uint8_t ff_hevc_diag_scan4x4_x[16]
Definition: hevc_data.c:25
A reference to a data buffer.
Definition: buffer.h:81
int max_transform_hierarchy_depth_intra
Definition: hevc_ps.h:285
This struct stores per-frame lavc-internal data and is attached to it via private_ref.
Definition: decode.h:37
common internal api header.
if(ret< 0)
Definition: vf_mcdeint.c:279
static int ref[MAX_W *MAX_W]
Definition: jpeg2000dwt.c:107
uint8_t weighted_pred_flag
Definition: hevc_ps.h:337
unsigned int * column_width
ColumnWidth.
Definition: hevc_ps.h:377
void * hwaccel_priv_data
hwaccel-specific private data
Definition: internal.h:188
uint8_t slice_header_extension_present_flag
Definition: hevc_ps.h:365
const uint8_t ff_hevc_diag_scan8x8_y[64]
Definition: hevc_data.c:58
void * priv_data
Definition: avcodec.h:1515
RefPicList rps[5]
Definition: hevcdec.h:416
uint8_t sps_strong_intra_smoothing_enable_flag
Definition: hevc_ps.h:275
int rps_idx_num_delta_pocs
Definition: hevc_ps.h:37
unsigned char ScalingList32x32[2][64]
struct AVCodecInternal * internal
Private context used for internal data.
Definition: avcodec.h:1523
unsigned char ScalingList8x8[6][64]
unsigned short row_height_minus1[21]
unsigned char ScalingList4x4[6][16]
uint8_t long_term_ref_pics_present_flag
Definition: hevc_ps.h:262
int diff_cu_qp_delta_depth
Definition: hevc_ps.h:332
CUVIDHEVCPICPARAMS hevc
int cb_qp_offset
Definition: hevc_ps.h:334
void * hwaccel_priv
Per-frame private data for hwaccels.
Definition: decode.h:55
uint8_t deblocking_filter_override_enabled_flag
Definition: hevc_ps.h:354
int bit_depth
Definition: hevc_ps.h:234
int beta_offset
beta_offset_div2 * 2
Definition: hevc_ps.h:356
SliceHeader sh
Definition: hevcdec.h:418
int pcm_enabled_flag
Definition: hevc_ps.h:240
for(j=16;j >0;--j)
uint8_t separate_colour_plane_flag
Definition: hevc_ps.h:228
GLuint buffer
Definition: opengl_enc.c:102
uint8_t dependent_slice_segments_enabled_flag
Definition: hevc_ps.h:342
static uint8_t tmp[11]
Definition: aes_ctr.c:26