Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: media/midi/midi_message_util.h

Issue 1121363002: GN Windows component build fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@component2
Patch Set: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/midi/midi_message_queue.h ('k') | media/midi/midi_port_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_ 5 #ifndef MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_
6 #define MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_ 6 #define MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "media/base/media_export.h" 12 #include "media/midi/midi_export.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 // Returns the length of a MIDI message in bytes. Never returns 4 or greater. 16 // Returns the length of a MIDI message in bytes. Never returns 4 or greater.
17 // Returns 0 if |status_byte| is: 17 // Returns 0 if |status_byte| is:
18 // - not a valid status byte, namely data byte. 18 // - not a valid status byte, namely data byte.
19 // - the MIDI System Exclusive message. 19 // - the MIDI System Exclusive message.
20 // - the End of System Exclusive message. 20 // - the End of System Exclusive message.
21 MEDIA_EXPORT size_t GetMidiMessageLength(uint8 status_byte); 21 MIDI_EXPORT size_t GetMidiMessageLength(uint8 status_byte);
22 22
23 const uint8 kSysExByte = 0xf0; 23 const uint8 kSysExByte = 0xf0;
24 const uint8 kEndOfSysExByte = 0xf7; 24 const uint8 kEndOfSysExByte = 0xf7;
25 25
26 const uint8 kSysMessageBitMask = 0xf0; 26 const uint8 kSysMessageBitMask = 0xf0;
27 const uint8 kSysMessageBitPattern = 0xf0; 27 const uint8 kSysMessageBitPattern = 0xf0;
28 const uint8 kSysRTMessageBitMask = 0xf8; 28 const uint8 kSysRTMessageBitMask = 0xf8;
29 const uint8 kSysRTMessageBitPattern = 0xf8; 29 const uint8 kSysRTMessageBitPattern = 0xf8;
30 30
31 } // namespace media 31 } // namespace media
32 32
33 #endif // MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_ 33 #endif // MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_
OLDNEW
« no previous file with comments | « media/midi/midi_message_queue.h ('k') | media/midi/midi_port_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698