make[5]: Entering directory '/home/prahal/Projects/Admin/gstreamer-vaapi/gstreamer-vaapi/gst-libs/gst/vaapi'
  CC       libgstvaapi_1.5_la-gstvaapidecoder_h265.lo
  GEN      gstvaapiversion.h
gstvaapidecoder_h265.c: In function 'gst_vaapi_picture_h265_new':
gstvaapidecoder_h265.c:257:15: error: 'VAPictureParameterBufferHEVC' undeclared (first use in this function)
       sizeof (VAPictureParameterBufferHEVC), NULL, 0, 0);
               ^
gstvaapidecoder_h265.c:257:15: note: each undeclared identifier is reported only once for each function it appears in
gstvaapidecoder_h265.c: At top level:
gstvaapidecoder_h265.c:1121:21: error: unknown type name 'VAIQMatrixBufferHEVC'
 fill_iq_matrix_4x4 (VAIQMatrixBufferHEVC * iq_matrix,
                     ^
gstvaapidecoder_h265.c:1135:21: error: unknown type name 'VAIQMatrixBufferHEVC'
 fill_iq_matrix_8x8 (VAIQMatrixBufferHEVC * iq_matrix,
                     ^
gstvaapidecoder_h265.c:1149:23: error: unknown type name 'VAIQMatrixBufferHEVC'
 fill_iq_matrix_16x16 (VAIQMatrixBufferHEVC * iq_matrix,
                       ^
gstvaapidecoder_h265.c:1163:23: error: unknown type name 'VAIQMatrixBufferHEVC'
 fill_iq_matrix_32x32 (VAIQMatrixBufferHEVC * iq_matrix,
                       ^
gstvaapidecoder_h265.c:1177:26: error: unknown type name 'VAIQMatrixBufferHEVC'
 fill_iq_matrix_dc_16x16 (VAIQMatrixBufferHEVC * iq_matrix,
                          ^
gstvaapidecoder_h265.c:1188:26: error: unknown type name 'VAIQMatrixBufferHEVC'
 fill_iq_matrix_dc_32x32 (VAIQMatrixBufferHEVC * iq_matrix,
                          ^
gstvaapidecoder_h265.c: In function 'ensure_quant_matrix':
gstvaapidecoder_h265.c:1206:3: error: unknown type name 'VAIQMatrixBufferHEVC'
   VAIQMatrixBufferHEVC *iq_matrix;
   ^
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from glibcompat.h:26,
                 from sysdeps.h:34,
                 from gstvaapidecoder_h265.c:28:
../../../gst-libs/gst/vaapi/gstvaapicodec_objects.h:255:30: error: 'VAIQMatrixBufferHEVC' undeclared (first use in this function)
       NULL, sizeof (G_PASTE (VAIQMatrixBuffer, codec)))
                              ^
/usr/include/glib-2.0/glib/gmacros.h:179:47: note: in definition of macro 'G_PASTE_ARGS'
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
../../../gst-libs/gst/vaapi/gstvaapicodec_objects.h:255:21: note: in expansion of macro 'G_PASTE'
       NULL, sizeof (G_PASTE (VAIQMatrixBuffer, codec)))
                     ^
gstvaapidecoder_h265.c:1219:29: note: in expansion of macro 'GST_VAAPI_IQ_MATRIX_NEW'
   base_picture->iq_matrix = GST_VAAPI_IQ_MATRIX_NEW (HEVC, decoder);
                             ^
gstvaapidecoder_h265.c:1230:3: warning: implicit declaration of function 'fill_iq_matrix_4x4' [-Wimplicit-function-declaration]
   fill_iq_matrix_4x4 (iq_matrix, scaling_list);
   ^
gstvaapidecoder_h265.c:1231:3: warning: implicit declaration of function 'fill_iq_matrix_8x8' [-Wimplicit-function-declaration]
   fill_iq_matrix_8x8 (iq_matrix, scaling_list);
   ^
gstvaapidecoder_h265.c:1232:3: warning: implicit declaration of function 'fill_iq_matrix_16x16' [-Wimplicit-function-declaration]
   fill_iq_matrix_16x16 (iq_matrix, scaling_list);
   ^
gstvaapidecoder_h265.c:1233:3: warning: implicit declaration of function 'fill_iq_matrix_32x32' [-Wimplicit-function-declaration]
   fill_iq_matrix_32x32 (iq_matrix, scaling_list);
   ^
gstvaapidecoder_h265.c:1234:3: warning: implicit declaration of function 'fill_iq_matrix_dc_16x16' [-Wimplicit-function-declaration]
   fill_iq_matrix_dc_16x16 (iq_matrix, scaling_list);
   ^
gstvaapidecoder_h265.c:1235:3: warning: implicit declaration of function 'fill_iq_matrix_dc_32x32' [-Wimplicit-function-declaration]
   fill_iq_matrix_dc_32x32 (iq_matrix, scaling_list);
   ^
gstvaapidecoder_h265.c: In function 'fill_picture':
gstvaapidecoder_h265.c:1817:3: error: unknown type name 'VAPictureParameterBufferHEVC'
   VAPictureParameterBufferHEVC *const pic_param = base_picture->param;
   ^
gstvaapidecoder_h265.c:1820:12: error: request for member 'pic_fields' in something not a structure or union
   pic_param->pic_fields.value = 0;
            ^
gstvaapidecoder_h265.c:1821:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.value = 0;
            ^
gstvaapidecoder_h265.c:1824:33: error: request for member 'CurrPic' in something not a structure or union
   vaapi_fill_picture (&pic_param->CurrPic, picture, 0);
                                 ^
gstvaapidecoder_h265.c:1829:37: error: request for member 'ReferenceFrames' in something not a structure or union
       vaapi_fill_picture (&pic_param->ReferenceFrames[n++], fs->buffer,
                                     ^
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from glibcompat.h:26,
                 from sysdeps.h:34,
                 from gstvaapidecoder_h265.c:28:
gstvaapidecoder_h265.c:1831:37: error: request for member 'ReferenceFrames' in something not a structure or union
     if (n >= G_N_ELEMENTS (pic_param->ReferenceFrames))
                                     ^
/usr/include/glib-2.0/glib/gmacros.h:253:37: note: in definition of macro 'G_N_ELEMENTS'
 #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
                                     ^
gstvaapidecoder_h265.c:1831:37: error: request for member 'ReferenceFrames' in something not a structure or union
     if (n >= G_N_ELEMENTS (pic_param->ReferenceFrames))
                                     ^
/usr/include/glib-2.0/glib/gmacros.h:253:53: note: in definition of macro 'G_N_ELEMENTS'
 #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
                                                     ^
gstvaapidecoder_h265.c:1834:37: error: request for member 'ReferenceFrames' in something not a structure or union
   for (; n < G_N_ELEMENTS (pic_param->ReferenceFrames); n++)
                                     ^
/usr/include/glib-2.0/glib/gmacros.h:253:37: note: in definition of macro 'G_N_ELEMENTS'
 #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
                                     ^
gstvaapidecoder_h265.c:1834:37: error: request for member 'ReferenceFrames' in something not a structure or union
   for (; n < G_N_ELEMENTS (pic_param->ReferenceFrames); n++)
                                     ^
/usr/include/glib-2.0/glib/gmacros.h:253:53: note: in definition of macro 'G_N_ELEMENTS'
 #define G_N_ELEMENTS(arr)  (sizeof (arr) / sizeof ((arr)[0]))
                                                     ^
gstvaapidecoder_h265.c:1835:35: error: request for member 'ReferenceFrames' in something not a structure or union
     vaapi_init_picture (&pic_param->ReferenceFrames[n]);
                                   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'pic_width_in_luma_samples' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1843:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, pic_width_in_luma_samples);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'pic_height_in_luma_samples' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1844:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, pic_height_in_luma_samples);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1845:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, chroma_format_idc);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1846:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, separate_colour_plane_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1847:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, pcm_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1848:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, scaling_list_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1849:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, transform_skip_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1850:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, amp_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1851:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, strong_intra_smoothing_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1852:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, sign_data_hiding_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1853:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, constrained_intra_pred_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1854:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, cu_qp_delta_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1855:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, weighted_pred_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1856:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, weighted_bipred_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1857:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, transquant_bypass_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1858:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, tiles_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1859:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, entropy_coding_sync_enabled_flag);
   ^
gstvaapidecoder_h265.c:1860:12: error: request for member 'pic_fields' in something not a structure or union
   pic_param->pic_fields.bits.pps_loop_filter_across_slices_enabled_flag =
            ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1862:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, pps, loop_filter_across_tiles_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'pic_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1863:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (pic_fields, sps, pcm_loop_filter_disabled_flag);
   ^
gstvaapidecoder_h265.c:1865:12: error: request for member 'pic_fields' in something not a structure or union
   pic_param->pic_fields.bits.NoPicReorderingFlag = 0;
            ^
gstvaapidecoder_h265.c:1867:12: error: request for member 'pic_fields' in something not a structure or union
   pic_param->pic_fields.bits.NoBiPredFlag = 0;
            ^
gstvaapidecoder_h265.c:1869:12: error: request for member 'sps_max_dec_pic_buffering_minus1' in something not a structure or union
   pic_param->sps_max_dec_pic_buffering_minus1 =
            ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'bit_depth_luma_minus8' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1871:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, bit_depth_luma_minus8);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'bit_depth_chroma_minus8' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1872:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, bit_depth_chroma_minus8);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'pcm_sample_bit_depth_luma_minus1' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1873:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, pcm_sample_bit_depth_luma_minus1);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'pcm_sample_bit_depth_chroma_minus1' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1874:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, pcm_sample_bit_depth_chroma_minus1);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_min_luma_coding_block_size_minus3' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1875:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_min_luma_coding_block_size_minus3);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_diff_max_min_luma_coding_block_size' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1876:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_diff_max_min_luma_coding_block_size);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_min_transform_block_size_minus2' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1877:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_min_transform_block_size_minus2);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_diff_max_min_transform_block_size' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1878:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_diff_max_min_transform_block_size);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_min_pcm_luma_coding_block_size_minus3' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1879:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_min_pcm_luma_coding_block_size_minus3);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_diff_max_min_pcm_luma_coding_block_size' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1880:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_diff_max_min_pcm_luma_coding_block_size);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'max_transform_hierarchy_depth_intra' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1881:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, max_transform_hierarchy_depth_intra);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'max_transform_hierarchy_depth_inter' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1882:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, max_transform_hierarchy_depth_inter);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'init_qp_minus26' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1883:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, init_qp_minus26);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'diff_cu_qp_delta_depth' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1884:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, diff_cu_qp_delta_depth);
   ^
