Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-22 04:06:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-22 04:06:54 +0400
commit6d6f1b0b4d32d3396be813cdba82830a9c95295a (patch)
tree78813cb6889c315286cd7de2443da02487021843 /source/blender/blenkernel
parent8992ed9cdd17b641801e14615800e0e3b5e7f464 (diff)
display quality for avijpeg, name BKE_imtype functions more sensibly
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/BKE_image.h10
-rw-r--r--source/blender/blenkernel/intern/image.c11
2 files changed, 11 insertions, 10 deletions
diff --git a/source/blender/blenkernel/BKE_image.h b/source/blender/blenkernel/BKE_image.h
index dae0821b27a..7233f9570f9 100644
--- a/source/blender/blenkernel/BKE_image.h
+++ b/source/blender/blenkernel/BKE_image.h
@@ -59,11 +59,11 @@ char BKE_ftype_to_imtype(const int ftype);
int BKE_imtype_to_ftype(char imtype);
int BKE_imtype_is_movie(const char imtype);
-int BKE_imtype_is_alpha_ok(const char imtype);
-int BKE_imtype_is_zbuf_ok(const char imtype);
-int BKE_imtype_is_compression_ok(const char imtype);
-int BKE_imtype_is_quality_ok(const char imtype);
-char BKE_imtype_is_depth_ok(const char imtype);
+int BKE_imtype_supports_alpha(const char imtype);
+int BKE_imtype_supports_zbuf(const char imtype);
+int BKE_imtype_supports_compress(const char imtype);
+int BKE_imtype_supports_quality(const char imtype);
+char BKE_imtype_valid_depths(const char imtype);
struct anim *openanim(const char *name, int flags, int streamindex);
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index 0d84385fad0..c98c973789d 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -900,7 +900,7 @@ int BKE_imtype_is_movie(const char imtype)
return 0;
}
-int BKE_imtype_is_alpha_ok(const char imtype)
+int BKE_imtype_supports_alpha(const char imtype)
{
switch(imtype) {
case R_TARGA:
@@ -918,7 +918,7 @@ int BKE_imtype_is_alpha_ok(const char imtype)
return 0;
}
-int BKE_imtype_is_zbuf_ok(const char imtype)
+int BKE_imtype_supports_zbuf(const char imtype)
{
switch(imtype) {
case R_IRIZ:
@@ -928,7 +928,7 @@ int BKE_imtype_is_zbuf_ok(const char imtype)
return 0;
}
-int BKE_imtype_is_compression_ok(const char imtype)
+int BKE_imtype_supports_compress(const char imtype)
{
switch(imtype) {
case R_PNG:
@@ -937,17 +937,18 @@ int BKE_imtype_is_compression_ok(const char imtype)
return 0;
}
-int BKE_imtype_is_quality_ok(const char imtype)
+int BKE_imtype_supports_quality(const char imtype)
{
switch(imtype) {
case R_JPEG90:
case R_JP2:
+ case R_AVIJPEG:
return 1;
}
return 0;
}
-char BKE_imtype_is_depth_ok(const char imtype)
+char BKE_imtype_valid_depths(const char imtype)
{
switch (imtype) {
case R_RADHDR: