John Cupitt
|
4c5873809f
|
experiment with renaming stream
rename as VipsConnection, VipsSource, VipsTarget etc.
see https://github.com/libvips/libvips/issues/1494#issuecomment-569498619
renamed with this script:
```
set -e
edit() {
sed -i -E "$1" rename
}
for i in $*; do
cp $i rename
edit s/VIPS_STREAMOU/VIPS_TARGET_CUSTOM/g
edit s/VIPS_STREAMO/VIPS_TARGET/g
edit s/VIPS_STREAMIU/VIPS_SOURCE_CUSTOM/g
edit s/VIPS_STREAMI/VIPS_SOURCE/g
edit s/VIPS_STREAM/VIPS_CONNECTION/g
edit s/vips_streamou/vips_target_custom/g
edit s/vips_streamo/vips_target/g
edit s/vips_streamiu/vips_source_custom/g
edit s/vips_streami/vips_source/g
edit s/vips_stream/vips_connection/g
edit s/VipsStreamou/VipsTargetCustom/g
edit s/VipsStreamo/VipsTarget/g
edit s/VipsStreamiu/VipsSourceCustom/g
edit s/VipsStreami/VipsSource/g
edit s/VipsStream/VipsConnection/g
# eg. VIPS_TYPE_STREAM or VIPS_IS_STREAM
edit "s/VIPS_([A-Z]+)_STREAMOU/VIPS_\1_TARGET_CUSTOM/g"
edit "s/VIPS_([A-Z]+)_STREAMO/VIPS_\1_TARGET/g"
edit "s/VIPS_([A-Z]+)_STREAMIU/VIPS_\1_SOURCE_CUSTOM/g"
edit "s/VIPS_([A-Z]+)_STREAMI/VIPS_\1_SOURCE/g"
edit "s/VIPS_([A-Z]+)_STREAM/VIPS_\1_CONNECTION/g"
edit s/streamou/target_custom/g
edit s/streamo/target/g
edit s/streamiu/source_custom/g
edit s/streami/source/g
# various identifiers which also change
edit s/is_a_stream/is_a_source/g
edit s/find_load_stream/find_load_source/g
edit s/find_save_stream/find_save_target/g
edit s/new_from_stream/new_from_source/g
edit s/write_to_stream/write_to_target/g
edit s/vips_thumbnail_stream/vips_thumbnail_source/g
# eg. vips_webpload_stream
edit "s/vips_([a-z]+)load_stream/vips_\1load_source/g"
# eg. vips_webpsave_stream
edit "s/vips_([a-z]+)save_stream/vips_\1save_target/g"
mv rename $i
done
```
|
2019-12-29 21:40:21 +00:00 |
John Cupitt
|
562da3e5ab
|
rename new_from_filename as new_from_file
So VipsStreami matches VipsImage. Same for new_to_filename.
|
2019-11-22 17:13:20 +00:00 |
Kleis Auke Wolthuizen
|
41c08b0ffb
|
Add svgload_stream to the descriptors test
Seems to work!
|
2019-11-10 12:32:18 +01:00 |
John Cupitt
|
cbbd4ae6dd
|
seems to work!
just a bit more cleaning up needed ...
|
2019-10-27 18:19:43 +00:00 |
John Cupitt
|
09b4ce6d9b
|
test gifload for fd leaks
|
2019-10-06 10:55:19 +01:00 |
John Cupitt
|
efcd31b498
|
add something to test the new restart system
do multiple renders from one seq iage, check fds are opened and closed
as expected
see https://github.com/libvips/libvips/issues/1370
|
2019-10-06 07:25:09 +01:00 |
John Cupitt
|
c1921b0ad1
|
add a test for file descriptors
verify new loader behaviour with minimise
|
2019-10-04 17:44:25 +01:00 |