gstvaapidecoder_h265.c:1885:12: error: request for member 'pps_cb_qp_offset' in something not a structure or union
   pic_param->pps_cb_qp_offset = pps->cb_qp_offset;
            ^
gstvaapidecoder_h265.c:1886:12: error: request for member 'pps_cr_qp_offset' in something not a structure or union
   pic_param->pps_cr_qp_offset = pps->cr_qp_offset;
            ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_parallel_merge_level_minus2' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1887:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, log2_parallel_merge_level_minus2);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'num_tile_columns_minus1' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1888:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, num_tile_columns_minus1);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'num_tile_rows_minus1' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1889:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, num_tile_rows_minus1);
   ^
gstvaapidecoder_h265.c:1891:14: error: request for member 'column_width_minus1' in something not a structure or union
     pic_param->column_width_minus1[i] = pps->column_width_minus1[i];
              ^
gstvaapidecoder_h265.c:1893:14: error: request for member 'column_width_minus1' in something not a structure or union
     pic_param->column_width_minus1[i] = 0;
              ^
gstvaapidecoder_h265.c:1895:14: error: request for member 'row_height_minus1' in something not a structure or union
     pic_param->row_height_minus1[i] = pps->row_height_minus1[i];
              ^
gstvaapidecoder_h265.c:1897:14: error: request for member 'row_height_minus1' in something not a structure or union
     pic_param->row_height_minus1[i] = 0;
              ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1899:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, pps, lists_modification_present_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1900:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, sps, long_term_ref_pics_present_flag);
   ^
