/haiku/src/add-ons/media/media-add-ons/opensound/ |
H A D | SupportFunctions.h | 23 int32 frameSize = bytes_per_frame(format); local 26 return (bigtime_t)((double)size * 1000000 / frameSize / frameRate);
|
/haiku/src/apps/cortex/addons/common/ |
H A D | RawBuffer.h | 63 uint32 frameSize=1, 72 uint32 frameSize, 86 uint32 frameSize() const; 106 uint32 frameSize,
|
H A D | RawBuffer.cpp | 47 uint32 frameSize, 54 m_frameSize(frameSize), 69 uint32 frameSize, 76 m_frameSize(frameSize), 108 return data() + (frame * frameSize()); 110 uint32 RawBuffer::frameSize() const { return m_frameSize; } function in class:RawBuffer 152 uint32 frameSize, 161 operator=(RawBuffer(pData, frameSize, frames, bCircular, pPool)); 46 RawBuffer( uint32 frameSize, uint32 frames, bool bCircular, rtm_pool* pFromPool) argument 67 RawBuffer( void* pData, uint32 frameSize, uint32 frames, bool bCircular, rtm_pool* pFromPool) argument 150 adopt( void* pData, uint32 frameSize, uint32 frames, bool bCircular, rtm_pool* pPool) argument
|
/haiku/src/apps/mediaplayer/media_node_framework/audio/ |
H A D | AudioReader.cpp | 133 int32 frameSize = sampleSize * fFormat.u.raw_audio.channel_count; local 134 return (char*)buffer + frames * frameSize; 143 int32 frameSize = sampleSize * fFormat.u.raw_audio.channel_count; local 145 char* back = (char*)buffer + (frames - 1) * frameSize; 147 for (int32 i = 0; i < frameSize; i++) 149 front += frameSize; 150 back -= frameSize;
|
/haiku/src/kits/media/ |
H A D | Sound.cpp | 193 int32 frameSize = fTrackReader->FrameSize(); local 195 int64 startFrame = offset / frameSize; 202 off_t bufferOffset = offset - startFrame * frameSize; 203 int64 directStartFrame = (offset + frameSize - 1) / frameSize; 205 * frameSize) / frameSize; 209 size_t indirectSize = indirectFrameCount * frameSize; 233 *outUsed += directFrameCount * frameSize;
|
/haiku/src/apps/mediaplayer/supplier/ |
H A D | ProxyAudioSupplier.cpp | 347 int32 frameSize = sampleSize * Format().u.raw_audio.channel_count; local 349 char* back = (char*)buffer + (frames - 1) * frameSize; 351 for (int32 i = 0; i < frameSize; i++) 353 front += frameSize; 354 back -= frameSize; 364 int32 frameSize = sampleSize * Format().u.raw_audio.channel_count; local 365 return (char*)buffer + frames * frameSize;
|
H A D | MediaTrackAudioSupplier.cpp | 291 int64 frameSize = sampleSize * fFormat.u.raw_audio.channel_count; local 292 return fFormat.u.raw_audio.buffer_size / frameSize; 308 int64 frameSize = sampleSize * fFormat.u.raw_audio.channel_count; local 309 source = (char*)source + frameSize * (position - sourceOffset); 310 target = (char*)target + frameSize * (position - targetOffset); 311 memcpy(target, source, frames * frameSize);
|
/haiku/src/kits/game/ |
H A D | SimpleGameSound.cpp | 61 size_t frameSize local 63 uchar * data = new uchar[inFrameCount * frameSize]; 64 memcpy(data, inData, inFrameCount * frameSize); 201 size_t frameSize local 203 char * data = new char[frames * frameSize]; 204 gsformat.buffer_size = frames * frameSize; 207 char * position = &data[framesTotal * frameSize];
|
H A D | PushGameSound.cpp | 29 size_t frameSize = get_sample_size(format->format) * format->channel_count; local 32 fPageSize = frameSize * inBufferFrameCount; 121 size_t frameSize = get_sample_size(format.format) * format.channel_count; local 122 size_t bufferFrameCount = fPageSize / frameSize;
|
/haiku/src/add-ons/media/plugins/rtsp_streamer/ |
H A D | rtsp.cpp | 60 unsigned frameSize, 65 void afterGettingFrame(unsigned frameSize, 415 void AdapterSink::afterGettingFrame(void* clientData, unsigned frameSize, argument 420 sink->afterGettingFrame(frameSize, numTruncatedBytes, 426 AdapterSink::afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, argument 429 fInputAdapter->Write(fReceiveBuffer, frameSize);
|
/haiku/src/apps/cortex/support/ |
H A D | MediaString.h | 131 size_t frameSize); 163 size_t frameSize);
|
H A D | MediaString.cpp | 926 size_t frameSize) 930 if (frameSize == media_encoded_audio_format::wildcard.frame_size) { 938 format.Format(s, frameSize); 1221 size_t frameSize) 1225 if (frameSize == media_encoded_video_format::wildcard.frame_size) { 1233 format.Format(s, frameSize); 925 forAudioFrameSize( size_t frameSize) argument 1220 forVideoFrameSize( size_t frameSize) argument
|
/haiku/headers/os/interface/ |
H A D | LayoutUtils.h | 44 static BRect MoveIntoFrame(BRect rect, BSize frameSize);
|
/haiku/src/kits/interface/ |
H A D | LayoutUtils.cpp | 236 \param frameSize The size of the frame the rect shall be moved into. The 241 BLayoutUtils::MoveIntoFrame(BRect rect, BSize frameSize) argument 246 if (rect.right > frameSize.width) 247 leftTop.x -= rect.right - frameSize.width; 252 if (rect.bottom > frameSize.height) 253 leftTop.y -= rect.bottom - frameSize.height;
|
/haiku/src/add-ons/kernel/drivers/network/ether/wb840/ |
H A D | device.c | 211 uint16 frameSize; local 222 frameSize = *num_bytes; 246 memcpy((void*)device->txBuffer[current], buffer, frameSize); 248 LOG((DEVICE_NAME ": %d bytes written\n", frameSize)); 254 device->txDescriptor[current].wb_ctl = WB_TXCTL_TLINK | frameSize;
|
/haiku/src/libs/compat/freebsd_network/ |
H A D | device_hooks.c | 252 uint32 frameSize; local 273 frameSize = ifp->if_mtu + (ETHER_HDR_LEN + ETHER_CRC_LEN); 274 return user_memcpy(arg, &frameSize, 4);
|
/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/ |
H A D | driver.c | 556 uint16 frameSize; local 578 frameSize = *_length; 581 memcpy(dev->tx_buffer+2, buffer, frameSize); 589 dev->tx_buffer[0] = (uint8)frameSize; 590 dev->tx_buffer[1] = (uint8)(frameSize >> 8); 593 status = usb->queue_bulk(dev->pipe_out, dev->tx_buffer, ((frameSize + 2) & 0x3f) ? frameSize + 2 : frameSize + 3, 617 *_length = frameSize;
|
/haiku/src/apps/soundrecorder/ |
H A D | RecorderWindow.cpp | 1356 int32 frameSize = (fPlayFormat.u.raw_audio.format & 0xf) 1362 = (frameSize * framesToWrite) + sizeof(header) - 8; 1376 header.format.block_align = frameSize; 1378 header.data_chunk.len = frameSize * framesToWrite; 1394 file.Write(data, frames * frameSize);
|