video: driver: add scaling checks for encode session
Encoder supports downscale with scaling ratio upto 1/8 of width and 1/8 of height. So added necessary scaling checks at streamon. Change-Id: I3a29b43c79cf4e693ba2c0d9f98ec24410d50fbd Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
@@ -73,6 +73,12 @@ static inline is_scaling_enabled(struct msm_vidc_inst *inst)
|
||||
inst->crop.height != inst->compose.height;
|
||||
}
|
||||
|
||||
static inline is_rotation_90_or_270(struct msm_vidc_inst *inst)
|
||||
{
|
||||
return inst->capabilities->cap[ROTATION].value == 90 ||
|
||||
inst->capabilities->cap[ROTATION].value == 270;
|
||||
}
|
||||
|
||||
static inline is_internal_buffer(enum msm_vidc_buffer_type buffer_type)
|
||||
{
|
||||
return buffer_type == MSM_VIDC_BUF_BIN ||
|
||||
|
Reference in New Issue
Block a user