123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #ifndef BOOST_GIL_EXTENSION_IO_TARGA_OLD_HPP
- #define BOOST_GIL_EXTENSION_IO_TARGA_OLD_HPP
- #include <boost/gil/extension/io/targa.hpp>
- namespace boost { namespace gil {
- template<typename String>
- inline point_t targa_read_dimensions(String const& filename)
- {
- using backend_t = typename get_reader_backend<String, targa_tag>::type;
- backend_t backend = read_image_info(filename, targa_tag());
- return { backend._info._width, backend._info._height };
- }
- template< typename String
- , typename View
- >
- inline
- void targa_read_view( const String& filename
- , const View& view
- )
- {
- read_view( filename
- , view
- , targa_tag()
- );
- }
- template< typename String
- , typename Image
- >
- inline
- void targa_read_image( const String& filename
- , Image& img
- )
- {
- read_image( filename
- , img
- , targa_tag()
- );
- }
- template< typename String
- , typename View
- , typename CC
- >
- inline
- void targa_read_and_convert_view( const String& filename
- , const View& view
- , CC cc
- )
- {
- read_and_convert_view( filename
- , view
- , cc
- , targa_tag()
- );
- }
- template< typename String
- , typename View
- >
- inline
- void targa_read_and_convert_view( const String& filename
- , const View& view
- )
- {
- read_and_convert_view( filename
- , view
- , targa_tag()
- );
- }
- template< typename String
- , typename Image
- , typename CC
- >
- inline
- void targa_read_and_convert_image( const String& filename
- , Image& img
- , CC cc
- )
- {
- read_and_convert_image( filename
- , img
- , cc
- , targa_tag()
- );
- }
- template< typename String
- , typename Image
- >
- inline
- void targa_read_and_convert_image( const String filename
- , Image& img
- )
- {
- read_and_convert_image( filename
- , img
- , targa_tag()
- );
- }
- template< typename String
- , typename View
- >
- inline
- void targa_write_view( const String& filename
- , const View& view
- )
- {
- write_view( filename
- , view
- , targa_tag()
- );
- }
- }
- }
- #endif
|