first cut of bicubic sampler

This commit is contained in:
nothings.org 2007-06-28 22:57:49 +00:00
parent 43500fa8b3
commit f734cfa7be
7 changed files with 623 additions and 197 deletions

780
imv.c

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,10 @@
Version 0.57
* bugfix: comment code
* bugfix: fix logic for fitting large images onscreen to not stop a few pixels short
Version 0.56
* bugfix: stb_image wouldn't load jpegtran output (which is invalid JFIF)
Version 0.55 (2007-06-27)
* feature: toggle filename label
* feature: toggle entire border

View File

@ -2,8 +2,11 @@
= Release =
The current version is 0.54.
This is an alpha version, targetting the eventual milestones:
version 0.90 - beta
version 1.00 - stable release
= Release Notes =

View File

@ -20,11 +20,7 @@ rem # Make tarball directory
mkdir ..\stb_imv_src-%VERSION%
mkdir ..\stb_imv_src-%VERSION%\vc6
copy vc6\stb_imv.ds? ..\stb_imv_src-%VERSION%\vc6
copy *.c ..\stb_imv_src-%VERSION%
copy *.h ..\stb_imv_src-%VERSION%
copy COPYING ..\stb_imv_src-%VERSION%
copy *.txt ..\stb_imv_src-%VERSION%
copy *.bat ..\stb_imv_src-%VERSION%
copy *.* ..\stb_imv_src-%VERSION%
rem #

View File

@ -980,7 +980,9 @@ static int process_frame_header(int scan)
for (i=0; i < img_n; ++i) {
img_comp[i].id = get8();
if (img_comp[i].id != i+1) return e("bad component ID"); // JFIF requires
if (img_comp[i].id != i+1) // JFIF requires
if (img_comp[i].id != i) // jpegtran outputs non-JFIF-compliant files!
return e("bad component ID");
z = get8();
img_comp[i].h = (z >> 4); if (!img_comp[i].h || img_comp[i].h > 4) return e("bad H");
img_comp[i].v = z & 15; if (!img_comp[i].h || img_comp[i].h > 4) return e("bad V");

View File

@ -95,15 +95,7 @@ SOURCE=..\imv.c
# Begin Source File
SOURCE=..\notes.txt
!IF "$(CFG)" == "stb_imv - Win32 Release"
# PROP Exclude_From_Build 1
!ELSEIF "$(CFG)" == "stb_imv - Win32 Debug"
!ENDIF
# End Source File
# Begin Source File
@ -112,15 +104,7 @@ SOURCE=..\stb.h
# Begin Source File
SOURCE=..\version.bat
!IF "$(CFG)" == "stb_imv - Win32 Release"
# PROP Exclude_From_Build 1
!ELSEIF "$(CFG)" == "stb_imv - Win32 Debug"
!ENDIF
# End Source File
# End Target
# End Project

View File

@ -1 +1 @@
set VERSION="0.55"
set VERSION="0.57"