Change-Id: I178a9b8ca73b8ea99adf3cf5db492557c4a1583f
16 files changed:
#define Exynos_gsc_In() Exynos_Log(EXYNOS_DEV_LOG_DEBUG, EXYNOS_GSC_LOG_TAG, "%s In , Line: %d", __FUNCTION__, __LINE__)
#define Exynos_gsc_Out() Exynos_Log(EXYNOS_DEV_LOG_DEBUG, EXYNOS_GSC_LOG_TAG, "%s Out , Line: %d", __FUNCTION__, __LINE__)
#else
#define Exynos_gsc_In() Exynos_Log(EXYNOS_DEV_LOG_DEBUG, EXYNOS_GSC_LOG_TAG, "%s In , Line: %d", __FUNCTION__, __LINE__)
#define Exynos_gsc_Out() Exynos_Log(EXYNOS_DEV_LOG_DEBUG, EXYNOS_GSC_LOG_TAG, "%s Out , Line: %d", __FUNCTION__, __LINE__)
#else
-#define Exynos_gsc_In() ((void *)0)
-#define Exynos_gsc_Out() ((void *)0)
+#define Exynos_gsc_In()
+#define Exynos_gsc_Out()
int out_mode,
int allow_drm)
{
int out_mode,
int allow_drm)
{
- int i = 0;
- int op_id = 0;
- unsigned int total_sleep_time = 0;
int ret = 0;
Exynos_gsc_In();
int ret = 0;
Exynos_gsc_In();
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
void *exynos_gsc_create_blend_exclusive(int dev_num, int mode, int out_mode,
int allow_drm)
{
void *exynos_gsc_create_blend_exclusive(int dev_num, int mode, int out_mode,
int allow_drm)
{
- int i = 0;
- int op_id = 0;
- unsigned int total_sleep_time = 0;
- int ret = 0;
-
Exynos_gsc_In();
if ((dev_num < 0) || (dev_num >= HW_SCAL_MAX)) {
Exynos_gsc_In();
if ((dev_num < 0) || (dev_num >= HW_SCAL_MAX)) {
Exynos_gsc_In();
struct v4l2_requestbuffers reqbuf;
Exynos_gsc_In();
struct v4l2_requestbuffers reqbuf;
- struct v4l2_buffer buf;
- struct v4l2_plane planes[NUM_OF_GSC_PLANES];
int ret = 0;
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
int ret = 0;
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
char node[32];
char devname[32];
unsigned int cap;
char node[32];
char devname[32];
unsigned int cap;
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
struct media_entity *gsc_sd_entity;
struct media_entity *gsc_vd_entity;
struct media_entity *sink_sd_entity;
struct media_entity *gsc_sd_entity;
struct media_entity *gsc_vd_entity;
struct media_entity *sink_sd_entity;
- struct media_link *links;
char node[32];
char devname[32];
unsigned int cap;
char node[32];
char devname[32];
unsigned int cap;
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
- struct v4l2_requestbuffers reqbuf;
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler* gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
/* if drm is enabled */
if (gsc->allow_drm && gsc->protection_enabled) {
/* if drm is enabled */
if (gsc->allow_drm && gsc->protection_enabled) {
- unsigned int protect_id = 0;
-
if (gsc->gsc_id == 0)
protect_id = CP_PROTECT_GSC0;
else if (gsc->gsc_id == 1)
if (gsc->gsc_id == 0)
protect_id = CP_PROTECT_GSC0;
else if (gsc->gsc_id == 1)
protect_id = CP_PROTECT_GSC2;
else if (gsc->gsc_id == 3)
protect_id = CP_PROTECT_GSC3;
protect_id = CP_PROTECT_GSC2;
else if (gsc->gsc_id == 3)
protect_id = CP_PROTECT_GSC3;
/* CP_Disable_Path_Protection(protect_id); */
gsc->protection_enabled = false;
}
/* CP_Disable_Path_Protection(protect_id); */
gsc->protection_enabled = false;
}
* and power domain is kept on.
*/
if (is_dirty && gsc->allow_drm && is_drm) {
* and power domain is kept on.
*/
if (is_dirty && gsc->allow_drm && is_drm) {
- unsigned int protect_id = 0;
-
if (gsc->gsc_id == 0) {
protect_id = CP_PROTECT_GSC0;
} else if (gsc->gsc_id == 1) {
if (gsc->gsc_id == 0) {
protect_id = CP_PROTECT_GSC0;
} else if (gsc->gsc_id == 1) {
__func__, gsc->gsc_id);
goto done;
}
__func__, gsc->gsc_id);
goto done;
}
/* if (CP_Enable_Path_Protection(protect_id) != 0) {
ALOGE("%s::CP_Enable_Path_Protection failed", __func__);
goto done;
/* if (CP_Enable_Path_Protection(protect_id) != 0) {
ALOGE("%s::CP_Enable_Path_Protection failed", __func__);
goto done;
struct v4l2_requestbuffers reqbuf;
struct v4l2_subdev_format sd_fmt;
struct v4l2_subdev_crop sd_crop;
struct v4l2_requestbuffers reqbuf;
struct v4l2_subdev_format sd_fmt;
struct v4l2_subdev_crop sd_crop;
unsigned int rotate;
unsigned int hflip;
unsigned int vflip;
unsigned int rotate;
unsigned int hflip;
unsigned int vflip;
- unsigned int plane_size[NUM_OF_GSC_PLANES];
- struct v4l2_rect dst_rect;
int32_t src_color_space;
int32_t dst_color_space;
int32_t src_planes;
int32_t src_color_space;
int32_t dst_color_space;
int32_t src_planes;
struct v4l2_requestbuffers reqbuf;
struct v4l2_subdev_format sd_fmt;
struct v4l2_subdev_crop sd_crop;
struct v4l2_requestbuffers reqbuf;
struct v4l2_subdev_format sd_fmt;
struct v4l2_subdev_crop sd_crop;
unsigned int rotate;
unsigned int hflip;
unsigned int vflip;
unsigned int rotate;
unsigned int hflip;
unsigned int vflip;
- unsigned int plane_size[NUM_OF_GSC_PLANES];
- bool rgb;
- struct v4l2_rect dst_rect;
int32_t src_color_space;
int32_t dst_color_space;
int32_t dst_planes;
int32_t src_color_space;
int32_t dst_color_space;
int32_t dst_planes;
dst_color_space = HAL_PIXEL_FORMAT_2_V4L2_PIX(dst_img->format);
dst_planes = m_gsc_get_plane_count(dst_color_space);
dst_planes = (dst_planes == -1) ? 1 : dst_planes;
dst_color_space = HAL_PIXEL_FORMAT_2_V4L2_PIX(dst_img->format);
dst_planes = m_gsc_get_plane_count(dst_color_space);
dst_planes = (dst_planes == -1) ? 1 : dst_planes;
- rgb = get_yuv_planes(src_color_space) == -1;
CGscaler::rotateValueHAL2GSC(src_img->rot, &rotate, &hflip, &vflip);
if (CGscaler::m_gsc_check_src_size(&gsc->src_img.fw,
CGscaler::rotateValueHAL2GSC(src_img->rot, &rotate, &hflip, &vflip);
if (CGscaler::m_gsc_check_src_size(&gsc->src_img.fw,
exynos_mpp_img *src_img, exynos_mpp_img *dst_img)
{
struct v4l2_crop crop;
exynos_mpp_img *src_img, exynos_mpp_img *dst_img)
{
struct v4l2_crop crop;
CGscaler *gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
CGscaler *gsc = GetGscaler(handle);
if (gsc == NULL) {
ALOGE("%s::handle == NULL() fail", __func__);
__InitMembers(__mode, __out_mode, __gsc_id, __allow_drm);
}
__InitMembers(__mode, __out_mode, __gsc_id, __allow_drm);
}
{
ALOGD("%s", __func__);
}
{
ALOGD("%s", __func__);
}