亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? avinfo.c

?? BlueZ源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * *  BlueZ - Bluetooth protocol stack for Linux * *  Copyright (C) 2006-2007  Nokia Corporation *  Copyright (C) 2004-2008  Marcel Holtmann <marcel@holtmann.org> * * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA * */#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <stdio.h>#include <errno.h>#include <ctype.h>#include <fcntl.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <getopt.h>#include <stdint.h>#include <sys/param.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <bluetooth/bluetooth.h>#include <bluetooth/hci.h>#include <bluetooth/hci_lib.h>#include <bluetooth/l2cap.h>#define AVDTP_PSM			25/* Commands */#define AVDTP_DISCOVER			0x01#define AVDTP_GET_CAPABILITIES		0x02#define AVDTP_PKT_TYPE_SINGLE		0x00#define AVDTP_MSG_TYPE_COMMAND		0x00/* SEP capability categories */#define AVDTP_MEDIA_TRANSPORT		0x01#define AVDTP_REPORTING			0x02#define AVDTP_RECOVERY			0x03#define AVDTP_CONTENT_PROTECTION	0x04#define AVDTP_HEADER_COMPRESSION	0x05#define AVDTP_MULTIPLEXING		0x06#define AVDTP_MEDIA_CODEC		0x07/* SEP types definitions */#define AVDTP_SEP_TYPE_SOURCE		0x00#define AVDTP_SEP_TYPE_SINK		0x01/* Media types definitions */#define AVDTP_MEDIA_TYPE_AUDIO		0x00#define AVDTP_MEDIA_TYPE_VIDEO		0x01#define AVDTP_MEDIA_TYPE_MULTIMEDIA	0x02#define A2DP_CODEC_SBC			0x00#define A2DP_CODEC_MPEG12		0x01#define A2DP_CODEC_MPEG24		0x02#define A2DP_CODEC_ATRAC		0x03#define SBC_SAMPLING_FREQ_16000		(1 << 3)#define SBC_SAMPLING_FREQ_32000		(1 << 2)#define SBC_SAMPLING_FREQ_44100		(1 << 1)#define SBC_SAMPLING_FREQ_48000		(1 << 0)#define SBC_CHANNEL_MODE_MONO		(1 << 3)#define SBC_CHANNEL_MODE_DUAL_CHANNEL	(1 << 2)#define SBC_CHANNEL_MODE_STEREO		(1 << 1)#define SBC_CHANNEL_MODE_JOINT_STEREO	(1 << 0)#define SBC_BLOCK_LENGTH_4		(1 << 3)#define SBC_BLOCK_LENGTH_8		(1 << 2)#define SBC_BLOCK_LENGTH_12		(1 << 1)#define SBC_BLOCK_LENGTH_16		(1 << 0)#define SBC_SUBBANDS_4			(1 << 1)#define SBC_SUBBANDS_8			(1 << 0)#define SBC_ALLOCATION_SNR		(1 << 1)#define SBC_ALLOCATION_LOUDNESS		(1 << 0)#define MPEG_CHANNEL_MODE_MONO		(1 << 3)#define MPEG_CHANNEL_MODE_DUAL_CHANNEL	(1 << 2)#define MPEG_CHANNEL_MODE_STEREO	(1 << 1)#define MPEG_CHANNEL_MODE_JOINT_STEREO	(1 << 0)#define MPEG_LAYER_MP1			(1 << 2)#define MPEG_LAYER_MP2			(1 << 1)#define MPEG_LAYER_MP3			(1 << 0)#define MPEG_SAMPLING_FREQ_16000	(1 << 5)#define MPEG_SAMPLING_FREQ_22050	(1 << 4)#define MPEG_SAMPLING_FREQ_24000	(1 << 3)#define MPEG_SAMPLING_FREQ_32000	(1 << 2)#define MPEG_SAMPLING_FREQ_44100	(1 << 1)#define MPEG_SAMPLING_FREQ_48000	(1 << 0)#define MPEG_BIT_RATE_VBR		0x8000#define MPEG_BIT_RATE_320000		0x4000#define MPEG_BIT_RATE_256000		0x2000#define MPEG_BIT_RATE_224000		0x1000#define MPEG_BIT_RATE_192000		0x0800#define MPEG_BIT_RATE_160000		0x0400#define MPEG_BIT_RATE_128000		0x0200#define MPEG_BIT_RATE_112000		0x0100#define MPEG_BIT_RATE_96000		0x0080#define MPEG_BIT_RATE_80000		0x0040#define MPEG_BIT_RATE_64000		0x0020#define MPEG_BIT_RATE_56000		0x0010#define MPEG_BIT_RATE_48000		0x0008#define MPEG_BIT_RATE_40000		0x0004#define MPEG_BIT_RATE_32000		0x0002#define MPEG_BIT_RATE_FREE		0x0001struct avdtp_service_capability {	uint8_t category;	uint8_t length;	uint8_t data[0];} __attribute__ ((packed));#if __BYTE_ORDER == __LITTLE_ENDIANstruct avdtp_header {	uint8_t message_type:2;	uint8_t packet_type:2;	uint8_t transaction:4;	uint8_t signal_id:6;	uint8_t rfa0:2;} __attribute__ ((packed));struct seid_info {	uint8_t rfa0:1;	uint8_t inuse:1;	uint8_t seid:6;	uint8_t rfa2:3;	uint8_t type:1;	uint8_t media_type:4;} __attribute__ ((packed));struct seid_req {	struct avdtp_header header;	uint8_t rfa0:2;	uint8_t acp_seid:6;} __attribute__ ((packed));struct avdtp_media_codec_capability {	uint8_t rfa0:4;	uint8_t media_type:4;	uint8_t media_codec_type;	uint8_t data[0];} __attribute__ ((packed));struct sbc_codec_cap {	struct avdtp_media_codec_capability cap;	uint8_t channel_mode:4;	uint8_t frequency:4;	uint8_t allocation_method:2;	uint8_t subbands:2;	uint8_t block_length:4;	uint8_t min_bitpool;	uint8_t max_bitpool;} __attribute__ ((packed));struct mpeg_codec_cap {	struct avdtp_media_codec_capability cap;	uint8_t channel_mode:4;	uint8_t crc:1;	uint8_t layer:3;	uint8_t frequency:6;	uint8_t mpf:1;	uint8_t rfa:1;	uint16_t bitrate;} __attribute__ ((packed));#elif __BYTE_ORDER == __BIG_ENDIANstruct avdtp_header {	uint8_t transaction:4;	uint8_t packet_type:2;	uint8_t message_type:2;	uint8_t rfa0:2;	uint8_t signal_id:6;} __attribute__ ((packed));struct seid_info {	uint8_t seid:6;	uint8_t inuse:1;	uint8_t rfa0:1;	uint8_t media_type:4;	uint8_t type:1;	uint8_t rfa2:3;} __attribute__ ((packed));struct seid_req {	struct avdtp_header header;	uint8_t acp_seid:6;	uint8_t rfa0:2;} __attribute__ ((packed));struct avdtp_media_codec_capability {	uint8_t media_type:4;	uint8_t rfa0:4;	uint8_t media_codec_type;	uint8_t data[0];} __attribute__ ((packed));struct sbc_codec_cap {	struct avdtp_media_codec_capability cap;	uint8_t frequency:4;	uint8_t channel_mode:4;	uint8_t block_length:4;	uint8_t subbands:2;	uint8_t allocation_method:2;	uint8_t min_bitpool;	uint8_t max_bitpool;} __attribute__ ((packed));struct mpeg_codec_cap {	struct avdtp_media_codec_capability cap;	uint8_t layer:3;	uint8_t crc:1;	uint8_t channel_mode:4;	uint8_t rfa:1;	uint8_t mpf:1;	uint8_t frequency:6;	uint16_t bitrate;} __attribute__ ((packed));#else#error "Unknown byte order"#endifstruct discover_resp {	struct avdtp_header header;	struct seid_info seps[0];} __attribute__ ((packed));struct getcap_resp {	struct avdtp_header header;	uint8_t caps[0];} __attribute__ ((packed));static void print_mpeg12(struct mpeg_codec_cap *mpeg){	printf("\tMedia Codec: MPEG12\n\t\tChannel Modes: ");	if (mpeg->channel_mode & MPEG_CHANNEL_MODE_MONO)		printf("Mono ");	if (mpeg->channel_mode & MPEG_CHANNEL_MODE_DUAL_CHANNEL)		printf("DualChannel ");	if (mpeg->channel_mode & MPEG_CHANNEL_MODE_STEREO)		printf("Stereo ");	if (mpeg->channel_mode & MPEG_CHANNEL_MODE_JOINT_STEREO)		printf("JointStereo");	printf("\n\t\tFrequencies: ");	if (mpeg->frequency & MPEG_SAMPLING_FREQ_16000)		printf("16Khz ");	if (mpeg->frequency & MPEG_SAMPLING_FREQ_22050)		printf("22.05Khz ");	if (mpeg->frequency & MPEG_SAMPLING_FREQ_24000)		printf("24Khz ");	if (mpeg->frequency & MPEG_SAMPLING_FREQ_32000)		printf("32Khz ");	if (mpeg->frequency & MPEG_SAMPLING_FREQ_44100)		printf("44.1Khz ");	if (mpeg->frequency & MPEG_SAMPLING_FREQ_48000)		printf("48Khz ");	printf("\n\t\tCRC: %s", mpeg->crc ? "Yes" : "No");	printf("\n\t\tLayer: ");	if (mpeg->layer & MPEG_LAYER_MP1)		printf("1 ");	if (mpeg->layer & MPEG_LAYER_MP2)		printf("2 ");	if (mpeg->layer & MPEG_LAYER_MP3)		printf("3 ");	printf("\n\t\tBit Rate: ");	if (mpeg->bitrate & MPEG_BIT_RATE_FREE)		printf("Free format");	else {		if (mpeg->bitrate & MPEG_BIT_RATE_32000)			printf("32kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_40000)			printf("40kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_48000)			printf("48kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_56000)			printf("56kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_64000)			printf("64kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_80000)			printf("80kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_96000)			printf("96kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_112000)			printf("112kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_128000)			printf("128kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_160000)			printf("160kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_192000)			printf("192kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_224000)			printf("224kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_256000)			printf("256kbps ");		if (mpeg->bitrate & MPEG_BIT_RATE_320000)			printf("320kbps ");	}	printf("\n\t\tVBR: %s", mpeg->bitrate & MPEG_BIT_RATE_VBR ? "Yes" :		"No");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久夜色精品国产网站| 国产精品夫妻自拍| 秋霞午夜av一区二区三区| 免费观看在线色综合| 欧美日韩中字一区| 亚洲一区精品在线| 成人免费观看av| 日本一区二区三区电影| 国产精品一区二区三区网站| 欧美精品一区二区三区久久久| 一区二区三区四区视频精品免费 | 欧美日韩亚洲不卡| 日本在线不卡一区| 久久天天做天天爱综合色| 成人免费看片app下载| 洋洋av久久久久久久一区| 884aa四虎影成人精品一区| 毛片av一区二区三区| 国产亚洲精品7777| 色综合久久久久综合体桃花网| 亚洲一区二区三区免费视频| 欧美一级二级三级蜜桃| 高清不卡在线观看av| 亚洲一线二线三线视频| 久久综合九色欧美综合狠狠| aaa欧美大片| 欧美aaa在线| 亚洲欧洲精品天堂一级| 日韩一区二区影院| 99精品黄色片免费大全| 奇米精品一区二区三区在线观看| 国产精品青草久久| 制服丝袜激情欧洲亚洲| 成人av手机在线观看| 五月婷婷另类国产| 国产精品免费视频一区| 欧美一区二区免费视频| 91小视频在线| 国产精品自拍三区| 视频精品一区二区| 亚洲欧洲另类国产综合| 欧美电视剧免费观看| 91国产视频在线观看| 国产一区二区福利视频| 日韩极品在线观看| 亚洲人亚洲人成电影网站色| 欧美电视剧在线看免费| 欧美日韩国产乱码电影| youjizz国产精品| 美女免费视频一区| 亚洲.国产.中文慕字在线| 国产女人水真多18毛片18精品视频| 欧美午夜片在线观看| 成人小视频在线观看| 久久精品国产99国产精品| 亚洲自拍与偷拍| 国产精品色在线观看| 久久亚洲捆绑美女| 日韩欧美专区在线| 欧美日韩国产电影| 色88888久久久久久影院按摩| 国产精品1区2区3区在线观看| 日日摸夜夜添夜夜添精品视频| 亚洲欧美日韩中文字幕一区二区三区| 久久女同互慰一区二区三区| 91精品国产高清一区二区三区| 日本高清视频一区二区| 91麻豆文化传媒在线观看| 成人一区在线观看| 国产精品一区三区| 国产麻豆精品在线观看| 狠狠色丁香久久婷婷综合_中| 日韩av一区二区在线影视| 亚洲6080在线| 日韩国产精品久久久| 午夜精品福利久久久| 亚洲一卡二卡三卡四卡| 亚洲午夜成aⅴ人片| 亚洲综合清纯丝袜自拍| 亚洲一区二区精品久久av| 亚洲一二三四在线观看| 亚洲一二三区不卡| 午夜亚洲福利老司机| 日本伊人色综合网| 日韩国产欧美视频| 久久99热国产| 国产黄色精品网站| a级精品国产片在线观看| 91免费看`日韩一区二区| 日本韩国视频一区二区| 在线观看日韩国产| 91精品国产综合久久久久久久久久| 制服丝袜av成人在线看| 精品久久人人做人人爱| 欧美国产禁国产网站cc| 中文字幕一区二区不卡 | 色吊一区二区三区| 欧美性猛交一区二区三区精品| 在线观看国产精品网站| 538在线一区二区精品国产| 日韩欧美一二三四区| 久久久噜噜噜久久人人看 | 91丨porny丨在线| 欧美日韩精品一区二区| 日韩视频一区在线观看| 国产日产欧美精品一区二区三区| 中文字幕亚洲欧美在线不卡| 亚洲影视在线观看| 精品亚洲欧美一区| 91网站视频在线观看| 欧美精品在线视频| 久久久久久久国产精品影院| 综合久久国产九一剧情麻豆| 五月激情综合婷婷| 成人在线视频一区二区| 欧美日本不卡视频| 国产性色一区二区| 亚洲丶国产丶欧美一区二区三区| 国产一区中文字幕| 色国产综合视频| 久久久久久麻豆| 亚洲国产综合在线| 高清在线成人网| 3751色影院一区二区三区| 中文字幕av不卡| 日韩1区2区3区| 97精品国产97久久久久久久久久久久| 欧美精品日韩精品| 亚洲人成网站色在线观看| 蜜臀a∨国产成人精品| 91在线视频播放地址| 久久综合久久综合久久综合| 亚洲一区二区三区自拍| 成人av在线影院| 日韩情涩欧美日韩视频| 一区二区欧美国产| 大桥未久av一区二区三区中文| 4438成人网| 亚洲一二三级电影| 91蜜桃婷婷狠狠久久综合9色| 欧美大片顶级少妇| 日本亚洲三级在线| 欧美性大战久久久| 国产精品成人免费在线| 国产精品一区不卡| 欧美一区二区黄色| 亚洲综合精品自拍| 91色在线porny| 国产精品三级av| 国产成人自拍网| 精品欧美一区二区在线观看| 亚洲大尺度视频在线观看| 91亚洲永久精品| 成人免费在线视频观看| 春色校园综合激情亚洲| 日韩免费观看高清完整版在线观看| 亚洲福利视频一区| 欧美唯美清纯偷拍| 一区二区三区在线观看视频| 99久久久无码国产精品| 国产精品久久777777| 成人妖精视频yjsp地址| 国产欧美1区2区3区| 国产成人亚洲精品狼色在线 | 国产精品素人一区二区| 国产精品主播直播| 国产午夜亚洲精品理论片色戒 | 中文字幕精品—区二区四季| 国产九九视频一区二区三区| 久久男人中文字幕资源站| 精品亚洲porn| 精品国产伦一区二区三区免费| 日韩不卡免费视频| 精品三级av在线| 久久电影网电视剧免费观看| 精品剧情在线观看| 国产精品影视在线观看| 国产色91在线| 成人av午夜电影| 亚洲色图都市小说| 欧美日韩激情在线| 久久www免费人成看片高清| 26uuu久久综合| 成人av网站在线观看免费| 亚洲人成人一区二区在线观看| 91黄视频在线观看| 午夜久久久久久久久久一区二区| 91 com成人网| 国产最新精品免费| 国产精品久久久久久妇女6080 | 亚洲高清免费观看高清完整版在线观看 | 日韩高清欧美激情| 日韩欧美一区二区视频| 国产一区二区视频在线播放| 国产精品午夜在线| 欧美日韩在线一区二区| 麻豆国产精品777777在线| 欧美高清在线一区二区| 欧美系列亚洲系列| 国产乱子轮精品视频|