Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 84) sorted by relevance

1234

/NW4C-2.0.3/sources/libraries/io/
Dio_FileStream.cpp102 FileStream::FilePosition::Skip( s32 offset ) in Skip() argument
104 if ( offset != 0 ) in Skip()
106 s64 position = mPosition + offset; in Skip()
127 FileStream::FilePosition::Append( s32 offset ) in Append() argument
129 s64 position = mPosition + offset; in Append()
158 FileStream::FilePosition::Seek( s32 offset, u32 origin ) in Seek() argument
171 (void)Skip( offset ); in Seek()
/NW4C-2.0.3/sources/libraries/anim/
Danim_AnimFrameController.cpp57 f32 offset = inputFrame - startFrame; in PlayPolicy_Loop() local
58 if (offset < 0.0f) in PlayPolicy_Loop()
60 offset += (FFloor(-offset / length) + 1) * length; in PlayPolicy_Loop()
62 return FMod(offset, length) + startFrame; in PlayPolicy_Loop()
/NW4C-2.0.3/sources/libraries/snd/
Dsnd_StreamSoundFile.cpp59 return GetReferenceBy( ElementType_StreamSoundFile_InfoBlock )->offset; in GetInfoBlockOffset()
63 return GetReferenceBy( ElementType_StreamSoundFile_SeekBlock )->offset; in GetSeekBlockOffset()
67 return GetReferenceBy( ElementType_StreamSoundFile_DataBlock )->offset; in GetDataBlockOffset()
83 ut::AddOffsetToPtr( this, toStreamSoundInfo.offset ) ); in GetStreamSoundInfo()
93 ut::AddOffsetToPtr( this, toTrackInfoTable.offset ) ); in GetTrackInfoTable()
103 ut::AddOffsetToPtr( this, toChannelInfoTable.offset ) ); in GetChannelInfoTable()
142 ut::AddOffsetToPtr( this, toDetailChannelInfo.offset ) ); in GetDspAdpcmChannelInfo()
Dsnd_SequenceSoundFile.cpp59 const char* SequenceSoundFile::LabelBlockBody::GetLabelByOffset( u32 offset ) const in GetLabelByOffset()
65 if ( labelInfo->referToSequenceData.offset == offset ) in GetLabelByOffset()
76 *offsetPtr = labelInfo->referToSequenceData.offset; in GetOffset()
90 *offsetPtr = labelInfo->referToSequenceData.offset; in GetOffsetByLabel()
Dsnd_SoundArchiveFile.cpp166 return GetReferenceBy( ElementType_SoundArchiveFile_StringBlock )->offset; in GetStringBlockOffset()
170 return GetReferenceBy( ElementType_SoundArchiveFile_InfoBlock )->offset; in GetInfoBlockOffset()
174 return GetReferenceBy( ElementType_SoundArchiveFile_FileBlock )->offset; in GetFileBlockOffset()
184 return ut::AddOffsetToPtr( this, toSection[section].offset ); in GetSection()
521 ut::AddOffsetToPtr( this, toSoundArchivePlayerInfo.offset ) ); in GetSoundArchivePlayerInfo()
529 ut::AddOffsetToPtr( this, toSoundInfoReferenceTable.offset ) ); in GetSoundInfoReferenceTable()
536 ut::AddOffsetToPtr( this, toBankInfoReferenceTable.offset ) ); in GetBankInfoReferenceTable()
543 ut::AddOffsetToPtr( this, toPlayerInfoReferenceTable.offset ) ); in GetPlayerInfoReferenceTable()
550 ut::AddOffsetToPtr( this, toSoundGroupInfoReferenceTable.offset ) ); in GetSoundGroupInfoReferenceTable()
557 ut::AddOffsetToPtr( this, toGroupInfoReferenceTable.offset ) ); in GetGroupInfoReferenceTable()
[all …]
Dsnd_MemorySoundArchive.cpp140 const u32 itemOffset = groupInfo.offset + itemInfo.offset; in detail_GetFileAddress()
212 void MemorySoundArchive::MemoryFileStream::Seek( s32 offset, u32 origin ) in Seek() argument
216 m_Position = static_cast<u32>(offset); in Seek()
220 m_Position += offset; in Seek()
224 m_Position = m_Size - offset; in Seek()
Dsnd_BankFile.cpp77 return ut::AddOffsetToPtr( this, toRegion.offset ); in GetRegion()
117 return ut::AddOffsetToPtr( this, ref.offset ); in GetRegion()
142 return ut::AddOffsetToPtr( this, toRegion[index-min].offset ); in GetRegion()
190 const void* GetRegion( const void* startPtr, u16 typeId, u32 offset, u32 index ) in GetRegion() argument
194 const void* regionChunk = ut::AddOffsetToPtr( startPtr, offset ); in GetRegion()
234 ut::AddOffsetToPtr( this, toWaveIdTable.offset ) ); in GetWaveIdTable()
241 ut::AddOffsetToPtr( this, toInstrumentReferenceTable.offset ) ); in GetInstrumentReferenceTable()
276 toKeyRegionChunk.offset, in GetKeyRegion()
289 toVelocityRegionChunk.offset, in GetVelocityRegion()
372 ut::AddOffsetToPtr( &ref, ref.offset ) ); in GetAdshrCurve()
Dsnd_HioSoundArchive.cpp378 HioSoundArchive::HioFileStream::HioFileStream( const char* path, u32 offset, u32 size ) in HioFileStream() argument
381 m_Offset( static_cast<s32>( offset ) ), in HioFileStream()
393 nn::hio::HostFile* openedFile, u32 offset, u32 size ) in HioFileStream() argument
395 m_Offset( static_cast<s32>( offset ) ), in HioFileStream()
418 void HioSoundArchive::HioFileStream::Seek( s32 offset, u32 origin ) in Seek() argument
422 offset += m_Offset; in Seek()
425 offset += io::HioFileStream::Tell(); in Seek()
428 offset = m_Offset + static_cast<s32>( m_Size ) - offset; in Seek()
435 if ( offset < m_Offset ) in Seek()
437 offset = m_Offset; in Seek()
[all …]
Dsnd_RomSoundArchive.cpp593 RomSoundArchive::RomFileStream::RomFileStream( s32 entryNum, u32 offset, u32 size )
595 m_Offset( static_cast<s32>( offset ) ),
604 RomSoundArchive::RomFileStream::RomFileStream( const char* path, u32 offset, u32 size ) in RomFileStream() argument
607 m_Offset( static_cast<s32>( offset ) ), in RomFileStream()
621 const nn::fs::File* fileInfo, u32 offset, u32 size ) in RomFileStream() argument
623 m_Offset( static_cast<s32>( offset ) ), in RomFileStream()
636 nn::fs::FileReader* fileReader, u32 offset, u32 size ) in RomFileStream() argument
638 m_Offset( static_cast<s32>( offset ) ), in RomFileStream()
662 void RomSoundArchive::RomFileStream::Seek( s32 offset, u32 origin ) in Seek() argument
666 offset += m_Offset; in Seek()
[all …]
Dsnd_WaveSoundFile.cpp103 ut::AddOffsetToPtr( this, toWaveSoundDataReferenceTable.offset ) ); in GetWaveSoundDataReferenceTable()
109 ut::AddOffsetToPtr( this, toWaveIdTable.offset ) ); in GetWaveIdTable()
123 ut::AddOffsetToPtr( this, toWaveSoundInfo.offset ) ); in GetWaveSoundInfo()
130 ut::AddOffsetToPtr( this, toTrackInfoReferenceTable.offset ) ); in GetTrackInfoReferenceTable()
137 ut::AddOffsetToPtr( this, toNoteInfoReferenceTable.offset ) ); in GetNoteInfoReferenceTable()
231 ut::AddOffsetToPtr( &ref, ref.offset ) ); in GetAdshrCurve()
242 ut::AddOffsetToPtr( this, toNoteEventReferenceTable.offset ) ); in GetNoteEventReferenceTable()
337 ut::AddOffsetToPtr( &ref, ref.offset ) ); in GetAdshrCurve()
Dsnd_PlayerHeap.cpp159 size_t offset = ut::GetOffsetFromPtr( m_pAllocAddress, m_pEndAddress ); in GetFreeSize() local
160 NW_ASSERT( offset >= 0 ); in GetFreeSize()
162 return offset; in GetFreeSize()
/NW4C-2.0.3/include/nw/ut/
Dut_ResTypes.h157 ResS32 offset; member
162 if ( offset != 0 ) { return reinterpret_cast<const char*>(p + offset); } in to_ptr()
168 if (ptr == NULL) { offset = 0; } in set_ptr()
169 else { offset = GetOffsetFromPtr(this, ptr); } in set_ptr()
180 ResS32 offset; member
187 Offset operator=(s32 ofs) { offset = ofs; return *this; }
188 operator s32() const { return offset; } in s32()
189 Offset operator+(s32 ofs) const { return s32_to_ofs(this->offset + ofs); }
190 Offset operator-(s32 ofs) const { return s32_to_ofs(this->offset - ofs); }
191 Offset operator+=(s32 ofs) { this->offset += ofs; return *this; }
[all …]
/NW4C-2.0.3/include/nw/io/
Dio_FileStream.h47 virtual void Seek( s32 offset, u32 origin );
74 u32 Skip( s32 offset );
75 u32 Append( s32 offset );
76 void Seek( s32 offset, u32 origin );
/NW4C-2.0.3/sources/libraries/demo/
Ddemo_Memory.cpp51 size_t offset = nw::ut::GetOffsetFromPtr( memory, top ); in AlignMemory_() local
52 NW_U8_RANGE_ASSERT( offset ); in AlignMemory_()
54 *head = static_cast<u8>( offset ); in AlignMemory_()
107 u8 offset = *head; in UnAlignMemory() local
109 return nw::ut::AddOffsetToPtr( memory, -offset ); in UnAlignMemory()
/NW4C-2.0.3/include/nw/snd/
Dsnd_RomSoundArchive.h238 RomFileStream( const char* path, u32 offset, u32 size );
241 RomFileStream( const nn::fs::File* fileInfo, u32 offset, u32 size );
243 RomFileStream( nn::fs::FileReader* fileReader, u32 offset, u32 size );
247 virtual void Seek( s32 offset, u32 origin );
Dsnd_GroupFile.h66 this, referenceTableOfGroupItemInfo.item[ index ].offset ) ); in GetGroupItemInfo()
107 if ( embeddedItemInfo.offset == OFFSET_FOR_LINK ) in GetFileLocation()
112 embeddedItemInfo.offset ); in GetFileLocation()
145 this, referenceTableOfGroupItemInfoEx.item[ index ].offset ) ); in GetGroupItemInfoEx()
Dsnd_Util.h128 nw::ut::ResS32 offset; // INVALID_OFFSET が入っていたら 無効値 member
142 if ( offset != INVALID_OFFSET ) in IsValidOffset()
160 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem()
166 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem()
174 return ut::AddOffsetToPtr( this, item[i].offset ); in FindReferedItemBy()
186 return ut::AddOffsetToPtr( this, item[ index ].offset ); in GetReferedItem()
194 return ut::AddOffsetToPtr( this, item[i].offset ); in GetReferedItemBy()
220 return ut::AddOffsetToPtr( origin, item[ index ].offset ); in GetReferedItemByIndex()
238 if ( ref->offset == 0 ) return NULL; in GetReferedItem()
239 return ut::AddOffsetToPtr( origin, ref->offset ); in GetReferedItem()
[all …]
/NW4C-2.0.3/tools/DccPlugin/3dsMax/x64/2009/Scripts/Startup/
DNW4C_menu.ms12 …ection "" /*width:80*/ height:16 labels:#("All", "Selection") columns:2 align:#left offset:[-30,0]
15 label lbl2 "File name:" /*width:72*/ height:20 align:#left across: 4 --offset:[0,-10]
16 editText editFilename "" width:256 align:#left offset:[-30,0]
17 button btnNameNode "Node" width:45 height:16 align:#right offset:[60,0]
22 editText editFilepath "" width:332 offset:[-30,0]
25 radiobuttons rdoUseCS "" labels:#("Use Creative Studio") align:#left offset:[0,-5]
26 radiobuttons rdoUse3DEditor "" labels:#("Use 3DEditor") align:#left --offset:[0,-5]
31 editText editMergeFile "" width:332 offset:[-30,0]
107 …meEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left offset:[-40,0]
114 label lblExportModel "Model Data " align:#right offset:[20,0] across:4
[all …]
/NW4C-2.0.3/tools/DccPlugin/3dsMax/x86/2011/Scripts/Startup/
DNW4C_menu.ms12 …ection "" /*width:80*/ height:16 labels:#("All", "Selection") columns:2 align:#left offset:[-30,0]
15 label lbl2 "File name:" /*width:72*/ height:20 align:#left across: 4 --offset:[0,-10]
16 editText editFilename "" width:256 align:#left offset:[-30,0]
17 button btnNameNode "Node" width:45 height:16 align:#right offset:[60,0]
22 editText editFilepath "" width:332 offset:[-30,0]
25 radiobuttons rdoUseCS "" labels:#("Use Creative Studio") align:#left offset:[0,-5]
26 radiobuttons rdoUse3DEditor "" labels:#("Use 3DEditor") align:#left --offset:[0,-5]
31 editText editMergeFile "" width:332 offset:[-30,0]
107 …meEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left offset:[-40,0]
114 label lblExportModel "Model Data " align:#right offset:[20,0] across:4
[all …]
/NW4C-2.0.3/tools/DccPlugin/3dsMax/x64/2011/Scripts/Startup/
DNW4C_menu.ms12 …ection "" /*width:80*/ height:16 labels:#("All", "Selection") columns:2 align:#left offset:[-30,0]
15 label lbl2 "File name:" /*width:72*/ height:20 align:#left across: 4 --offset:[0,-10]
16 editText editFilename "" width:256 align:#left offset:[-30,0]
17 button btnNameNode "Node" width:45 height:16 align:#right offset:[60,0]
22 editText editFilepath "" width:332 offset:[-30,0]
25 radiobuttons rdoUseCS "" labels:#("Use Creative Studio") align:#left offset:[0,-5]
26 radiobuttons rdoUse3DEditor "" labels:#("Use 3DEditor") align:#left --offset:[0,-5]
31 editText editMergeFile "" width:332 offset:[-30,0]
107 …meEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left offset:[-40,0]
114 label lblExportModel "Model Data " align:#right offset:[20,0] across:4
[all …]
/NW4C-2.0.3/tools/DccPlugin/3dsMax/x86/2010/Scripts/Startup/
DNW4C_menu.ms12 …ection "" /*width:80*/ height:16 labels:#("All", "Selection") columns:2 align:#left offset:[-30,0]
15 label lbl2 "File name:" /*width:72*/ height:20 align:#left across: 4 --offset:[0,-10]
16 editText editFilename "" width:256 align:#left offset:[-30,0]
17 button btnNameNode "Node" width:45 height:16 align:#right offset:[60,0]
22 editText editFilepath "" width:332 offset:[-30,0]
25 radiobuttons rdoUseCS "" labels:#("Use Creative Studio") align:#left offset:[0,-5]
26 radiobuttons rdoUse3DEditor "" labels:#("Use 3DEditor") align:#left --offset:[0,-5]
31 editText editMergeFile "" width:332 offset:[-30,0]
107 …meEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left offset:[-40,0]
114 label lblExportModel "Model Data " align:#right offset:[20,0] across:4
[all …]
/NW4C-2.0.3/tools/DccPlugin/3dsMax/x64/2010/Scripts/Startup/
DNW4C_menu.ms12 …ection "" /*width:80*/ height:16 labels:#("All", "Selection") columns:2 align:#left offset:[-30,0]
15 label lbl2 "File name:" /*width:72*/ height:20 align:#left across: 4 --offset:[0,-10]
16 editText editFilename "" width:256 align:#left offset:[-30,0]
17 button btnNameNode "Node" width:45 height:16 align:#right offset:[60,0]
22 editText editFilepath "" width:332 offset:[-30,0]
25 radiobuttons rdoUseCS "" labels:#("Use Creative Studio") align:#left offset:[0,-5]
26 radiobuttons rdoUse3DEditor "" labels:#("Use 3DEditor") align:#left --offset:[0,-5]
31 editText editMergeFile "" width:332 offset:[-30,0]
107 …meEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left offset:[-40,0]
114 label lblExportModel "Model Data " align:#right offset:[20,0] across:4
[all …]
/NW4C-2.0.3/tools/DccPlugin/3dsMax/x86/2009/Scripts/Startup/
DNW4C_menu.ms12 …ection "" /*width:80*/ height:16 labels:#("All", "Selection") columns:2 align:#left offset:[-30,0]
15 label lbl2 "File name:" /*width:72*/ height:20 align:#left across: 4 --offset:[0,-10]
16 editText editFilename "" width:256 align:#left offset:[-30,0]
17 button btnNameNode "Node" width:45 height:16 align:#right offset:[60,0]
22 editText editFilepath "" width:332 offset:[-30,0]
25 radiobuttons rdoUseCS "" labels:#("Use Creative Studio") align:#left offset:[0,-5]
26 radiobuttons rdoUse3DEditor "" labels:#("Use 3DEditor") align:#left --offset:[0,-5]
31 editText editMergeFile "" width:332 offset:[-30,0]
107 …meEnd "" width:64 height:16 range:[0,100000,100] type:#integer scale:1 align:#left offset:[-40,0]
114 label lblExportModel "Model Data " align:#right offset:[20,0] across:4
[all …]
/NW4C-2.0.3/demos/Nw4cDemo/sources/
DSmPrimitive.cpp278 nw::math::VEC4 offset; in Render() local
279 offset.x = posX; in Render()
280 offset.y = posY; in Render()
281 offset.z = 0.f; in Render()
282 offset.w = 0.f; in Render()
283 glVertexAttrib4fv( SmOgl::SMP_ATTR_OFFSET, offset ); in Render()
/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_ParticleAnimationOption.cpp170 int offset = (int)(random % (int)(this->GetAnimationDuration() + 1)); in EvaluateAnimationFrame() local
173 return (f32)offset; in EvaluateAnimationFrame()
175 return offset; in EvaluateAnimationFrame()

1234