示例#1
0
void MP4Container::SetFloatProperty(const char* name, float value)
{
	MP4Property* pProperty;
	u_int32_t index;

	FindFloatProperty(name, &pProperty, &index);

	((MP4Float32Property*)pProperty)->SetValue(value, index);
}
示例#2
0
float MP4Container::GetFloatProperty(const char* name)
{
	MP4Property* pProperty;
	u_int32_t index;

	FindFloatProperty(name, &pProperty, &index);

	return ((MP4Float32Property*)pProperty)->GetValue(index);
}
示例#3
0
文件: Type.cpp 项目: Stretto/mago
    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 );
    }