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

Side by Side Diff: media/mp3/mp3_stream_parser.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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 | Annotate | Revision Log
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 #include "media/mp3/mp3_stream_parser.h" 5 #include "media/mp3/mp3_stream_parser.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "media/base/bit_reader.h" 10 #include "media/base/bit_reader.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Derived from: http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html 89 // Derived from: http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html
90 static const int kSampleRateMap[4][4] = { 90 static const int kSampleRateMap[4][4] = {
91 // { V2.5, reserved, V2, V1 } 91 // { V2.5, reserved, V2, V1 }
92 { 11025, 0, 22050, 44100 }, 92 { 11025, 0, 22050, 44100 },
93 { 12000, 0, 24000, 48000 }, 93 { 12000, 0, 24000, 48000 },
94 { 8000, 0, 16000, 32000 }, 94 { 8000, 0, 16000, 32000 },
95 { 0, 0, 0, 0 } 95 { 0, 0, 0, 0 }
96 }; 96 };
97 97
98 // Frame header field constants. 98 // Frame header field constants.
99 static const int kVersion1 = 3;
100 static const int kVersion2 = 2; 99 static const int kVersion2 = 2;
101 static const int kVersionReserved = 1; 100 static const int kVersionReserved = 1;
102 static const int kVersion2_5 = 0; 101 static const int kVersion2_5 = 0;
103 static const int kLayerReserved = 0; 102 static const int kLayerReserved = 0;
104 static const int kLayer1 = 3; 103 static const int kLayer1 = 3;
105 static const int kLayer2 = 2; 104 static const int kLayer2 = 2;
106 static const int kLayer3 = 1; 105 static const int kLayer3 = 1;
107 static const int kBitrateFree = 0; 106 static const int kBitrateFree = 0;
108 static const int kBitrateBad = 0xf; 107 static const int kBitrateBad = 0xf;
109 static const int kSampleRateReserved = 3; 108 static const int kSampleRateReserved = 3;
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 588
590 if (end_of_segment) { 589 if (end_of_segment) {
591 in_media_segment_ = false; 590 in_media_segment_ = false;
592 end_of_segment_cb_.Run(); 591 end_of_segment_cb_.Run();
593 } 592 }
594 593
595 return true; 594 return true;
596 } 595 }
597 596
598 } // namespace media 597 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698