full range yuv (jpeg) for 420,422, decode videoframe before completing open, scan pixel format, changed clamping were applicable in fx

git-svn-id: svn://code.dyne.org/veejay/trunk@672 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2006-10-21 00:46:19 +00:00
parent 349931cc52
commit ae616b5448
44 changed files with 415 additions and 630 deletions

View File

@@ -20,7 +20,7 @@
#include "enhancemask.h"
#include "common.h"
vj_effect *enhancemask_init(int width, int height)
{
vj_effect *ve = (vj_effect *) vj_malloc(sizeof(vj_effect));
@@ -83,8 +83,8 @@ void enhancemask_apply(VJFrame *frame, int width, int height, int *s ) {
d /= 100;
m = m + d;
// a = Y[r];
if( m > 240) m = 240;
if( m < 16) m = 16;
if( m > pixel_Y_hi_) m = pixel_Y_hi_;
if( m < pixel_Y_lo_) m = pixel_Y_lo_;
// Y[r] = (m * op0 + a * op1) / 255;
Y[r] = m;
}
@@ -94,8 +94,8 @@ void enhancemask_apply(VJFrame *frame, int width, int height, int *s ) {
d *= s[0];
d /= 100;
m = m + d;
if( m > 240) m = 240;
if( m < 16) m = 16;
if( m > pixel_Y_hi_) m = pixel_Y_hi_;
if( m < pixel_Y_lo_) m = pixel_Y_lo_;
Y[r] = m;
}