gstvaapidecoder_h265.c:1901:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.bits.sps_temporal_mvp_enabled_flag =
            ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1903:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, pps, cabac_init_present_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1904:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, pps, output_flag_present_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1905:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, pps, dependent_slice_segments_enabled_flag);
   ^
gstvaapidecoder_h265.c:1906:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.
            ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1909:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, sps, sample_adaptive_offset_enabled_flag);
   ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1910:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, pps, deblocking_filter_override_enabled_flag);
   ^
gstvaapidecoder_h265.c:1911:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.bits.pps_disable_deblocking_filter_flag =
            ^
gstvaapidecoder_h265.c:1841:14: error: request for member 'slice_parsing_fields' in something not a structure or union
     pic_param->a.bits.f = (s)->f
              ^
gstvaapidecoder_h265.c:1913:3: note: in expansion of macro 'COPY_BFM'
   COPY_BFM (slice_parsing_fields, pps,
   ^
gstvaapidecoder_h265.c:1915:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.bits.RapPicFlag = picture->RapPicFlag;
            ^
gstvaapidecoder_h265.c:1916:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.bits.IdrPicFlag =
            ^
gstvaapidecoder_h265.c:1918:12: error: request for member 'slice_parsing_fields' in something not a structure or union
   pic_param->slice_parsing_fields.bits.IntraPicFlag = picture->IntraPicFlag;
            ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'log2_max_pic_order_cnt_lsb_minus4' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1920:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, log2_max_pic_order_cnt_lsb_minus4);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'num_short_term_ref_pic_sets' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1921:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (sps, num_short_term_ref_pic_sets);
   ^
