Clean up include files for third_party libs

Change-Id: Ie1b48d3c22d646a58472d759963f98614a444cce
This commit is contained in:
KongQun Yang 2014-10-01 12:35:23 -07:00
parent f907cb18f8
commit c1b47e256b
6 changed files with 37 additions and 43 deletions

View File

@ -6,10 +6,10 @@
#include "app/libcrypto_threading.h" #include "app/libcrypto_threading.h"
#include <openssl/crypto.h>
#include <pthread.h> #include <pthread.h>
#include <vector>
#include "openssl/crypto.h" #include <vector>
namespace { namespace {

View File

@ -8,6 +8,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <errno.h> #include <errno.h>
#include <gflags/gflags.h>
#include <strings.h> #include <strings.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h> #include <unistd.h>
@ -16,7 +17,6 @@
#include "base/logging.h" #include "base/logging.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "gflags/gflags.h"
// TODO(tinskip): Adapt to work with winsock. // TODO(tinskip): Adapt to work with winsock.

View File

@ -4,7 +4,7 @@
// license that can be found in the LICENSE file or at // license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd // https://developers.google.com/open-source/licenses/bsd
#include "adts_header.h" #include "media/formats/mp2t/adts_header.h"
#include "media/base/bit_reader.h" #include "media/base/bit_reader.h"
#include "media/formats/mp2t/mp2t_common.h" #include "media/formats/mp2t/mp2t_common.h"

View File

@ -5,15 +5,9 @@
# https://developers.google.com/open-source/licenses/bsd # https://developers.google.com/open-source/licenses/bsd
{ {
'variables': { 'includes': [
# Compile as chromium code to enable warnings and warnings-as-errors. '../../../common.gypi',
'chromium_code': 1, ],
},
'target_defaults': {
'include_dirs': [
'../../..',
],
},
'targets': [ 'targets': [
{ {
'target_name': 'wvm', 'target_name': 'wvm',
@ -25,7 +19,7 @@
'dependencies': [ 'dependencies': [
'../../base/media_base.gyp:base', '../../base/media_base.gyp:base',
'../../filters/filters.gyp:filters', '../../filters/filters.gyp:filters',
'../../formats/mp2t/mp2t.gyp:mp2t', '../../formats/mp2t/mp2t.gyp:mp2t',
'../mpeg/mpeg.gyp:mpeg', '../mpeg/mpeg.gyp:mpeg',
], ],
}, },

View File

@ -2,16 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include <stdio.h> #include "media/formats/wvm/wvm_media_parser.h"
#include <stdlib.h>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <vector> #include <vector>
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "media/base/audio_stream_info.h"
#include "media/base/media_sample.h"
#include "media/base/video_stream_info.h"
#include "media/formats/mp2t/adts_header.h" #include "media/formats/mp2t/adts_header.h"
#include "media/formats/wvm/wvm_media_parser.h"
#define HAS_HEADER_EXTENSION(x) ((x != 0xBC) && (x != 0xBE) && (x != 0xBF) \ #define HAS_HEADER_EXTENSION(x) ((x != 0xBC) && (x != 0xBE) && (x != 0xBF) \
&& (x != 0xF0) && (x != 0xF2) && (x != 0xF8) \ && (x != 0xF0) && (x != 0xF2) && (x != 0xF8) \
@ -41,28 +42,28 @@ const uint32_t kPesStreamIdVideo = 0xE0;
const uint32_t kPesStreamIdAudioMask = 0xE0; const uint32_t kPesStreamIdAudioMask = 0xE0;
const uint32_t kPesStreamIdAudio = 0xC0; const uint32_t kPesStreamIdAudio = 0xC0;
const uint32_t kVersion4 = 4; const uint32_t kVersion4 = 4;
const int kAdtsHeaderMinSize = 7; const int kAdtsHeaderMinSize = 7;
const uint8_t kAacSampleSizeBits = 16; const uint8_t kAacSampleSizeBits = 16;
// Applies to all video streams. // Applies to all video streams.
const uint8_t kNaluLengthSize = 4; // unit is bytes. const uint8_t kNaluLengthSize = 4; // unit is bytes.
// Placeholder sampling frequency for all audio streams, which // Placeholder sampling frequency for all audio streams, which
// will be overwritten after filter parsing. // will be overwritten after filter parsing.
const uint32_t kDefaultSamplingFrequency = 100; const uint32_t kDefaultSamplingFrequency = 100;
enum Type { enum Type {
Type_void = 0, Type_void = 0,
Type_uint8 = 1, Type_uint8 = 1,
Type_int8 = 2, Type_int8 = 2,
Type_uint16 = 3, Type_uint16 = 3,
Type_int16 = 4, Type_int16 = 4,
Type_uint32 = 5, Type_uint32 = 5,
Type_int32 = 6, Type_int32 = 6,
Type_uint64 = 7, Type_uint64 = 7,
Type_int64 = 8, Type_int64 = 8,
Type_string = 9, Type_string = 9,
Type_BinaryData = 10 Type_BinaryData = 10
}; };
} } // namespace
namespace edash_packager { namespace edash_packager {
namespace media { namespace media {

View File

@ -6,18 +6,17 @@
#ifndef MEDIA_FORMATS_WVM_WVM_MEDIA_PARSER_H_ #ifndef MEDIA_FORMATS_WVM_WVM_MEDIA_PARSER_H_
#define MEDIA_FORMATS_WVM_WVM_MEDIA_PARSER_H_ #define MEDIA_FORMATS_WVM_WVM_MEDIA_PARSER_H_
#include <openssl/sha.h>
#include <deque> #include <deque>
#include <map> #include <map>
#include <string> #include <string>
#include <vector> #include <vector>
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "media/base/media_parser.h" #include "media/base/media_parser.h"
#include "media/base/audio_stream_info.h"
#include "media/base/video_stream_info.h"
#include "media/base/media_sample.h"
#include "media/base/network_util.h" #include "media/base/network_util.h"
#include "media/filters/h264_byte_to_unit_stream_converter.h" #include "media/filters/h264_byte_to_unit_stream_converter.h"
#include "openssl/sha.h"
namespace edash_packager { namespace edash_packager {
namespace media { namespace media {