h.264 SPS PPS解析源代码,C实现
来源:互联网 发布:uc聊天软件下载 编辑:程序博客网 时间:2024/05/18 01:31
......sps->profile_idc = get_bits(buf, 8); sps->constraint_set0_flag = get_1bit(buf); sps->constraint_set1_flag = get_1bit(buf); sps->constraint_set2_flag = get_1bit(buf); sps->constraint_set3_flag = get_1bit(buf); sps->reserved_zero_4bits = get_bits(buf, 4); sps->level_idc = get_bits(buf, 8); sps->seq_parameter_set_id = parse_ue(buf); profile_idc = sps->profile_idc; if( (profile_idc == 100) || (profile_idc == 110) || (profile_idc == 122) || (profile_idc == 244) || (profile_idc == 44) || (profile_idc == 83) || (profile_idc == 86) || (profile_idc == 118) ||\ (profile_idc == 128)) { sps->chroma_format_idc = parse_ue(buf); if(sps->chroma_format_idc == 3) { sps->separate_colour_plane_flag = get_1bit(buf); } sps->bit_depth_luma_minus8 = parse_ue(buf); sps->bit_depth_chroma_minus8 = parse_ue(buf); sps->qpprime_y_zero_transform_bypass_flag = get_1bit(buf); sps->seq_scaling_matrix_present_flag = get_1bit(buf); if(sps->seq_scaling_matrix_present_flag) { for(i=0; i<((sps->chroma_format_idc != 3)?8:12); i++) { sps->seq_scaling_list_present_flag[i] = get_1bit(buf); if(sps->seq_scaling_list_present_flag[i]) { if(i<6) { for(j=0; j<16; j++) { last_scale = 8; next_scale = 8; if(next_scale != 0) { delta_scale = parse_se(buf); next_scale = (last_scale + delta_scale + 256)%256; sps->UseDefaultScalingMatrix4x4Flag[i] = ((j == 0) && (next_scale == 0)); } sps->ScalingList4x4[i][j] = (next_scale == 0)?last_scale:next_scale; last_scale = sps->ScalingList4x4[i][j]; } } else {......
其余见下载页
http://download.csdn.net/detail/mantis_1984/7424711
- h.264 SPS PPS解析源代码,C实现
- H.264 SPS PPS I/P/B帧解析
- H.264码流SPS,PPS,IDR
- H.264的学习sps,pps
- H.264中的SPS和PPS
- H.264中的SPS和PPS
- H.264中的SPS和PPS
- H.264-SPS解析
- 如何解析SDP中包含的H.264的SPS和PPS串
- H264 sps pps 解析
- 简单看一看H.264中的SPS和PPS
- H.264中的SPS、PPS提取与作用
- 解析MP4文件中的sps和pps
- 解析MP4文件中的sps和pps
- nginx_rtmp中解析sps和pps
- SPS PPS
- 音视频数据处理(21)--- H.264编码SPS、PPS介绍
- H264视频的sps和pps解析和哥伦布编码
- 用 Python 替代 Bash 脚本
- Ubuntu 12.04中文输入法的安装
- 一个有意思的小程序,考验多线程问题能力
- 收集一些jQueryMobile的插件和案例
- maven添加jar文件到本地库
- h.264 SPS PPS解析源代码,C实现
- PMIC driver on Android
- UML 博客
- 贪心——NYOJ 题目6 喷水装置(一)
- 串
- MySQL数据切分的相关概念和原理详解
- asp.net图片缩略和加水印程序
- ScrollView 监听当前的高度改变
- jeecms安装配置