OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_AUDIO_SHARED_MEMORY_UTIL_H_ | |
6 #define MEDIA_AUDIO_SHARED_MEMORY_UTIL_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/shared_memory.h" | |
10 #include "media/base/media_export.h" | |
11 | |
12 namespace media { | |
13 | |
14 // Value sent by the controller to the renderer in low-latency mode | |
15 // indicating that the stream is paused. | |
16 enum { | |
17 kPauseMark = -1 | |
scherkus (not reviewing)
2012/08/14 19:27:33
don't indent OR even better just one-line this
DaleCurtis
2012/08/15 01:11:14
Done.
| |
18 }; | |
19 | |
20 // Functions that handle data buffer passed between processes in the shared | |
21 // memory. Called on both IPC sides. | |
22 | |
23 MEDIA_EXPORT uint32 TotalSharedMemorySizeInBytes(uint32 packet_size); | |
24 MEDIA_EXPORT uint32 PacketSizeSizeInBytes(uint32 shared_memory_created_size); | |
25 MEDIA_EXPORT uint32 GetActualDataSizeInBytes(base::SharedMemory* shared_memory, | |
26 uint32 shared_memory_size); | |
27 MEDIA_EXPORT void SetActualDataSizeInBytes(base::SharedMemory* shared_memory, | |
28 uint32 shared_memory_size, | |
29 uint32 actual_data_size); | |
30 MEDIA_EXPORT void SetUnknownDataSize(base::SharedMemory* shared_memory, | |
31 uint32 shared_memory_size); | |
32 MEDIA_EXPORT bool IsUnknownDataSize(base::SharedMemory* shared_memory, | |
33 uint32 shared_memory_size); | |
34 | |
35 } // namespace media | |
36 | |
37 #endif // MEDIA_AUDIO_SHARED_MEMORY_UTIL_H_ | |
OLD | NEW |