Hi Sylwester, > >>>> Also for number of ref frames, the standard allows only the options 1, >>>> 2 and 3 which >>>> cannot be extended more. So is it correct to use INTEGER_MENU control here and >>>> let the driver define the values? >>> >>> If this is standard then the core should define available menu items. But >>> it seems more appropriate for me to use INTEGER_MENU. I'd like to hear other >>> opinions though. >> >> Here even though 1,2 and 3 are standard, the interpretation is >> 1 - 1 reference frame (previous frame) >> 2 - previous frame + golden frame >> 3 - previous frame + golden frame + altref frame. > > OK, then perhaps for this parameter a standard menu control would be better. > However, why there are only 2 options in vpx_num_ref_frames[] arrays ? > You probably want to change the menu strings to reflect this more precisely, > but there might be not enough room for any creative names anyway. Maybe > something like: > > static const char * const vpx_num_ref_frames[] = { > "Previous Frame", > "Previous + Golden Frame", > "Prev + Golden + Altref Frame", > NULL, > }; > On a more detailed inspection, the standard says maximum of 3 reference frames. So in case of 2, it can be any of the permutation combination possible. So rather I will stick to integer menu items saying 1, 2 and 3 where on setting value 2, the encoder can decide on which frames to refer based on its implementation but keeping the searching limit to 2 frames only. Regards Arun -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html