资源简介
android 视频播放器源码

代码片段和文件信息
/*
* Copyright (C) 2009 The Sipdroid Open Source Project
*
* This file is part of Sipdroid (http://www.sipdroid.org)
*
* Sipdroid 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 3 of the License or
* (at your option) any later version.
*
* This source code 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 source code; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
#include
#include
#include
#include
#include
#include
#include
#define LOG_TAG “bv16“ // text for log tag
#ifdef __cplusplus
extern “C“ {
#endif
#include “typedef.h“
#include “bvcommon.h“
#include “bv16cnst.h“
#include “bv16strct.h“
#include “bv16.h“
#include “utility.h“
#if G192BITSTREAM
#include “g192.h“
#else
#include “bitpack.h“
#endif
#include “memutil.h“
#ifdef __cplusplus
}
#endif
// the header length of the RTP frame (must skip when en/decoding)
#define RTP_HDR_SIZE 12
// size of BV16 packed bitstream (RFC4298)
#define BITSTREAM_SIZE 10
static int codec_open = 0;
void *enc_bs;
void *dec_bs;
void *enc_state;
void *dec_state;
jshort enc_buffer[FRSZ];
jbyte enc_output_buffer[FRSZ];
jbyte dec_buffer[FRSZ];
jshort dec_output_buffer[FRSZ];
int sizestate sizebitstream frsz;
static JavaVM *gJavaVM;
const char *kInterfacePath = “org/sipdroid/pjlib/BV16Fixedp“;
extern “C“
JNIEXPORT jint JNICALL Java_org_sipdroid_codecs_BV16_open
(JNIEnv *env jobject obj) {
int tmp;
if (codec_open++ != 0)
return (jint)0;
sizebitstream = sizeof(struct BV16_Bit_Stream);
frsz = FRSZ;
sizestate = sizeof(struct BV16_Encoder_State);
enc_state = allocWord16(0sizeof(struct BV16_Encoder_State)/2-1);
Reset_BV16_Encoder((struct BV16_Encoder_State*)enc_state);
sizestate = sizeof(struct BV16_Decoder_State);
dec_state = allocWord16(0sizeof(struct BV16_Decoder_State)/2-1);
Reset_BV16_Decoder((struct BV16_Decoder_State*)dec_state);
enc_bs = allocWord16(0sizebitstream/2-1);
dec_bs = allocWord16(0sizebitstream/2-1);
return (jint)0;
}
extern “C“
JNIEXPORT jint JNICALL Java_org_sipdroid_codecs_BV16_encode
(JNIEnv *env jobject obj jshortArray lin jint offset jbyteArray encoded jint size) {
int i;
unsigned int lin_pos = 0;
if (!codec_open)
return 0;
// __android_log_print(ANDROID_LOG_DEBUG LOG_TAG
// “encoding frame size: %d\toffset: %d\n“ size offset);
for (i = 0; i < size; i+=FRSZ) {
// __android_log_print(ANDROID_LOG_DEBUG LOG_TAG
//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-05-13 14:22 Android客户端源码\
文件 289 2010-11-04 17:15 Android客户端源码\.classpath
文件 841 2010-11-04 17:15 Android客户端源码\.project
文件 1148 2010-11-04 17:15 Android客户端源码\ADDITIONAL_TERMS.txt
文件 8499 2010-11-04 17:15 Android客户端源码\AndroidManifest.xm
目录 0 2013-05-13 14:22 Android客户端源码\assets\
文件 22545 2010-11-04 17:10 Android客户端源码\assets\alerting
文件 219 2010-11-04 17:15 Android客户端源码\BUILD.txt
目录 0 2013-05-13 14:22 Android客户端源码\jni\
文件 9397 2010-11-04 17:10 Android客户端源码\jni\Android.mk
文件 331 2010-11-04 17:10 Android客户端源码\jni\Application.mk
文件 5136 2010-11-04 17:10 Android客户端源码\jni\bv16_jni.cpp
目录 0 2013-05-13 14:22 Android客户端源码\jni\bx16_fixedp\
目录 0 2013-05-13 14:22 Android客户端源码\jni\bx16_fixedp\bv16\
文件 8544 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bitpack.c
文件 1892 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bitpack.h
文件 8542 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bv.c
文件 2036 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bv16.h
文件 6070 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bv16cnst.h
文件 5585 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bv16externs.h
文件 3673 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\bv16strct.h
文件 19975 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\coarptch.c
文件 5434 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\decoder.c
文件 6800 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\encoder.c
文件 5556 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\excdec.c
文件 14963 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\excquan.c
文件 4990 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\fineptch.c
文件 4108 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\g192.c
文件 1850 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\g192.h
文件 5099 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\gaindec.c
文件 4892 2010-11-04 17:06 Android客户端源码\jni\bx16_fixedp\bv16\gainquan.c
............此处省略840个文件信息
相关资源
- android带百分比进度条的文件上传,使
- 美食天下项目Android版源码和Web版源码
- Android之自定义ToggleButton使用
- Android非常漂亮的登录界面
- pc与android通过usb socket实现手机通信
- android毕业设计
- 百度地图自定义Markerandroid
- Android分区工具包
- android-support-v4.jar已打包进去源代码
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- android 视频播放器 项目和原码
- Android【动画】【特效】 17种动画特效
- 基于Android智能家居详细设计(经典)
- android通过JDBC连接Mysql数据库
- Android通讯录的源代码
- android 瀑布流Demo
- 指纹传感器FPC1080在android下的驱动
- delphi xe5 android 调用照相机摄像头拍照
- Android手机连连看游戏源码
- android-sdk-windows v2.3离线完整版
- android 底部弹出菜单(带透明背景)
- Android工程模式简介.rar
- Android蓝牙和Cors网络开发源码
- Android powermanger wakelock
- Android v7的一些jar包
- 最新android supportV7包
- android图片压缩工具类分享
- 单机搭建Android(解决Network is unreach
- Android上监听收到的短信(SMS)
评论
共有 条评论