2016-06-12 20:43:24 +00:00
|
|
|
//
|
|
|
|
// Copyright (C) 2015-2016 Markus Hiienkari <mhiienka@niksula.hut.fi>
|
|
|
|
//
|
|
|
|
// This file is part of Open Source Scan Converter project.
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef AVCONFIG_H_
|
|
|
|
#define AVCONFIG_H_
|
|
|
|
|
|
|
|
#include "alt_types.h"
|
2016-08-20 12:54:28 +00:00
|
|
|
#include "tvp7002.h"
|
2016-06-12 20:43:24 +00:00
|
|
|
|
|
|
|
#define SCANLINESTR_MAX 15
|
|
|
|
#define HV_MASK_MAX 63
|
|
|
|
#define VIDEO_LPF_MAX 5
|
|
|
|
#define SAMPLER_PHASE_MAX 31
|
|
|
|
#define SYNC_VTH_MAX 31
|
|
|
|
#define VSYNC_THOLD_MIN 10
|
|
|
|
#define VSYNC_THOLD_MAX 200
|
2016-08-14 15:57:50 +00:00
|
|
|
#define SD_SYNC_WIN_MAX 255
|
2016-06-12 20:43:24 +00:00
|
|
|
#define PLL_COAST_MAX 5
|
|
|
|
|
|
|
|
#define SL_MODE_MAX 2
|
2016-07-09 20:12:35 +00:00
|
|
|
#define SL_TYPE_MAX 2
|
2016-06-12 20:43:24 +00:00
|
|
|
#define LM_MODE_MAX 1
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
alt_u8 sl_mode;
|
|
|
|
alt_u8 sl_type;
|
|
|
|
alt_u8 sl_str;
|
|
|
|
alt_u8 sl_id;
|
|
|
|
alt_u8 linemult_target;
|
|
|
|
alt_u8 l3_mode;
|
|
|
|
alt_u8 h_mask;
|
|
|
|
alt_u8 v_mask;
|
|
|
|
alt_u8 tx_mode;
|
|
|
|
alt_u8 s480p_mode;
|
|
|
|
alt_u8 sampler_phase;
|
|
|
|
alt_u8 ypbpr_cs;
|
|
|
|
alt_u8 sync_vth;
|
|
|
|
alt_u8 vsync_thold;
|
|
|
|
alt_u8 sync_lpf;
|
|
|
|
alt_u8 video_lpf;
|
|
|
|
alt_u8 pre_coast;
|
|
|
|
alt_u8 post_coast;
|
2016-07-09 20:12:35 +00:00
|
|
|
alt_u8 edtv_l2x;
|
|
|
|
alt_u8 interlace_pt;
|
2016-08-14 15:57:50 +00:00
|
|
|
alt_u8 def_input;
|
2016-08-20 12:54:28 +00:00
|
|
|
color_setup_t col;
|
2016-06-22 20:22:59 +00:00
|
|
|
} __attribute__((packed)) avconfig_t;
|
2016-06-12 20:43:24 +00:00
|
|
|
|
|
|
|
int set_default_avconfig();
|
|
|
|
|
|
|
|
#endif
|