1 /* 2 * Copyright (C) 2014 Amlogic Corporation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef _PLAYER_SET_DISP_H_ 18 #define _PLAYER_SET_DISP_H_ 19 20 #include "audio_external_render.h" 21 22 #define MID_800_400_FREESCALE (0x10001) //mid 800*400 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 typedef enum 29 { 30 DISP_MODE_480I = 1, 31 DISP_MODE_480P = 2, 32 DISP_MODE_576I = 3, 33 DISP_MODE_576P = 4, 34 DISP_MODE_720P = 5, 35 DISP_MODE_1080I = 6, 36 DISP_MODE_1080P = 7 37 } 38 display_mode; 39 40 typedef struct { 41 display_mode disp_mode; 42 int osd_disble_coordinate[8]; 43 int osd_enable_coordinate[8]; 44 int video_enablecoordinate[4]; 45 int fb0_freescale_width; 46 int fb0_freescale_height; 47 int fb1_freescale_width; 48 int fb1_freescale_height; 49 } freescale_setting_t; 50 51 52 53 int set_sysfs_str(const char *path, const char *val); 54 int get_sysfs_str(const char *path, char *valstr, int size); 55 int set_sysfs_int(const char *path, int val); 56 int get_sysfs_int(const char *path); 57 58 int set_black_policy(int blackout); 59 int get_black_policy(); 60 int set_tsync_enable(int enable); 61 int get_tsync_enable(void); 62 int set_tsync_discontinue(int enable); 63 int get_pts_discontinue(); 64 int set_fb0_blank(int blank); 65 int set_fb1_blank(int blank); 66 int set_subtitle_num(int num); 67 int av_get_subtitle_curr(); 68 int set_subtitle_startpts(int pts); 69 int set_subtitle_fps(int fps); 70 int set_subtitle_subtype(int subtype); 71 void get_display_mode(char *mode); 72 int set_fb0_freescale(int freescale); 73 int set_fb1_freescale(int freescale); 74 int set_display_axis(int *coordinate); 75 int set_video_axis(int *coordinate); 76 int set_fb0_scale_width(int width); 77 int set_fb0_scale_height(int height); 78 int set_fb1_scale_width(int width); 79 int set_fb1_scale_height(int height); 80 int check_audiodsp_fatal_err(void); 81 int set_stb_source_hiu(void); 82 int set_stb_demux_source_hiu(void); 83 84 int set_subtitle_enable(int num); 85 int set_subtitle_curr(int num); 86 int check_file_same(char *filename2); 87 int set_auto_refresh_rate(int enable); 88 int get_auto_refresh_rate(); 89 int reset_auto_refresh_rate(); 90 //player sysfs API channel 91 int set_amutils_enable(int isOn); 92 int set_amutils_cmd(const char* cmd); 93 int get_amutils_cmd(char* cmd); 94 int check_audio_output(); 95 int set_poweron_clock_level(int level); 96 int get_di_prog_proc_config(); 97 int set_di_prog_proc_config(int val); 98 int get_di_detect_3d_enable(); 99 int set_di_detect_3d_enable(int val); 100 101 int set_audio_external_render(audio_render_t *render); 102 103 #ifdef __cplusplus 104 } 105 #endif 106 107 #endif 108