clip picons as clip_icon.png, vwindow hang, fix for drop target test
[goodguy/history.git] / cinelerra-5.1 / guicast / vframe.C
index e8dad7ea1315ee913bb439c355767f4de725dc1b..241a773f639d0509b8f8d7d853195720e929f0db 100644 (file)
@@ -280,7 +280,8 @@ int VFrame::reset_parameters(int do_opengl)
        timestamp = -1.;
        is_keyframe = 0;
        draw_point = 0;
-       set_pixel_color(BLACK);
+       pixel_rgb = 0x000000; // BLACK
+       pixel_yuv = 0x008080;
        stipple = 0;
 
        if(do_opengl)
@@ -354,6 +355,7 @@ if( memory_type != VFrame::SHARED )
                case BC_YUV444P:
                case BC_RGB_FLOATP:
                case BC_RGBA_FLOATP:
+               case BC_GBRP:
                        break;
 
                default:
@@ -445,6 +447,12 @@ void VFrame::create_row_pointers()
                this->u_offset = sz;
                this->v_offset = sz + sz;
                break;
+       case BC_GBRP:
+               if( this->v_offset ) break;
+               this->y_offset = 0;
+               this->u_offset = sz * sizeof(uint8_t);
+               this->v_offset = 2 * sz * sizeof(uint8_t);
+               break;
        case BC_RGBA_FLOATP:
                if( this->v_offset || a ) break;
                a = this->data + 3 * sz * sizeof(float);
@@ -902,6 +910,12 @@ int VFrame::clear_frame()
                bzero(get_v(), sz / 2);
                break;
 
+       case BC_GBRP:
+               bzero(get_y(), sz);
+               bzero(get_u(), sz);
+               bzero(get_b(), sz);
+               break;
+
        case BC_RGBA_FLOATP: if( a ) {
                float *ap = (float *)a;
                for( int i=sz; --i>=0; ++ap ) *ap = 1.f; }