Log in

View Full Version : Which function calls x264_me_search_ref


mavrick_264
23rd December 2013, 12:23
Hi,
I want to travese the x264 code from the encode_frame ( ) function till i reach the function x264_me_search_ref ( ).
However during the setpwise debuggging the code exits from the function x264_me_search_ref ( ) back to the encode_frame ( ) after and prints the status on the command prompt.
i am unable to go to the motion estimation part of the code. I intend to modify that for some of my own ideas. Can anybody tell which what will the path of the function calls so that i can systematically reach till x264_me_search_ref ( )?
Thanks.

raffriff42
23rd December 2013, 13:01
set break point, view call stack??

mavrick_264
23rd December 2013, 13:17
Right! That's what i was doing!
but it is exiting as i mentioned in the post.
So i want to know what is the path taken to go the function x264_me_search_ref ( )
Like:
main ( ) -> encode ( ) -> encode_frame( ) -> x264_encoder_encode( )...??...->x264_me_search_ref ( )
i could traverse till the function x264_encoder_encode( ), but, not able to understand futher how it is travesersing! :confused:
So asked for the help.

LoRd_MuldeR
23rd December 2013, 13:40
Are you sure you were using a DEBUG build? If not, the callstack may be incomplete/incorrect.

Methods may even be inlined and thus won't appear on the callstack at all.

Also, why not do a simple full text search on the x264 source code tree? You will find x264_me_search_ref() is called at two places in "encoder/analyse.c".

BTW: Be aware of x264_me_search(), which is defined as a macro that will expand to x264_me_search_ref() as well!