- 博客(18)
- 资源 (23)
- 收藏
- 关注
原创 FFmepg 多线程解码历程 - 6:frame_thread_init
//ff_thread_init选择帧线程初始化,就会进入frame_thread_initstatic int frame_thread_init(AVCodecContext *avctx){ int thread_count = avctx->thread_count; const AVCodec *codec = avctx->codec; AVC
2013-03-30 15:25:10 5131
原创 FFmepg 多线程解码历程 - 5: ff_thread_init
//用来判断是帧还是片线程初始化int ff_thread_init(AVCodecContext *avctx){ if (avctx->thread_opaque) { av_log(avctx, AV_LOG_ERROR, "avcodec_thread_init is ignored after avcodec_open\n"); re
2013-03-30 15:00:18 2383 1
原创 FFmepg 多线程解码历程 - 4:avcodec_open2
//在初始化codec后,接下来就是打开解码器int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options){ int ret = 0; AVDictionary *tmp = NULL; if (avcod
2013-03-30 14:50:28 10642
原创 FFmepg 多线程解码历程 - 3: int ff_thread_decode_frame
//帧级解码函数,在avcodec_open2的时候,就会判断片还是帧解码,分析见下一篇int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPack
2013-03-30 14:08:45 4624
原创 FFmepg 多线程解码历程 - 2 :avcodec_decode_video2
//解码函数int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr,
2013-03-30 13:27:28 6624
转载 ffmpeg 新老接口问题及对照集锦
网上很多关于ffmpeg (libav)的资料都是N年以前的,而事实上ffmpeg数年来一直在“以时俱进”,因此无论是一些新手,或者号称为老手的人,有时候难免出头痛。。。。。。为了解决大家的头痛的问题,特列一个贴子,把ffmpeg相关的一些常见的、版本的问题列举出来,供大家参考,同时也请大家一起补充。1) 不认识guess_format.解决: #define guess_f
2013-03-30 11:32:22 1995
原创 FFmepg 多线程解码历程 - 1:validate_thread_parameters
/** * Set the threading algorithms used.//设置线程的使用算法 * Threading requires more than one thread.//需要一个以上的线程 * Frame threading requires entire frames to be passed to the codec,//帧线程需要整个帧被传递到编码解码器
2013-03-30 10:58:03 4984 3
转载 FFMPEG解码多线程
FFMPEG多线程编码器一般以在Slice内分功能模块进行多线程编码,如h263,h263P,msmpeg(v1, v2, v3),wmv1。包含以下几个线程:(1)Pre_estimation_motion_thread运动估计前的准备;(2)Estimation_motion_thread运动估计;(3)Mb_var_thread宏块其他变量;(4)Encode_thread编码主线程。当然也
2013-03-30 09:46:47 5849
转载 ffmpeg的内部Video Buffer管理和传送机制
本文主要介绍ffmpeg解码器内部管理Video Buffer的原理和过程,ffmpeg的Videobuffer为内部管理,其流程大致为:注册处理函数->帧级释放->帧级申请->清空。1 注册get_buffer()和release_buffer()FFAPI_InitCodec()avcodec_alloc_context()avcodec_alloc_context2()a
2013-03-30 09:45:59 2767
原创 error: 'ff_get_buffer' was not declared in this scope
问题:/home/ffmpeg4android-code/ffmpeg-1.1.2/libavcodec/libstagefright.cpp: In function 'void* decode_thread(void*)':/home/ffmpeg4android-code/ffmpeg-1.1.2/libavcodec/libstagefright.cpp:188: error:
2013-03-29 13:58:57 3530
原创 Out of tree builds are impossible with config.h in source dir
在编译tools下的build_libstagefright的时候,由于之前在ffmpeg下面执行过./configure,生成config.h然后再次在tool下执行build_libstagefright的时候就会出现Out of tree builds are impossible with config.h in source dir这个问题解决:删除ffmpeg 下面的con
2013-03-28 14:20:58 8327
原创 ERROR: libstagefright_h264 not found
用最新的ffmpeg在编译libstagefright_h264的时候提示ERROR: libstagefright_h264 not found./configure --enable-libstagefright_h264ERROR: libstagefright_h264 not found解决方法:1. vim configure2.找到enabled
2013-03-28 14:05:46 4577
原创 Double the virtual joystick
In front of a single virtual joystick development foundation, through the relative position to calculate another coordinate system apk: http://download.csdn.net/download/jwzhangjie/5184479
2013-03-26 19:56:33 1489 11
原创 A single virtual joystick development
Mainly includes three parts, respectively is the calling class, touch handler class, utility class.Touch handler class: AppSingleRockerpackage com.seuic;import com.seuic.util.MathUtils;import
2013-03-26 19:14:19 2452
原创 Ubuntu 12.04 is installed arm-linux-gcc-4.4.3.tar.gz (cross compile environment)
1.Download arm-linux-gcc-4.4.3.tar.gzhttp://download.csdn.net/download/jwzhangjie/51836302.Create a directoryroot@zhangjie:mkdir /usr/local/arm3.Unzip the fileroot@zhangjie:/usr/local/ar
2013-03-26 16:13:08 6185
原创 VIM Binary file editing
Use XXD1. open filevim -b datafile2. Binary conversion to base sixteen:%!xxd3. Restore files:%!xxd -r
2013-03-26 16:00:23 1659
原创 ndk 8d compiled ffmpeg libstagefright
1.Download ffmpeg-0.11.2.tar.bz22.Enterffmpeg-0.11.2/tools3.Modify build_libstagefright#!/bin/bashNDK=/opt/android-ndk-r8dif [ "$NDK" = "" ]; then echo NDK variable not set, assum
2013-03-26 14:15:42 8862 22
原创 ndk 8d compiled ffmpeg problem -- 1
problem:/opt/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavcodec/libavcodec.a(libs
2013-03-26 13:11:31 3554
自定义FragmentTabHost
2014-06-27
CSipSimple
2013-10-25
关于Activity和Task的设计思路和方法.pdf
2013-10-15
SDL1.3源码
2013-06-17
TCL相关资料
2012-05-18
android动态设置日期时间源代码
2011-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人