void MP4Container::SetFloatProperty(const char* name, float value) { MP4Property* pProperty; u_int32_t index; FindFloatProperty(name, &pProperty, &index); ((MP4Float32Property*)pProperty)->SetValue(value, index); }
float MP4Container::GetFloatProperty(const char* name) { MP4Property* pProperty; u_int32_t index; FindFloatProperty(name, &pProperty, &index); return ((MP4Float32Property*)pProperty)->GetValue(index); }
StdProperty* TypeBasic::FindProperty( const wchar_t* name ) { StdProperty* prop = NULL; if ( IsIntegral() ) { prop = FindIntProperty( name ); if ( prop != NULL ) return prop; } if ( IsFloatingPoint() ) { prop = FindFloatProperty( name ); if ( prop != NULL ) return prop; } return Type::FindProperty( name ); }