add option to rotate PiP clockwise/counterclockwise

This commit is contained in:
TangoCash
2022-11-19 11:09:01 +01:00
committed by Thilo Graf
parent 32c24c1fb4
commit 1249a61edf
13 changed files with 134 additions and 9 deletions

View File

@@ -547,6 +547,8 @@ typedef enum
LOCALE_EXTRA_KEY_PIC_SIZE,
LOCALE_EXTRA_KEY_PIP_CLOSE,
LOCALE_EXTRA_KEY_PIP_CLOSE_AVINPUT,
LOCALE_EXTRA_KEY_PIP_ROTATE_CW,
LOCALE_EXTRA_KEY_PIP_ROTATE_CCW,
LOCALE_EXTRA_KEY_PIP_SETUP,
LOCALE_EXTRA_KEY_PIP_SWAP,
LOCALE_EXTRA_KEY_RECORD,
@@ -1475,6 +1477,8 @@ typedef enum
LOCALE_MENU_HINT_KEY_PIC_MODE_ACTIVE,
LOCALE_MENU_HINT_KEY_PIC_SIZE_ACTIVE,
LOCALE_MENU_HINT_KEY_PIP_CLOSE,
LOCALE_MENU_HINT_KEY_PIP_ROTATE_CW,
LOCALE_MENU_HINT_KEY_PIP_ROTATE_CCW,
LOCALE_MENU_HINT_KEY_PIP_SETUP,
LOCALE_MENU_HINT_KEY_POWEROFF,
LOCALE_MENU_HINT_KEY_QUICKZAP,

View File

@@ -547,6 +547,8 @@ const char * locale_real_names[] =
"extra.key_pic_size",
"extra.key_pip_close",
"extra.key_pip_close_avinput",
"extra.key_pip_rotate_cw",
"extra.key_pip_rotate_ccw",
"extra.key_pip_setup",
"extra.key_pip_swap",
"extra.key_record",
@@ -1475,6 +1477,8 @@ const char * locale_real_names[] =
"menu.hint_key_pic_mode_active",
"menu.hint_key_pic_size_active",
"menu.hint_key_pip_close",
"menu.hint_key_pip_rotate_cw",
"menu.hint_key_pip_rotate_ccw",
"menu.hint_key_pip_setup",
"menu.hint_key_poweroff",
"menu.hint_key_quickzap",

View File

@@ -978,10 +978,13 @@ struct SNeutrinoSettings
int pip_height;
int pip_x;
int pip_y;
int pip_radio_width;
int pip_radio_height;
int pip_radio_x;
int pip_radio_y;
int pip_rotate_lastpos;
#endif
#if ENABLE_QUADPIP
@@ -1234,6 +1237,8 @@ struct SNeutrinoSettings
#if ENABLE_PIP
int key_pip_close;
int key_pip_close_avinput;
int key_pip_rotate_cw;
int key_pip_rotate_ccw;
int key_pip_setup;
int key_pip_swap;
#endif
@@ -1339,6 +1344,16 @@ const time_settings_struct_t handling_infobar_setting[SNeutrinoSettings::HANDLIN
{ 6, LOCALE_TIMING_INFOBAR_MEDIA_VIDEO, LOCALE_MENU_HINT_OSD_BEHAVIOR_INFOBAR}
};
enum
{
PIP_ROFF = -1,
PIP_UP_LEFT = 0,
PIP_UP_RIGHT = 1,
PIP_DOWN_RIGHT = 2,
PIP_DOWN_LEFT = 3
};
// lcdd
#define DEFAULT_VFD_BRIGHTNESS 15
#define DEFAULT_VFD_STANDBYBRIGHTNESS 5