Ejemplo n.º 1
0
Frame::Frame(
    const char*         name,
    const ParamArray&   params)
  : Entity(g_class_uid, params)
  , impl(new Impl())
{
    set_name(name);
    extract_parameters();

    // Create the underlying image.
    impl->m_image.reset(
        new Image(
            impl->m_frame_width,
            impl->m_frame_height,
            impl->m_tile_width,
            impl->m_tile_height,
            4,
            impl->m_pixel_format));

    // Retrieve the image properties.
    m_props = impl->m_image->properties();

    // Create the AOV image collection.
    impl->m_aov_images.reset(
        new AOVImageCollection(
            impl->m_frame_width,
            impl->m_frame_height,
            impl->m_tile_width,
            impl->m_tile_height));
}
DiagnosticSurfaceShader::DiagnosticSurfaceShader(
    const char*             name,
    const ParamArray&       params)
  : SurfaceShader(name, params)
{
    extract_parameters();
}
Ejemplo n.º 3
0
inline bool parser::parse_parameter_list(std::string const & in,
    parameter_list & out) const
{
    if (in.size() == 0) {
        return false;
    }

    std::string::const_iterator it;
    it = extract_parameters(in.begin(),in.end(),out);
    return (it == in.begin());
}
Ejemplo n.º 4
0
int main()
{

    char new_url[140];
    scanf("%s",&new_url);
    init_url(new_url);
    filter_url();
    extract_parameters();
    extract_values();
    print();
    return 0;
}
Ejemplo n.º 5
0
ColorEntity::ColorEntity(
    const char*             name,
    const ParamArray&       params)
  : Entity(g_class_uid, params)
  , impl(new Impl())
{
    set_name(name);

    extract_parameters();
    extract_values();

    check_validity();
}
Ejemplo n.º 6
0
ColorEntity::ColorEntity(
    const char*             name,
    const ParamArray&       params,
    const ColorValueArray&  values)
  : Entity(g_class_uid, params)
  , impl(new Impl())
{
    set_name(name);

    extract_parameters();

    impl->m_values = values;
    impl->m_alpha.push_back(1.0f);

    check_validity();
}
Ejemplo n.º 7
0
/*
==================================================================
  MAIN
==================================================================
*/
int main(int argc, char **argv)
{

	
    init(HOST, PORT);
    /*calculez tabel crc*/
		crc_table = tabelcrc(CRCCCITT);
    /*trimit primul cadru*/
		send_first_frame(extract_parameters(argv[1]));
    char *filename2=calloc(1000,sizeof(char));
    unsigned short BUF = (MAX_SEQ + 1) / 2;
    strcpy(filename2,"recv_");
		strcat(filename2,filename);
		
    fd = open(filename2, O_WRONLY | O_CREAT, 0644);
    if (fd < 0) 
		{
				perror("Failed to open file\n");
    }
    /*trimit datele*/
		send_data(BUF);	
    close(fd);
    return 0;
}