[FFmpeg-devel] ffmpeg improvement for x265

2014-12-29 Thread llj
hello,
My name is Liujun Liu, a developer of x265 group.
firstly I want to describe what the problem is. There is an option HI_BIT_DEPTH 
in x265 CMake build option, this is for 10 bits video encoder, by default this 
option is off, so it encodes video as 8 bits precision(even there is command 
line to force encode as 10 bits, but the precision is only 0~255). however, we 
want to make it 
also possible for real 10 bits video encoding in one ffmpeg build, so what we 
expect is that the user build two x265 share libraries, one is 8bit, called 
libx265, the other is libx265_10, they have the same API,  the ffmpeg can 
invoke either one dynamically by the command line option --profile main10 is 
added or not(default is main), so is that possible for me to submit a patch to 
ffmpeg to let it dynamic invoke the x265 share library.


if it is get the approval, can you give me some advices by how to change it in 
a good way because I'm a newer for ffmpeg. 


regards,
Liujun
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] how to add configuration option to ffmepg

2015-01-02 Thread llj
Hi, dear ffmpeg developer,
below is a peace of code in libx264.c.


static av_cold int X264_init(AVCodecContext *avctx)
{
X264Context *x4 = avctx->priv_data;
int sw,sh;


if (avctx->global_quality > 0)
av_log(avctx, AV_LOG_WARNING, "-qscale is ignored, -crf is 
recommended.\n");


#if HAVE_STUDY
//my study code.  
#endif


x264_param_default(&x4->params);


x4->params.b_deblocking_filter = avctx->flags & 
CODEC_FLAG_LOOP_FILTER;
..
}


I want to add some of my code which control by HAVE_STUDY micro, I hope that it 
is close by default, and when I configure the ffmpeg with --enable-study 
option, the HAVE_STUDY is true, how can I reach this aim?
can someone kindly help me? 
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel