@@ -106,7 +106,7 @@ atlas_tile_header atlas_context::create_atlas_tile_header(size_t frameIndex, siz
106106 return ath;
107107}
108108
109- atlas_tile_data_unit atlas_context::create_atlas_tile_data_unit (const uvgvpcc_enc::Parameters& paramUVG, const uvgvpcc_enc::Frame& frameUVG,
109+ atlas_tile_data_unit atlas_context::create_atlas_tile_data_unit (const uvgvpcc_enc::Parameters& paramUVG, const std::shared_ptr< uvgvpcc_enc::Frame> & frameUVG,
110110 atlas_tile_header& ath) const {
111111 (void )paramUVG;
112112
@@ -117,9 +117,9 @@ atlas_tile_data_unit atlas_context::create_atlas_tile_data_unit(const uvgvpcc_en
117117 const size_t levelOfDetailX = 1 ; // lf addition, in TMC2 those are patch parameters. However, they are also global parameters.
118118 const size_t levelOfDetailY = 1 ; // TODO(lf): check if those are really constant, and do not depends on other parameters
119119
120- for (size_t patch_index = 0 ; patch_index < frameUVG. patchList .size (); ++patch_index) {
120+ for (size_t patch_index = 0 ; patch_index < frameUVG-> patchList .size (); ++patch_index) {
121121 // std::cout << "-- DEBUG: Creating atlas patch, index: " << patch_index << std::endl;
122- const uvgvpcc_enc::Patch& patchUVG = frameUVG. patchList [patch_index];
122+ const uvgvpcc_enc::Patch& patchUVG = frameUVG-> patchList [patch_index];
123123 const uint8_t patchMode = static_cast <uint8_t >(ATDU_PATCH_MODE_I_TILE::I_INTRA);
124124 patch_information_data pid;
125125 pid.patchMode = patchMode;
@@ -162,7 +162,7 @@ atlas_tile_data_unit atlas_context::create_atlas_tile_data_unit(const uvgvpcc_en
162162
163163atlas_tile_layer_rbsp atlas_context::create_atlas_tile_layer_rbsp (size_t frameIndex, size_t tileIndex,
164164 const uvgvpcc_enc::Parameters& paramUVG,
165- const uvgvpcc_enc::Frame& frameUVG) {
165+ const std::shared_ptr< uvgvpcc_enc::Frame> & frameUVG) {
166166 atlas_tile_layer_rbsp rbsp;
167167
168168 // This should be enough for now
@@ -351,7 +351,7 @@ void atlas_context::initialize_atlas_context(const std::shared_ptr<uvgvpcc_enc::
351351 // Create create_atlas_tile_layer_rbsp for each atlas frame/NAL unit
352352 for (size_t frame_index = 0 ; frame_index < gofUVG->nbFrames ; ++frame_index) {
353353 // std::cout << "DEBUG: Creating atlas RBSP, index: " << frame_index << std::endl;
354- auto & frameUVG = *( gofUVG->frames [frame_index]) ;
354+ auto & frameUVG = gofUVG->frames [frame_index];
355355
356356 const size_t tile_index = 0 ; // Always 0, because we only have one tile per frame
357357 const atlas_tile_layer_rbsp rbsp = create_atlas_tile_layer_rbsp (frame_index, tile_index, paramUVG, frameUVG);
0 commit comments