void libmngrDlgRemoteLink::OnSignUp( wxCommandEvent& /*event*/ ) { WriteFields(); libmngrDlgRemoteSignUp dlg(this); dlg.ShowModal(); ReadFields(); }
/*---------------------------------------------------------------------- | AP4_UnknownSampleEntry::AP4_UnknownSampleEntry +---------------------------------------------------------------------*/ AP4_UnknownSampleEntry::AP4_UnknownSampleEntry(AP4_Atom::Type type, AP4_Size size, AP4_ByteStream& stream) : AP4_SampleEntry(type, size) { if (size > AP4_ATOM_HEADER_SIZE+AP4_SampleEntry::GetFieldsSize()) { m_Payload.SetDataSize(size-(AP4_ATOM_HEADER_SIZE+AP4_SampleEntry::GetFieldsSize())); ReadFields(stream); } }
bool Branch::Decode() { // B imm, BL imm if (ReadFields({ CondDef(), FieldDef<3>(5), FieldDef<1>(&link), FieldDef<24>(&imm24) })) { form = Form::Immediate; return true; } // BLX reg if (ReadFields({ CondDef(), FieldDef<24>(0x12fff3), FieldDef<4>(&rm) })) { if (rm == Register::PC) return false; link = true; form = Form::Register; return true; } return false; }
/*---------------------------------------------------------------------- | AP4_SampleEntry::Read +---------------------------------------------------------------------*/ void AP4_SampleEntry::Read(AP4_ByteStream& stream, AP4_AtomFactory& atom_factory) { // read the fields before the children atoms ReadFields(stream); // read children atoms (ex: esds and maybe others) // NOTE: not all sample entries have children atoms AP4_Size payload_size = (AP4_Size)(GetSize()-GetHeaderSize()); AP4_Size fields_size = GetFieldsSize(); if (payload_size > fields_size) { ReadChildren(atom_factory, stream, payload_size-fields_size); } }
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: ConnectToDB(); break; case 1: ReadTables(); break; case 2: ReadFields((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break; case 3: on_pushButton_5_clicked(); break; case 4: on_pushButton_4_clicked(); break; case 5: on_pushButton_3_clicked(); break; case 6: on_pushButton_2_clicked(); break; case 7: on_pushButton_clicked(); break; default: ; } _id -= 8; } return _id; }
bool ReadYUV422(int frame, void *buf, int pitch) const { OUT_BUFFER_ELEMENT *fields[2]; EnterCriticalSection(&(video->lock)); ReadFields(frame, fields[0], fields[1]); if(fields[0] == NULL) { __asm {emms}; LeaveCriticalSection(&(video->lock)); return false; } video->bgr_prm.prm.out_step = pitch; video->to_yuy2(fields[0]->data, fields[1]->data, (unsigned char *)buf, &(video->bgr_prm.prm)); video->yuy2_cc((unsigned char *)buf, pitch, video->bgr_prm.prm.height, &(video->ycc_prm)); __asm {emms}; LeaveCriticalSection(&(video->lock)); return true; }
void ValidateCommand :: ReadValidationFile( const ALib::CommandLine & cmd ) { Clear(); string fname = cmd.GetValue( FLAG_VFILE ); if ( fname == "" ) { CSVTHROW( "Need validation file specified by " << FLAG_VFILE << " flag" ); } std::ifstream ifs( fname.c_str() ); if ( ! ifs.is_open() ) { CSVTHROW( "Cannot open validation file " << fname << " for input" ); } string line; while( std::getline( ifs, line ) ) { if ( ALib::IsEmpty( line ) || line[0] == '#' ) { // a comment continue; } unsigned int pos = 0; string name = ReadName( line, pos ); FieldList flist = ReadFields( line, pos ); ValidationRule::Params params = ReadParams( line, pos ); ValidationRule * rule = RuleFactory::CreateRule( name, flist, params ); if ( rule == 0 ) { CSVTHROW( "Unknown rule: " << name ); } //rule->DumpOn( std::cout ); mRules.push_back( rule ); } }
void MainWindow::connectSignals() { connect(ui->tvTables, SIGNAL(clicked(QModelIndex)), SLOT(ReadFields(QModelIndex))); }
libmngrDlgRemoteLink::libmngrDlgRemoteLink( wxWindow* parent ) : DlgRemoteLink( parent ) { ReadFields(); }