tensorflow/core/lib/png/png_io.cc
// We move CommonInitDecode() and CommonFinishDecode()
// out of the CommonDecode() template to save code space.
We move CommonInitDecode() and CommonFinishDecode()
out of the CommonDecode() template to save code space.
We move CommonInitDecode () and CommonFinishDecode () out of the CommonDecode () template to save code space .
void CommonFreeDecode(DecodeContext* context) {
  if (context->png_ptr) {
    png_destroy_read_struct(&context->png_ptr,
                            context->info_ptr ? &context->info_ptr : nullptr,
                            nullptr);
    context->png_ptr = nullptr;
    context->info_ptr = nullptr;
  }
}
void CommonFreeDecode ( DecodeContext * context ) { if ( context -> png_ptr ) { png_destroy_read_struct ( & context -> png_ptr , context -> info_ptr ? & context -> info_ptr : nullptr , nullptr ) ; context -> png_ptr = nullptr ; context -> info_ptr = nullptr ; } }
We move CommonInitDecode() and CommonFinishDecode()
out of the CommonDecode() template to save code space.
We move CommonInitDecode () and CommonFinishDecode () out of the CommonDecode () template to save code space .