gstvaapidecoder_h265.c:1922:12: error: request for member 'num_long_term_ref_pic_sps' in something not a structure or union
   pic_param->num_long_term_ref_pic_sps = sps->num_long_term_ref_pics_sps;
            ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'num_ref_idx_l0_default_active_minus1' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1923:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, num_ref_idx_l0_default_active_minus1);
   ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'num_ref_idx_l1_default_active_minus1' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1924:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, num_ref_idx_l1_default_active_minus1);
   ^
gstvaapidecoder_h265.c:1925:12: error: request for member 'pps_beta_offset_div2' in something not a structure or union
   pic_param->pps_beta_offset_div2 = pps->beta_offset_div2;
            ^
gstvaapidecoder_h265.c:1926:12: error: request for member 'pps_tc_offset_div2' in something not a structure or union
   pic_param->pps_tc_offset_div2 = pps->tc_offset_div2;
            ^
gstvaapidecoder_h265.c:1839:14: error: request for member 'num_extra_slice_header_bits' in something not a structure or union
     pic_param->f = (s)->f
              ^
gstvaapidecoder_h265.c:1927:3: note: in expansion of macro 'COPY_FIELD'
   COPY_FIELD (pps, num_extra_slice_header_bits);
   ^
gstvaapidecoder_h265.c:1930:12: error: request for member 'st_rps_bits' in something not a structure or union
   pic_param->st_rps_bits = 0;
            ^
gstvaapidecoder_h265.c: In function 'fill_pred_weight_table':
gstvaapidecoder_h265.c:2304:3: error: unknown type name 'VASliceParameterBufferHEVC'
   VASliceParameterBufferHEVC *const slice_param = slice->param;
   ^
gstvaapidecoder_h265.c:2311:14: error: request for member 'luma_log2_weight_denom' in something not a structure or union
   slice_param->luma_log2_weight_denom = 0;
              ^
gstvaapidecoder_h265.c:2312:14: error: request for member 'delta_chroma_log2_weight_denom' in something not a structure or union
   slice_param->delta_chroma_log2_weight_denom = 0;
              ^
gstvaapidecoder_h265.c:2317:16: error: request for member 'luma_log2_weight_denom' in something not a structure or union
     slice_param->luma_log2_weight_denom = w->luma_log2_weight_denom;
                ^
gstvaapidecoder_h265.c:2319:18: error: request for member 'delta_chroma_log2_weight_denom' in something not a structure or union
       slice_param->delta_chroma_log2_weight_denom =
                  ^
gstvaapidecoder_h265.c:2323:20: error: request for member 'luma_log2_weight_denom' in something not a structure or union
         slice_param->luma_log2_weight_denom +
                    ^
gstvaapidecoder_h265.c:2324:20: error: request for member 'delta_chroma_log2_weight_denom' in something not a structure or union
         slice_param->delta_chroma_log2_weight_denom;
                    ^
