Exemple #1
0
inline
void write_view( Device&          device
                 , const View&      view
                 , const FormatTag& tag
                 , typename enable_if< typename mpl::and_< typename detail::is_adaptable_output_device< FormatTag
                 , Device
                 >::type
                 , typename is_format_tag< FormatTag >::type
                 , typename is_write_supported< typename get_pixel_type< View >::type
                 , FormatTag
                 >::type
                 >::type
                 >::type* /* ptr */ = 0
               )
{
    typedef typename detail::is_adaptable_output_device< FormatTag
    , Device
    >::device_type dev_t;
    dev_t dev( device );

    write_view( dev
                , view
                , tag
              );
}
Exemple #2
0
inline
void tiff_write_view( const String& filename
                    , const View&   view
                    )
{
    write_view( filename
              , view
              , tiff_tag()
              );
}
Exemple #3
0
inline
void bmp_write_view( const String& filename
                   , const View&   view
                   )
{
    write_view( filename
              , view
              , bmp_tag()
              );
}
inline
void pnm_write_view( const String& filename
                     , const View&   view
                   )
{
    write_view( filename
                , view
                , pnm_tag()
              );
}
Exemple #5
0
inline
void png_write_view( const String& filename
                    , const View&   view
                    )
{
    write_view( filename
              , view
              , tag_t()
              );
}
Exemple #6
0
inline
void write_view( const String&                  file_name
                 , const any_image_view< Views >& views
                 , const FormatTag&               tag
                 , typename enable_if< typename mpl::and_< typename detail::is_supported_path_spec< String >::type
                 , typename is_format_tag< FormatTag >::type
                 >::type
                 >::type* /* ptr */ = 0
               )
{
    detail::file_stream_device<FormatTag> device( detail::convert_to_string( file_name )
            , typename detail::file_stream_device<FormatTag>::write_tag()
                                                );

    write_view( device
                , views
                , tag
              );
}
Exemple #7
0
inline
void write_view( Device&                        device
                 , const any_image_view< Views >& views
                 , const FormatTag&               tag
                 , typename enable_if< typename mpl::and_< typename detail::is_adaptable_output_device< FormatTag
                 , Device
                 >::type
                 , typename is_format_tag< FormatTag >::type
                 >::type
                 >::type* /* ptr */ = 0
               )
{
    typedef typename detail::is_adaptable_output_device< FormatTag
    , Device
    >::device_type dev_t;
    dev_t dev( device );

    write_view( dev
                , views
                , tag
              );
}
Exemple #8
0
inline
void write_view( const String&                        file_name
                 , const View&                          view
                 , const image_write_info< FormatTag, Log >& info
                 , typename enable_if< typename mpl::and_< typename detail::is_supported_path_spec< String >::type
                 , typename is_format_tag< FormatTag >::type
                 , typename is_write_supported< typename get_pixel_type< View >::type
                 , FormatTag
                 >::type
                 >::type
                 >::type* /* ptr */ = 0
               )
{
    detail::file_stream_device< FormatTag > device( detail::convert_to_string( file_name )
            , typename detail::file_stream_device< FormatTag >::write_tag()
                                                  );

    write_view( device
                , view
                , info
              );
}