Skip to content

Commit

Permalink
dispmanx: Correct VC_IMAGE_TRANSFORM_T to DISPMANX_TRANFORM_T where a…
Browse files Browse the repository at this point in the history
…ppropriate
  • Loading branch information
Dom Cobley committed Aug 7, 2013
1 parent 7a6261d commit e98e5e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions interface/vmcs_host/vc_dispmanx.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open( uint32_t de
// Opens a display on the given device in the request mode
VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open_mode( uint32_t device, uint32_t mode );
// Open an offscreen display
VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open_offscreen( DISPMANX_RESOURCE_HANDLE_T dest, VC_IMAGE_TRANSFORM_T orientation );
VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open_offscreen( DISPMANX_RESOURCE_HANDLE_T dest, DISPMANX_TRANSFORM_T orientation );
// Change the mode of a display
VCHPRE_ int VCHPOST_ vc_dispmanx_display_reconfigure( DISPMANX_DISPLAY_HANDLE_T display, uint32_t mode );
// Sets the desstination of the display to be the given resource
Expand Down Expand Up @@ -113,7 +113,7 @@ VCHPRE_ int VCHPOST_ vc_dispmanx_element_change_attributes( DISPMANX_UPDATE_HAND
const VC_RECT_T *dest_rect,
const VC_RECT_T *src_rect,
DISPMANX_RESOURCE_HANDLE_T mask,
VC_IMAGE_TRANSFORM_T transform );
DISPMANX_TRANSFORM_T transform );

//xxx hack to get the image pointer from a resource handle, will be obsolete real soon
VCHPRE_ uint32_t VCHPOST_ vc_dispmanx_resource_get_image_handle( DISPMANX_RESOURCE_HANDLE_T res);
Expand All @@ -123,9 +123,10 @@ VCHPRE_ void VCHPOST_ vc_vchi_dispmanx_init (VCHI_INSTANCE_T initialise_instance

// Take a snapshot of a display in its current state.
// This call may block for a time; when it completes, the snapshot is ready.
// only transform=0 is supported
VCHPRE_ int VCHPOST_ vc_dispmanx_snapshot( DISPMANX_DISPLAY_HANDLE_T display,
DISPMANX_RESOURCE_HANDLE_T snapshot_resource,
VC_IMAGE_TRANSFORM_T transform );
DISPMANX_TRANSFORM_T transform );
#ifdef __cplusplus
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion interface/vmcs_host/vc_dispmanx_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ typedef struct {
typedef struct {
int32_t width;
int32_t height;
VC_IMAGE_TRANSFORM_T transform;
DISPMANX_TRANSFORM_T transform;
DISPLAY_INPUT_FORMAT_T input_format;
} DISPMANX_MODEINFO_T;

Expand Down
16 changes: 8 additions & 8 deletions interface/vmcs_host/vc_vchi_dispmanx.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,14 @@ VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open_mode( uint32
*
* Arguments:
* DISPMANX_RESOURCE_HANDLE_T dest
* VC_IMAGE_TRANSFORM_T orientation
* DISPMANX_TRANSFORM_T orientation
*
* Description:
*
* Returns:
*
***********************************************************/
VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open_offscreen( DISPMANX_RESOURCE_HANDLE_T dest, VC_IMAGE_TRANSFORM_T orientation ) {
VCHPRE_ DISPMANX_DISPLAY_HANDLE_T VCHPOST_ vc_dispmanx_display_open_offscreen( DISPMANX_RESOURCE_HANDLE_T dest, DISPMANX_TRANSFORM_T orientation ) {
uint32_t display_open_param[] = {(uint32_t)VC_HTOV32(dest), (uint32_t)VC_HTOV32(orientation)};
uint32_t display_handle = dispmanx_get_handle(EDispmanDisplayOpenOffscreen,
&display_open_param, sizeof(display_open_param));
Expand Down Expand Up @@ -633,7 +633,7 @@ vc_dispmanx_display_get_info (DISPMANX_DISPLAY_HANDLE_T display,
if(success == 0) {
pinfo->width = VC_VTOH32(info.width);
pinfo->height = VC_VTOH32(info.height);
pinfo->transform = (VC_IMAGE_TRANSFORM_T)VC_VTOH32(info.transform);
pinfo->transform = (DISPMANX_TRANSFORM_T)VC_VTOH32(info.transform);
pinfo->input_format = (DISPLAY_INPUT_FORMAT_T)VC_VTOH32(info.input_format);
}

Expand Down Expand Up @@ -738,7 +738,7 @@ VCHPRE_ int VCHPOST_ vc_dispmanx_update_submit_sync( DISPMANX_UPDATE_HANDLE_T up
* DISPMANX_FLAGS_T flags
* uint8_t opacity
* DISPMANX_RESOURCE_HANDLE_T mask
* VC_IMAGE_TRANSFORM_T transform
* DISPMANX_TRANSFORM_T transform
*
* Description:
*
Expand Down Expand Up @@ -905,7 +905,7 @@ VCHPRE_ int VCHPOST_ vc_dispmanx_element_remove( DISPMANX_UPDATE_HANDLE_T update
* const VC_RECT_T *dest rect
* const VC_RECT_T *src rect
* DISPMANX_RESOURCE_HANDLE_T mask
* VC_IMAGE_TRANSFORM_T transform
* VC_DISPMAN_TRANSFORM_T transform
*
* Description:
*
Expand All @@ -920,7 +920,7 @@ VCHPRE_ int VCHPOST_ vc_dispmanx_element_change_attributes( DISPMANX_UPDATE_HAND
const VC_RECT_T *dest_rect,
const VC_RECT_T *src_rect,
DISPMANX_RESOURCE_HANDLE_T mask,
VC_IMAGE_TRANSFORM_T transform ) {
DISPMANX_TRANSFORM_T transform ) {

uint32_t element_param[15] = { (uint32_t) VC_HTOV32(update),
(uint32_t) VC_HTOV32(element),
Expand Down Expand Up @@ -962,7 +962,7 @@ VCHPRE_ int VCHPOST_ vc_dispmanx_element_change_attributes( DISPMANX_UPDATE_HAND
* Arguments:
* DISPMANX_DISPLAY_HANDLE_T display
* DISPMANX_RESOURCE_HANDLE_T snapshot_resource
* VC_IMAGE_TRANSFORM_T transform
* DISPMANX_TRANSFORM_T transform
*
* Description: Take a snapshot of a display in its current state
*
Expand All @@ -971,7 +971,7 @@ VCHPRE_ int VCHPOST_ vc_dispmanx_element_change_attributes( DISPMANX_UPDATE_HAND
***********************************************************/
VCHPRE_ int VCHPOST_ vc_dispmanx_snapshot( DISPMANX_DISPLAY_HANDLE_T display,
DISPMANX_RESOURCE_HANDLE_T snapshot_resource,
VC_IMAGE_TRANSFORM_T transform )
DISPMANX_TRANSFORM_T transform )
{
uint32_t display_snapshot_param[] = {
VC_HTOV32(display),
Expand Down

0 comments on commit e98e5e4

Please sign in to comment.