Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5201/ipol.2017.198
07 February 2022, 07:48:38 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • HEAD
    • c109f0f
    • /
    • gti_1.3
    • /
    • src
    • /
    • io_png.h
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:e0f8da8789235113ca7fb7b05a404af3eccc892d
    origin badgedirectory badge
    swh:1:dir:359925e56c760fa317f8491a042ed8c5c1a393ac
    origin badgesnapshot badge
    swh:1:snp:8fea3bc3ecc397783e1be230d3a31826870e71a2
    origin badgerelease badge
    swh:1:rel:07731d5a1c68b9e43875e10d7f3e7c2e757c703d

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    io_png.h
    #ifndef _IO_PNG_H
    #define _IO_PNG_H
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    #define IO_PNG_VERSION "0.20110825"
    
    #include <stddef.h>
    
    /* io_png.c */
    char *io_png_info(void);
    unsigned char *io_png_read_u8(const char *fname, size_t *nxp, size_t *nyp, size_t *ncp);
    unsigned char *io_png_read_u8_rgb(const char *fname, size_t *nxp, size_t *nyp);
    unsigned char *io_png_read_u8_gray(const char *fname, size_t *nxp, size_t *nyp);
    float *io_png_read_f32(const char *fname, size_t *nxp, size_t *nyp, size_t *ncp);
    float *io_png_read_f32_rgb(const char *fname, size_t *nxp, size_t *nyp);
    float *io_png_read_f32_gray(const char *fname, size_t *nxp, size_t *nyp);
    int io_png_write_u8(const char *fname, const unsigned char *data, size_t nx, size_t ny, size_t nc);
    int io_png_write_f32(const char *fname, const float *data, size_t nx, size_t ny, size_t nc);
    
    #ifdef __cplusplus
    }
    #endif
    
    #endif /* !_IO_PNG_H */
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API