Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
s5p_mfc_opr_v6.h
Go to the documentation of this file.
1 /*
2  * drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h
3  *
4  * Header file for Samsung MFC (Multi Function Codec - FIMV) driver
5  * Contains declarations of hw related functions.
6  *
7  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
8  * http://www.samsung.com/
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  */
14 
15 #ifndef S5P_MFC_OPR_V6_H_
16 #define S5P_MFC_OPR_V6_H_
17 
18 #include "s5p_mfc_common.h"
19 #include "s5p_mfc_opr.h"
20 
21 #define MFC_CTRL_MODE_CUSTOM MFC_CTRL_MODE_SFR
22 
23 #define MB_WIDTH(x_size) DIV_ROUND_UP(x_size, 16)
24 #define MB_HEIGHT(y_size) DIV_ROUND_UP(y_size, 16)
25 #define S5P_MFC_DEC_MV_SIZE_V6(x, y) (MB_WIDTH(x) * \
26  (((MB_HEIGHT(y)+1)/2)*2) * 64 + 128)
27 
28 /* Definition */
29 #define ENC_MULTI_SLICE_MB_MAX ((1 << 30) - 1)
30 #define ENC_MULTI_SLICE_BIT_MIN 2800
31 #define ENC_INTRA_REFRESH_MB_MAX ((1 << 18) - 1)
32 #define ENC_VBV_BUF_SIZE_MAX ((1 << 30) - 1)
33 #define ENC_H264_LOOP_FILTER_AB_MIN -12
34 #define ENC_H264_LOOP_FILTER_AB_MAX 12
35 #define ENC_H264_RC_FRAME_RATE_MAX ((1 << 16) - 1)
36 #define ENC_H263_RC_FRAME_RATE_MAX ((1 << 16) - 1)
37 #define ENC_H264_PROFILE_MAX 3
38 #define ENC_H264_LEVEL_MAX 42
39 #define ENC_MPEG4_VOP_TIME_RES_MAX ((1 << 16) - 1)
40 #define FRAME_DELTA_H264_H263 1
41 #define TIGHT_CBR_MAX 10
42 
43 /* Definitions for shared memory compatibility */
44 #define PIC_TIME_TOP_V6 S5P_FIMV_D_RET_PICTURE_TAG_TOP_V6
45 #define PIC_TIME_BOT_V6 S5P_FIMV_D_RET_PICTURE_TAG_BOT_V6
46 #define CROP_INFO_H_V6 S5P_FIMV_D_DISPLAY_CROP_INFO1_V6
47 #define CROP_INFO_V_V6 S5P_FIMV_D_DISPLAY_CROP_INFO2_V6
48 
50 #endif /* S5P_MFC_OPR_V6_H_ */