亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美精品 日韩| 国产福利一区二区三区视频在线 | 国产成a人亚洲精品| 亚洲精品视频在线看| 欧美一区在线视频| 大桥未久av一区二区三区中文| 亚洲国产日韩精品| 亚洲伦理在线免费看| 日韩一区二区在线观看视频播放| 亚洲一区二区在线免费观看视频| 久久精品男人天堂av| 欧美一区二区三区色| 色综合天天性综合| 丰满少妇在线播放bd日韩电影| 国产一区二区精品久久99 | 91免费版在线看| 麻豆国产精品一区二区三区| 亚洲欧美日韩综合aⅴ视频| 亚洲裸体xxx| 国产揄拍国内精品对白| 亚洲特黄一级片| 综合激情成人伊人| 亚洲国产精品黑人久久久| 中文字幕av一区 二区| 国产精品久久久久国产精品日日| 日本一区二区三区四区在线视频| 1024亚洲合集| 亚洲一区二区三区三| 日韩成人免费看| 精品一区二区在线免费观看| 国产精品亚洲专一区二区三区 | 欧美卡1卡2卡| 91精品国产手机| 久久色在线视频| 中文字幕日韩一区| 性感美女久久精品| 狠狠色综合播放一区二区| 成人综合婷婷国产精品久久免费| 一本色道亚洲精品aⅴ| 欧美电影在哪看比较好| 国产亚洲欧洲一区高清在线观看| ...av二区三区久久精品| 性欧美大战久久久久久久久| 国产综合色产在线精品| 色综合一区二区| 日韩午夜中文字幕| 亚洲欧洲精品一区二区精品久久久| 亚洲一区二区三区美女| 国产经典欧美精品| 欧美日韩综合一区| 久久久久高清精品| 亚洲成人av中文| 成人一区二区视频| 欧美一级片在线| 自拍偷拍欧美激情| 国产在线精品一区二区| 欧洲视频一区二区| 国产女人aaa级久久久级| 亚洲成人av一区二区| 丰满少妇在线播放bd日韩电影| 欧美日韩日本视频| 日韩一区有码在线| 精品制服美女久久| 欧美日韩一级二级三级| 国产精品理论在线观看| 毛片一区二区三区| 91成人在线精品| 久久九九久精品国产免费直播| 五月天一区二区三区| caoporn国产精品| 精品国产一区二区三区av性色| 亚洲一二三四在线观看| 成人性生交大合| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲精品成人精品456| 成人三级伦理片| 精品国产乱码久久久久久闺蜜| 五月婷婷久久综合| 色系网站成人免费| 中文字幕欧美日韩一区| 九九国产精品视频| 欧美一区三区四区| 亚洲成人免费在线观看| 91影院在线免费观看| 久久精品男人的天堂| 极品少妇xxxx偷拍精品少妇| 9191久久久久久久久久久| 一区二区三区不卡视频在线观看| 不卡一二三区首页| 国产欧美日韩亚州综合| 国产一区二区三区免费| 精品国内片67194| 日韩电影免费一区| 欧美日韩aaaaa| 亚洲成在线观看| 在线观看日韩毛片| 亚洲免费在线看| 色综合中文字幕国产| 国产亚洲va综合人人澡精品| 久久 天天综合| 精品久久久久久久人人人人传媒 | 一区二区三区在线观看视频| 99视频在线观看一区三区| 国产精品福利av| 成人高清在线视频| 中文字幕在线不卡一区| av欧美精品.com| 国产精品视频一二| 成人国产精品免费观看视频| 亚洲欧洲美洲综合色网| 99久久99久久久精品齐齐| 日韩毛片在线免费观看| 色哟哟精品一区| 亚洲一区二区精品视频| 欧美福利一区二区| 麻豆国产欧美日韩综合精品二区| 日韩欧美二区三区| 国产精品一级在线| 日韩一区在线播放| 欧美视频三区在线播放| 青青青爽久久午夜综合久久午夜| 精品久久免费看| 国产精品小仙女| 亚洲美女一区二区三区| 欧美日韩一区二区电影| 日本视频在线一区| 亚洲精品一线二线三线无人区| 国产精品1区2区| 中文字幕日韩一区| 欧美老年两性高潮| 国产一区二区三区四| 亚洲天堂成人网| 宅男在线国产精品| 国产电影一区在线| 一区二区三区四区不卡在线| 日韩视频在线观看一区二区| 国产成人av自拍| 一区二区三区中文字幕精品精品| 91麻豆精品国产91久久久久久 | 亚洲欧美国产毛片在线| 欧美日韩精品免费观看视频| 久久av老司机精品网站导航| 国产三级欧美三级| 欧美羞羞免费网站| 狠狠色丁香婷婷综合久久片| ●精品国产综合乱码久久久久| 3d动漫精品啪啪1区2区免费 | 666欧美在线视频| 国产.欧美.日韩| 午夜激情久久久| 国产午夜亚洲精品不卡| 欧美午夜在线观看| 国产乱对白刺激视频不卡| 亚洲国产美女搞黄色| 精品福利一二区| 欧美无乱码久久久免费午夜一区| 国产一区二区三区黄视频 | 成人黄色777网| 免费成人在线网站| 亚洲人成在线观看一区二区| 精品久久国产97色综合| 色视频成人在线观看免| 国产在线看一区| 五月婷婷综合网| 中文字幕一区二区在线播放 | 午夜视黄欧洲亚洲| 日本一二三不卡| 日韩欧美一级在线播放| 在线一区二区三区四区五区| 国产成人在线视频网址| 日韩高清不卡一区二区三区| 亚洲乱码中文字幕| 久久精品夜色噜噜亚洲a∨| 69堂成人精品免费视频| 日本道色综合久久| 国产69精品久久久久毛片| 毛片一区二区三区| 亚洲一级二级在线| 亚洲视频一区二区在线| 日本一区二区三区久久久久久久久不 | 亚洲欧洲日本在线| 欧美精品一区二区不卡| 欧美精品高清视频| 日本福利一区二区| 97精品久久久午夜一区二区三区| 国产一区二区不卡老阿姨| 五月婷婷综合网| 亚洲欧美日韩久久精品| 国产精品污网站| 久久蜜臀中文字幕| 欧美成人a在线| 欧美一区在线视频| 91麻豆精品国产91久久久资源速度| 91黄色免费观看| 91视频91自| 91麻豆国产福利精品| 94-欧美-setu| 97se亚洲国产综合自在线不卡| 成人动漫视频在线| 成人的网站免费观看|