mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[mpp]: Combine block control and timeout control
Use MppPollType as block control MPP_SET_INPUT_TIMEOUT and MPP_SET_OUTPUT_TIMEOUT 's parameter. Deprecate old block/block_timeout control. Next step is to change MppPollType to RK_S64 for compatible in different platform. Change-Id: I02974f0b8eeb23ff43687448d6c3271ea7dd0a2c Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -75,10 +75,18 @@ typedef enum {
|
||||
|
||||
MPP_CMD_BASE = CMD_MODULE_MPP,
|
||||
MPP_ENABLE_DEINTERLACE,
|
||||
MPP_SET_INPUT_BLOCK,
|
||||
MPP_SET_INTPUT_BLOCK_TIMEOUT,
|
||||
MPP_SET_OUTPUT_BLOCK,
|
||||
MPP_SET_OUTPUT_BLOCK_TIMEOUT,
|
||||
MPP_SET_INPUT_BLOCK, /* deprecated */
|
||||
MPP_SET_INTPUT_BLOCK_TIMEOUT, /* deprecated */
|
||||
MPP_SET_OUTPUT_BLOCK, /* deprecated */
|
||||
MPP_SET_OUTPUT_BLOCK_TIMEOUT, /* deprecated */
|
||||
/*
|
||||
* timeout setup, refer to MPP_TIMEOUT_XXX
|
||||
* zero - non block
|
||||
* negative - block with no timeout
|
||||
* positive - timeout in milisecond
|
||||
*/
|
||||
MPP_SET_INPUT_TIMEOUT, /* parameter type RK_S64 */
|
||||
MPP_SET_OUTPUT_TIMEOUT, /* parameter type RK_S64 */
|
||||
MPP_CMD_END,
|
||||
|
||||
MPP_CODEC_CMD_BASE = CMD_MODULE_CODEC,
|
||||
|
Reference in New Issue
Block a user