Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
AMLUtils.cpp File Reference
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string>
#include "AMLUtils.h"
#include "utils/CPUInfo.h"
#include "utils/log.h"
#include "utils/SysfsUtils.h"
#include "utils/StringUtils.h"
#include "windowing/GraphicContext.h"
#include "utils/RegExp.h"
#include "filesystem/SpecialProtocol.h"
#include "rendering/RenderSystem.h"
#include "linux/fb.h"
#include <sys/ioctl.h>

Functions

bool aml_present ()
 
bool aml_wired_present ()
 
bool aml_permissions ()
 
bool aml_support_hevc ()
 
bool aml_support_hevc_4k2k ()
 
bool aml_support_hevc_10bit ()
 
AML_SUPPORT_H264_4K2K aml_support_h264_4k2k ()
 
bool aml_support_vp9 ()
 
bool aml_has_frac_rate_policy ()
 
void aml_set_audio_passthrough (bool passthrough)
 
void aml_probe_hdmi_audio ()
 
int aml_axis_value (AML_DISPLAY_AXIS_PARAM param)
 
bool aml_IsHdmiConnected ()
 
bool aml_mode_to_resolution (const char *mode, RESOLUTION_INFO *res)
 
bool aml_get_native_resolution (RESOLUTION_INFO *res)
 
bool aml_set_native_resolution (const RESOLUTION_INFO &res, std::string framebuffer_name, const int stereo_mode)
 
bool aml_probe_resolutions (std::vector< RESOLUTION_INFO > &resolutions)
 
bool aml_get_preferred_resolution (RESOLUTION_INFO *res)
 
bool aml_set_display_resolution (const RESOLUTION_INFO &res, std::string framebuffer_name)
 
void aml_setup_video_scaling (const char *mode)
 
void aml_handle_scale (const RESOLUTION_INFO &res)
 
void aml_handle_display_stereo_mode (const int stereo_mode)
 
void aml_enable_freeScale (const RESOLUTION_INFO &res)
 
void aml_disable_freeScale ()
 
void aml_set_framebuffer_resolution (const RESOLUTION_INFO &res, std::string framebuffer_name)
 
void aml_set_framebuffer_resolution (int width, int height, std::string framebuffer_name)
 
bool aml_read_reg (const std::string &reg, uint32_t &reg_val)
 
bool aml_has_capability_ignore_alpha ()
 
bool aml_set_reg_ignore_alpha ()
 
bool aml_unset_reg_ignore_alpha ()
 

Function Documentation

◆ aml_axis_value()

int aml_axis_value ( AML_DISPLAY_AXIS_PARAM  param)

◆ aml_disable_freeScale()

void aml_disable_freeScale ( )

◆ aml_enable_freeScale()

void aml_enable_freeScale ( const RESOLUTION_INFO res)

◆ aml_get_native_resolution()

bool aml_get_native_resolution ( RESOLUTION_INFO res)

◆ aml_get_preferred_resolution()

bool aml_get_preferred_resolution ( RESOLUTION_INFO res)

◆ aml_handle_display_stereo_mode()

void aml_handle_display_stereo_mode ( const int  stereo_mode)

◆ aml_handle_scale()

void aml_handle_scale ( const RESOLUTION_INFO res)

◆ aml_has_capability_ignore_alpha()

bool aml_has_capability_ignore_alpha ( )

◆ aml_has_frac_rate_policy()

bool aml_has_frac_rate_policy ( )

◆ aml_IsHdmiConnected()

bool aml_IsHdmiConnected ( )

◆ aml_mode_to_resolution()

bool aml_mode_to_resolution ( const char *  mode,
RESOLUTION_INFO res 
)

◆ aml_permissions()

bool aml_permissions ( )

◆ aml_present()

bool aml_present ( )

◆ aml_probe_hdmi_audio()

void aml_probe_hdmi_audio ( )

◆ aml_probe_resolutions()

bool aml_probe_resolutions ( std::vector< RESOLUTION_INFO > &  resolutions)

◆ aml_read_reg()

bool aml_read_reg ( const std::string &  reg,
uint32_t &  reg_val 
)

◆ aml_set_audio_passthrough()

void aml_set_audio_passthrough ( bool  passthrough)

◆ aml_set_display_resolution()

bool aml_set_display_resolution ( const RESOLUTION_INFO res,
std::string  framebuffer_name 
)

◆ aml_set_framebuffer_resolution() [1/2]

void aml_set_framebuffer_resolution ( const RESOLUTION_INFO res,
std::string  framebuffer_name 
)

◆ aml_set_framebuffer_resolution() [2/2]

void aml_set_framebuffer_resolution ( int  width,
int  height,
std::string  framebuffer_name 
)

◆ aml_set_native_resolution()

bool aml_set_native_resolution ( const RESOLUTION_INFO res,
std::string  framebuffer_name,
const int  stereo_mode 
)

◆ aml_set_reg_ignore_alpha()

bool aml_set_reg_ignore_alpha ( )

◆ aml_setup_video_scaling()

void aml_setup_video_scaling ( const char *  mode)

◆ aml_support_h264_4k2k()

AML_SUPPORT_H264_4K2K aml_support_h264_4k2k ( )

◆ aml_support_hevc()

bool aml_support_hevc ( )

◆ aml_support_hevc_10bit()

bool aml_support_hevc_10bit ( )

◆ aml_support_hevc_4k2k()

bool aml_support_hevc_4k2k ( )

◆ aml_support_vp9()

bool aml_support_vp9 ( )

◆ aml_unset_reg_ignore_alpha()

bool aml_unset_reg_ignore_alpha ( )

◆ aml_wired_present()

bool aml_wired_present ( )