gstvaapidecoder_h265.c:2326:33: error: request for member 'num_ref_idx_l0_active_minus1' in something not a structure or union
     for (i = 0; i <= slice_param->num_ref_idx_l0_active_minus1; i++) {
                                 ^
gstvaapidecoder_h265.c:2328:20: error: request for member 'delta_luma_weight_l0' in something not a structure or union
         slice_param->delta_luma_weight_l0[i] = w->delta_luma_weight_l0[i];
                    ^
gstvaapidecoder_h265.c:2329:20: error: request for member 'luma_offset_l0' in something not a structure or union
         slice_param->luma_offset_l0[i] = w->luma_offset_l0[i];
                    ^
gstvaapidecoder_h265.c:2333:22: error: request for member 'delta_chroma_weight_l0' in something not a structure or union
           slice_param->delta_chroma_weight_l0[i][j] =
                      ^
gstvaapidecoder_h265.c:2339:22: error: request for member 'ChromaOffsetL0' in something not a structure or union
           slice_param->ChromaOffsetL0[i][j] = CLAMP (
                      ^
gstvaapidecoder_h265.c:2348:35: error: request for member 'num_ref_idx_l1_active_minus1' in something not a structure or union
       for (i = 0; i <= slice_param->num_ref_idx_l1_active_minus1; i++) {
                                   ^
gstvaapidecoder_h265.c:2350:22: error: request for member 'delta_luma_weight_l1' in something not a structure or union
           slice_param->delta_luma_weight_l1[i] = w->delta_luma_weight_l1[i];
                      ^
gstvaapidecoder_h265.c:2351:22: error: request for member 'luma_offset_l1' in something not a structure or union
           slice_param->luma_offset_l1[i] = w->luma_offset_l1[i];
                      ^
gstvaapidecoder_h265.c:2355:24: error: request for member 'delta_chroma_weight_l1' in something not a structure or union
             slice_param->delta_chroma_weight_l1[i][j] =
                        ^
gstvaapidecoder_h265.c:2361:24: error: request for member 'ChromaOffsetL1' in something not a structure or union
             slice_param->ChromaOffsetL1[i][j] =
                        ^
gstvaapidecoder_h265.c:2373:18: error: request for member 'delta_luma_weight_l0' in something not a structure or union
       slice_param->delta_luma_weight_l0[i] = 0;
                  ^
gstvaapidecoder_h265.c:2374:18: error: request for member 'luma_offset_l0' in something not a structure or union
       slice_param->luma_offset_l0[i] = 0;
                  ^
gstvaapidecoder_h265.c:2375:18: error: request for member 'delta_luma_weight_l1' in something not a structure or union
       slice_param->delta_luma_weight_l1[i] = 0;
                  ^
gstvaapidecoder_h265.c:2376:18: error: request for member 'luma_offset_l1' in something not a structure or union
       slice_param->luma_offset_l1[i] = 0;
                  ^
gstvaapidecoder_h265.c:2380:20: error: request for member 'delta_chroma_weight_l0' in something not a structure or union
         slice_param->delta_chroma_weight_l0[i][j] = 0;
                    ^
gstvaapidecoder_h265.c:2381:20: error: request for member 'ChromaOffsetL0' in something not a structure or union
         slice_param->ChromaOffsetL0[i][j] = 0;
                    ^
gstvaapidecoder_h265.c:2382:20: error: request for member 'delta_chroma_weight_l1' in something not a structure or union
         slice_param->delta_chroma_weight_l1[i][j] = 0;
                    ^
gstvaapidecoder_h265.c:2383:20: error: request for member 'ChromaOffsetL1' in something not a structure or union
         slice_param->ChromaOffsetL1[i][j] = 0;
                    ^
gstvaapidecoder_h265.c: In function 'fill_RefPicList':
gstvaapidecoder_h265.c:2396:3: error: unknown type name 'VASliceParameterBufferHEVC'
   VASliceParameterBufferHEVC *const slice_param = slice->param;
   ^
gstvaapidecoder_h265.c:2398:3: error: unknown type name 'VAPictureParameterBufferHEVC'
   VAPictureParameterBufferHEVC *const pic_param = base_picture->param;
   ^
gstvaapidecoder_h265.c:2401:14: error: request for member 'num_ref_idx_l0_active_minus1' in something not a structure or union
   slice_param->num_ref_idx_l0_active_minus1 = 0;
              ^
gstvaapidecoder_h265.c:2402:14: error: request for member 'num_ref_idx_l1_active_minus1' in something not a structure or union
   slice_param->num_ref_idx_l1_active_minus1 = 0;
              ^
gstvaapidecoder_h265.c:2405:18: error: request for member 'RefPicList' in something not a structure or union
       slice_param->RefPicList[j][i] = 0xFF;
                  ^
gstvaapidecoder_h265.c:2417:14: error: request for member 'num_ref_idx_l0_active_minus1' in something not a structure or union
   slice_param->num_ref_idx_l0_active_minus1 =
              ^
gstvaapidecoder_h265.c:2419:14: error: request for member 'num_ref_idx_l1_active_minus1' in something not a structure or union
   slice_param->num_ref_idx_l1_active_minus1 =
              ^
gstvaapidecoder_h265.c:2423:16: error: request for member 'RefPicList' in something not a structure or union
     slice_param->RefPicList[0][i] =
                ^
gstvaapidecoder_h265.c:2424:45: error: request for member 'ReferenceFrames' in something not a structure or union
         get_index_for_RefPicListX (pic_param->ReferenceFrames,
                                             ^
gstvaapidecoder_h265.c:2427:16: error: request for member 'RefPicList' in something not a structure or union
     slice_param->RefPicList[0][i] = 0xFF;
                ^
gstvaapidecoder_h265.c:2433:16: error: request for member 'RefPicList' in something not a structure or union
     slice_param->RefPicList[1][i] =
                ^
gstvaapidecoder_h265.c:2434:45: error: request for member 'ReferenceFrames' in something not a structure or union
         get_index_for_RefPicListX (pic_param->ReferenceFrames,
                                             ^
gstvaapidecoder_h265.c:2437:16: error: request for member 'RefPicList' in something not a structure or union
     slice_param->RefPicList[1][i] = 0xFF;
                ^
gstvaapidecoder_h265.c: In function 'fill_slice':
gstvaapidecoder_h265.c:2448:3: error: unknown type name 'VASliceParameterBufferHEVC'
   VASliceParameterBufferHEVC *const slice_param = slice->param;
   ^
gstvaapidecoder_h265.c:2452:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.value = 0;
              ^
gstvaapidecoder_h265.c:2453:14: error: request for member 'slice_data_byte_offset' in something not a structure or union
   slice_param->slice_data_byte_offset =
              ^
gstvaapidecoder_h265.c:2456:14: error: request for member 'slice_segment_address' in something not a structure or union
   slice_param->slice_segment_address = slice_hdr->segment_address;
              ^
gstvaapidecoder_h265.c:2462:16: error: request for member 'LongSliceFlags' in something not a structure or union
     slice_param->LongSliceFlags.fields.LastSliceOfPic = 1;
                ^
gstvaapidecoder_h265.c:2464:16: error: request for member 'LongSliceFlags' in something not a structure or union
     slice_param->LongSliceFlags.fields.LastSliceOfPic = 0;
                ^
gstvaapidecoder_h265.c:2459:16: error: request for member 'LongSliceFlags' in something not a structure or union
     slice_param->LongSliceFlags.fields.f = (slice_hdr)->f
                ^
gstvaapidecoder_h265.c:2466:3: note: in expansion of macro 'COPY_LFF'
   COPY_LFF (dependent_slice_segment_flag);
   ^
gstvaapidecoder_h265.c:2459:16: error: request for member 'LongSliceFlags' in something not a structure or union
     slice_param->LongSliceFlags.fields.f = (slice_hdr)->f
                ^
gstvaapidecoder_h265.c:2473:3: note: in expansion of macro 'COPY_LFF'
   COPY_LFF (mvd_l1_zero_flag);
   ^
gstvaapidecoder_h265.c:2459:16: error: request for member 'LongSliceFlags' in something not a structure or union
     slice_param->LongSliceFlags.fields.f = (slice_hdr)->f
                ^
gstvaapidecoder_h265.c:2474:3: note: in expansion of macro 'COPY_LFF'
   COPY_LFF (cabac_init_flag);
   ^
gstvaapidecoder_h265.c:2459:16: error: request for member 'LongSliceFlags' in something not a structure or union
     slice_param->LongSliceFlags.fields.f = (slice_hdr)->f
                ^
gstvaapidecoder_h265.c:2475:3: note: in expansion of macro 'COPY_LFF'
   COPY_LFF (collocated_from_l0_flag);
   ^
gstvaapidecoder_h265.c:2476:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.fields.color_plane_id =
              ^
gstvaapidecoder_h265.c:2478:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.fields.slice_type = slice_hdr->type;
              ^
gstvaapidecoder_h265.c:2479:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.fields.slice_sao_luma_flag =
              ^
gstvaapidecoder_h265.c:2481:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.fields.slice_sao_chroma_flag =
              ^
gstvaapidecoder_h265.c:2483:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.fields.slice_temporal_mvp_enabled_flag =
              ^
gstvaapidecoder_h265.c:2485:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.fields.slice_deblocking_filter_disabled_flag =
              ^
gstvaapidecoder_h265.c:2487:14: error: request for member 'LongSliceFlags' in something not a structure or union
   slice_param->LongSliceFlags.
              ^
gstvaapidecoder_h265.c:2492:16: error: request for member 'collocated_ref_idx' in something not a structure or union
     slice_param->collocated_ref_idx = 0xFF;
                ^
gstvaapidecoder_h265.c:2494:16: error: request for member 'collocated_ref_idx' in something not a structure or union
     slice_param->collocated_ref_idx = slice_hdr->collocated_ref_idx;
                ^
gstvaapidecoder_h265.c:2496:14: error: request for member 'num_ref_idx_l0_active_minus1' in something not a structure or union
   slice_param->num_ref_idx_l0_active_minus1 =
              ^
gstvaapidecoder_h265.c:2498:14: error: request for member 'num_ref_idx_l1_active_minus1' in something not a structure or union
   slice_param->num_ref_idx_l1_active_minus1 =
              ^
gstvaapidecoder_h265.c:2500:14: error: request for member 'slice_qp_delta' in something not a structure or union
   slice_param->slice_qp_delta = slice_hdr->qp_delta;
              ^
gstvaapidecoder_h265.c:2501:14: error: request for member 'slice_cb_qp_offset' in something not a structure or union
   slice_param->slice_cb_qp_offset = slice_hdr->cb_qp_offset;
              ^
gstvaapidecoder_h265.c:2502:14: error: request for member 'slice_cr_qp_offset' in something not a structure or union
   slice_param->slice_cr_qp_offset = slice_hdr->cr_qp_offset;
              ^
gstvaapidecoder_h265.c:2503:14: error: request for member 'slice_beta_offset_div2' in something not a structure or union
   slice_param->slice_beta_offset_div2 = slice_hdr->beta_offset_div2;
              ^
gstvaapidecoder_h265.c:2504:14: error: request for member 'slice_tc_offset_div2' in something not a structure or union
   slice_param->slice_tc_offset_div2 = slice_hdr->tc_offset_div2;
              ^
gstvaapidecoder_h265.c:2505:14: error: request for member 'five_minus_max_num_merge_cand' in something not a structure or union
   slice_param->five_minus_max_num_merge_cand =
              ^
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from glibcompat.h:26,
                 from sysdeps.h:34,
                 from gstvaapidecoder_h265.c:28:
gstvaapidecoder_h265.c: In function 'decode_slice':
gstvaapidecoder_objects.h:263:30: error: 'VASliceParameterBufferHEVC' undeclared (first use in this function)
       NULL, sizeof (G_PASTE (VASliceParameterBuffer, codec)),   \
                              ^
/usr/include/glib-2.0/glib/gmacros.h:179:47: note: in definition of macro 'G_PASTE_ARGS'
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
gstvaapidecoder_objects.h:263:21: note: in expansion of macro 'G_PASTE'
       NULL, sizeof (G_PASTE (VASliceParameterBuffer, codec)),   \
                     ^
gstvaapidecoder_h265.c:2557:11: note: in expansion of macro 'GST_VAAPI_SLICE_NEW'
   slice = GST_VAAPI_SLICE_NEW (HEVC, decoder,
           ^
Makefile:1589: recipe for target 'libgstvaapi_1.5_la-gstvaapidecoder_h265.lo' failed
make[5]: *** [libgstvaapi_1.5_la-gstvaapidecoder_h265.lo] Error 1
make[5]: Leaving directory '/home/prahal/Projects/Admin/gstreamer-vaapi/gstreamer-vaapi/gst-libs/gst/vaapi'
Makefile:1134: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/prahal/Projects/Admin/gstreamer-vaapi/gstreamer-vaapi/gst-libs/gst/vaapi'
Makefile:422: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/prahal/Projects/Admin/gstreamer-vaapi/gstreamer-vaapi/gst-libs/gst'
Makefile:422: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/prahal/Projects/Admin/gstreamer-vaapi/gstreamer-vaapi/gst-libs'
Makefile:487: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/prahal/Projects/Admin/gstreamer-vaapi/gstreamer-vaapi'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2
