projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add scaled icon data
[goodguy/history.git]
/
cinelerra-5.0
/
guicast
/
bccmodels.C
diff --git
a/cinelerra-5.0/guicast/bccmodels.C
b/cinelerra-5.0/guicast/bccmodels.C
index 6abfe00f96b27da44c813ca76d6d0d382bab585d..88ed1acdb201402d7bd5477e0f868256aa69e455 100644
(file)
--- a/
cinelerra-5.0/guicast/bccmodels.C
+++ b/
cinelerra-5.0/guicast/bccmodels.C
@@
-22,7
+22,6
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-
int BC_CModels::is_planar(int colormodel)
{
switch(colormodel) {
int BC_CModels::is_planar(int colormodel)
{
switch(colormodel) {
@@
-128,8
+127,6
@@
int BC_CModels::calculate_max(int colormodel)
int BC_CModels::calculate_datasize(int w, int h, int bytes_per_line, int color_model)
{
int BC_CModels::calculate_datasize(int w, int h, int bytes_per_line, int color_model)
{
- if( bytes_per_line < 0 )
- bytes_per_line = w * calculate_pixelsize(color_model);
switch(color_model) {
case BC_YUV410P: return w * h + w * h / 8 + 4;
case BC_YUV420P:
switch(color_model) {
case BC_YUV410P: return w * h + w * h / 8 + 4;
case BC_YUV420P:
@@
-139,6
+136,8
@@
int BC_CModels::calculate_datasize(int w, int h, int bytes_per_line, int color_m
case BC_RGB_FLOATP: return w * h * 3 * sizeof(float) + 4;
case BC_RGBA_FLOATP: return w * h * 4 * sizeof(float) + 4;
}
case BC_RGB_FLOATP: return w * h * 3 * sizeof(float) + 4;
case BC_RGBA_FLOATP: return w * h * 4 * sizeof(float) + 4;
}
+ if( bytes_per_line < 0 )
+ bytes_per_line = w * calculate_pixelsize(color_model);
return h * bytes_per_line + 4;
}
return h * bytes_per_line + 4;
}