#ifndef __ESPLUSPLAYER_MIXER_SYS_TBM_INTERFACE_H__
#define __ESPLUSPLAYER_MIXER_SYS_TBM_INTERFACE_H__
-#include <capi-graphics-control.h>
+#include <ppi-graphics-control.h>
#include "mixer/types/buffertype.h"
static BufferKeyType BoExport(BufferDefaultType bo);
static BufferDefaultType BoAlloc(tbm_bufmgr bufmgr, int size, int flag);
static BufferDefaultType BoImport(tbm_bufmgr bufmgr, BufferKeyType key);
- static int GAScale(tbm_bufmgr bufmgr, GraphicsGAScaleInfo* info);
- static int GACopy(tbm_bufmgr bufmgr, GraphicsGABltRopInfo* info);
- static int GAFill(tbm_bufmgr bufmgr, GraphicsGAFillRectInfo* info);
+ static int GAScale(tbm_bufmgr bufmgr, ppi_graphics_control_ga_scale_info_s* info);
+ static int GACopy(tbm_bufmgr bufmgr, ppi_graphics_control_ga_blt_rop_info_s* info);
+ static int GAFill(tbm_bufmgr bufmgr, ppi_graphics_control_ga_fill_rect_info_s* info);
};
} // namespace tizen
} // namespace esplusplayer
const VideoPlaneManipulableInfo& dst) const {
if (src.component != dst.component) return false;
if (IsValid() == false) return false;
- GraphicsGABltRopInfo info;
- std::memset(&info, 0, sizeof(GraphicsGABltRopInfo));
- info.ga_mode = GRAPHICS_GA_BITBLT_MODE_NORMAL;
- info.rop_mode = GRAPHICS_GA_ROP_COPY;
- info.ga_op_type = GRAPHICS_GA_COPY;
+ ppi_graphics_control_ga_blt_rop_info_s info;
+ std::memset(&info, 0, sizeof(ppi_graphics_control_ga_blt_rop_info_s));
+ info.ga_mode = PPI_GRAPHICS_GA_BITBLT_MODE_NORMAL;
+ info.rop_mode = PPI_GRAPHICS_GA_ROP_COPY;
+ info.ga_op_type = PPI_GRAPHICS_GA_COPY;
info.pre_alphamode = 0;
info.ca_value = 0;
info.color_format =
- (src.component == PlaneComponent::kYComponent ? GRAPHICS_GA_FORMAT_8BPP
- : GRAPHICS_GA_FORMAT_16BPP);
+ (src.component == PlaneComponent::kYComponent ? PPI_GRAPHICS_GA_FORMAT_8BPP
+ : PPI_GRAPHICS_GA_FORMAT_16BPP);
info.src_handle = src.handle;
info.src_hbytesize = src.linesize;
const VideoPlaneManipulableInfo& dst) const {
if (src.component != dst.component) return false;
if (IsValid() == false) return false;
- GraphicsGAScaleInfo info;
- std::memset(&info, 0, sizeof(GraphicsGAScaleInfo));
- info.ga_mode = GRAPHICS_GA_SCALE_MODE;
- info.rop_mode = GRAPHICS_GA_ROP_COPY;
- info.ga_op_type = GRAPHICS_GA_SCALE;
+ ppi_graphics_control_ga_scale_info_s info;
+ std::memset(&info, 0, sizeof(ppi_graphics_control_ga_scale_info_s));
+ info.ga_mode = PPI_GRAPHICS_GA_SCALE_MODE;
+ info.rop_mode = PPI_GRAPHICS_GA_ROP_COPY;
+ info.ga_op_type = PPI_GRAPHICS_GA_SCALE;
info.pre_alphamode = 0;
info.ca_value = 0;
info.rop_on_off = 0;
info.color_format =
- (src.component == PlaneComponent::kYComponent ? GRAPHICS_GA_FORMAT_8BPP
- : GRAPHICS_GA_FORMAT_16BPP);
+ (src.component == PlaneComponent::kYComponent ? PPI_GRAPHICS_GA_FORMAT_8BPP
+ : PPI_GRAPHICS_GA_FORMAT_16BPP);
info.src_handle = src.handle;
info.src_hbytesize = src.linesize;
bool BufferManagerWithType<TBM>::Fill_(
const std::uint32_t color, const VideoPlaneManipulableInfo& dst) const {
if (IsValid() == false) return false;
- GraphicsGAFillRectInfo info;
- std::memset(&info, 0, sizeof(GraphicsGAFillRectInfo));
+ ppi_graphics_control_ga_fill_rect_info_s info;
+ std::memset(&info, 0, sizeof(ppi_graphics_control_ga_fill_rect_info_s));
info.color_format =
- (dst.component == PlaneComponent::kYComponent ? GRAPHICS_GA_FORMAT_8BPP
- : GRAPHICS_GA_FORMAT_16BPP);
- info.ga_op_type = GRAPHICS_GA_SOLID_FILL;
+ (dst.component == PlaneComponent::kYComponent ? PPI_GRAPHICS_GA_FORMAT_8BPP
+ : PPI_GRAPHICS_GA_FORMAT_16BPP);
+ info.ga_op_type = PPI_GRAPHICS_GA_SOLID_FILL;
info.color = color;
info.handle = dst.handle;
return tbm_bo_import(bufmgr, key);
}
-int TBMInterface::GAScale(tbm_bufmgr bufmgr, GraphicsGAScaleInfo* info) {
- return Gfx_GA_Scale(bufmgr, info);
+int TBMInterface::GAScale(tbm_bufmgr bufmgr, ppi_graphics_control_ga_scale_info_s* info) {
+ return ppi_graphics_control_ga_scale(bufmgr, info);
}
-int TBMInterface::GACopy(tbm_bufmgr bufmgr, GraphicsGABltRopInfo* info) {
- return Gfx_GA_BltRop(bufmgr, info);
+int TBMInterface::GACopy(tbm_bufmgr bufmgr, ppi_graphics_control_ga_blt_rop_info_s* info) {
+ return ppi_graphics_control_ga_bltrop(bufmgr, info);
}
-int TBMInterface::GAFill(tbm_bufmgr bufmgr, GraphicsGAFillRectInfo* info) {
- return Gfx_GA_FillRect(bufmgr, info);
+int TBMInterface::GAFill(tbm_bufmgr bufmgr, ppi_graphics_control_ga_fill_rect_info_s* info) {
+ return ppi_graphics_control_ga_fillrect(bufmgr, info);
}
} // namespace tizen
} // namespace esplusplayer
\ No newline at end of file
MOCK_METHOD3(BoAlloc, BufferDefaultType(tbm_bufmgr, int, int));
MOCK_METHOD1(BoUnRef, void(BufferDefaultType));
MOCK_METHOD2(BoImport, BufferDefaultType(tbm_bufmgr, BufferKeyType));
- MOCK_METHOD2(GACopy, int(tbm_bufmgr, GraphicsGABltRopInfo*));
- MOCK_METHOD2(GAScale, int(tbm_bufmgr, GraphicsGAScaleInfo*));
- MOCK_METHOD2(GAFill, int(tbm_bufmgr, GraphicsGAFillRectInfo*));
+ MOCK_METHOD2(GACopy, int(tbm_bufmgr, ppi_graphics_control_ga_blt_rop_info_s*));
+ MOCK_METHOD2(GAScale, int(tbm_bufmgr, ppi_graphics_control_ga_scale_info_s*));
+ MOCK_METHOD2(GAFill, int(tbm_bufmgr, ppi_graphics_control_ga_fill_rect_info_s*));
};
static Fake* instance;
return instance->BoImport(bufmgr, key);
}
- static int GAScale(tbm_bufmgr bufmgr, GraphicsGAScaleInfo* info) {
+ static int GAScale(tbm_bufmgr bufmgr, ppi_graphics_control_ga_scale_info_s* info) {
return instance->GAScale(bufmgr, info);
}
- static int GACopy(tbm_bufmgr bufmgr, GraphicsGABltRopInfo* info) {
+ static int GACopy(tbm_bufmgr bufmgr, ppi_graphics_control_ga_blt_rop_info_s* info) {
return instance->GACopy(bufmgr, info);
}
- static int GAFill(tbm_bufmgr bufmgr, GraphicsGAFillRectInfo* info) {
+ static int GAFill(tbm_bufmgr bufmgr, ppi_graphics_control_ga_fill_rect_info_s* info) {
return instance->GAFill(bufmgr, info);
}
};
GAScale(
NotNull(),
AllOf(
- Field(&GraphicsGAScaleInfo::ga_mode, GRAPHICS_GA_SCALE_MODE),
- Field(&GraphicsGAScaleInfo::rop_mode, GRAPHICS_GA_ROP_COPY),
- Field(&GraphicsGAScaleInfo::ga_op_type, GRAPHICS_GA_SCALE),
- Field(&GraphicsGAScaleInfo::pre_alphamode, 0),
- Field(&GraphicsGAScaleInfo::ca_value, 0),
- Field(&GraphicsGAScaleInfo::rop_on_off, 0),
- Field(&GraphicsGAScaleInfo::src_handle,
+ Field(&ppi_graphics_control_ga_scale_info_s::ga_mode, PPI_GRAPHICS_GA_SCALE_MODE),
+ Field(&ppi_graphics_control_ga_scale_info_s::rop_mode, PPI_GRAPHICS_GA_ROP_COPY),
+ Field(&ppi_graphics_control_ga_scale_info_s::ga_op_type, PPI_GRAPHICS_GA_SCALE),
+ Field(&ppi_graphics_control_ga_scale_info_s::pre_alphamode, 0),
+ Field(&ppi_graphics_control_ga_scale_info_s::ca_value, 0),
+ Field(&ppi_graphics_control_ga_scale_info_s::rop_on_off, 0),
+ Field(&ppi_graphics_control_ga_scale_info_s::src_handle,
kYComponentSrcVMInfo.handle),
- Field(&GraphicsGAScaleInfo::src_hbytesize,
+ Field(&ppi_graphics_control_ga_scale_info_s::src_hbytesize,
kYComponentSrcVMInfo.linesize),
Field(
- &GraphicsGAScaleInfo::src_rect,
+ &ppi_graphics_control_ga_scale_info_s::src_rect,
AllOf(
Field(&GraphicsRectInfo::x, kYComponentSrcVMInfo.rect.x),
Field(&GraphicsRectInfo::y, kYComponentSrcVMInfo.rect.y),
Field(&GraphicsRectInfo::w, kYComponentSrcVMInfo.rect.w),
Field(&GraphicsRectInfo::h,
kYComponentSrcVMInfo.rect.h))),
- Field(&GraphicsGAScaleInfo::dst_handle,
+ Field(&ppi_graphics_control_ga_scale_info_s::dst_handle,
kYComponentDestVMInfo.handle),
- Field(&GraphicsGAScaleInfo::dst_hbytesize,
+ Field(&ppi_graphics_control_ga_scale_info_s::dst_hbytesize,
kYComponentDestVMInfo.linesize),
Field(
- &GraphicsGAScaleInfo::dst_rect,
+ &ppi_graphics_control_ga_scale_info_s::dst_rect,
AllOf(
Field(&GraphicsRectInfo::x, kYComponentDestVMInfo.rect.x),
Field(&GraphicsRectInfo::y, kYComponentDestVMInfo.rect.y),