Lines Matching +full:2 +full:- +full:pixel +full:- +full:align
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
3 * Wave5 series multi-standard codec IP - helper definitions
5 * Copyright (C) 2021-2023 CHIPS&MEDIA INC
13 #include <media/v4l2-device.h>
14 #include <media/v4l2-mem2mem.h>
15 #include <media/v4l2-ctrls.h>
16 #include "wave5-vpuerror.h"
17 #include "wave5-vpuconfig.h"
18 #include "wave5-vdi.h"
37 VPU_INST_STATE_INIT_SEQ = 2,
45 #define MAX_REG_FRAME (WAVE5_MAX_FBS * 2)
48 #define WAVE5_DEC_AVC_BUF_SIZE(_w, _h) ((((ALIGN(_w, 256) / 16) * (ALIGN(_h, 16) / 16)) + 16) * 80)
50 #define WAVE5_FBC_LUMA_TABLE_SIZE(_w, _h) (ALIGN(_h, 64) * ALIGN(_w, 256) / 32)
51 #define WAVE5_FBC_CHROMA_TABLE_SIZE(_w, _h) (ALIGN((_h), 64) * ALIGN((_w) / 2, 256) / 32)
52 #define WAVE5_ENC_AVC_BUF_SIZE(_w, _h) (ALIGN(_w, 64) * ALIGN(_h, 64) / 32)
53 #define WAVE5_ENC_HEVC_BUF_SIZE(_w, _h) (ALIGN(_w, 64) / 64 * ALIGN(_h, 64) / 64 * 128)
75 OPT_CUSTOM_HEADER = 2, /* SET_PARAM command option for setting custom VPS/SPS/PPS */
85 #define HEVC_PROFILE_MAIN10 2
87 #define HEVC_PROFILE_MAIN10_STILLPICTURE 2
91 #define H264_PROFILE_MP 2
113 #define BIT_ALLOC_MODE_FIXED_RATIO 2
121 #define DEC_REFRESH_TYPE_IDR 2
125 #define DEPEND_SLICE_MODE_BOOST 2
133 #define REFRESH_MODE_CTU_COLUMNS 2
140 #define REFRESH_MB_MODE_CTU_COLUMNS 2
192 #define DISPLAY_IDX_FLAG_SEQ_END -1
193 #define DISPLAY_IDX_FLAG_NO_FB -3
194 #define DECODED_IDX_FLAG_NO_FB -1
195 #define DECODED_IDX_FLAG_SKIP -2
197 #define RECON_IDX_FLAG_ENC_END -1
198 #define RECON_IDX_FLAG_ENC_DELAY -2
199 #define RECON_IDX_FLAG_HEADER_ONLY -3
200 #define RECON_IDX_FLAG_CHANGE_PARAM -4
221 FORMAT_ERR = -1,
235 /* 4:2:2 packed format */
281 INT_WAVE5_SLEEP_VPU = 2,
298 PIC_TYPE_B = 2,
351 unsigned int left; /* horizontal pixel offset from left edge */
352 unsigned int top; /* vertical pixel offset from top edge */
353 unsigned int right; /* horizontal pixel offset from right edge */
354 unsigned int bottom; /* vertical pixel offset from bottom edge */
373 u32 luma_bitdepth; /* bit-depth of the luma sample */
374 u32 chroma_bitdepth; /* bit-depth of the chroma sample */
390 * reordering in AVC or B-frames in VC1), this index might be different to
394 * -3(0xFFFD) or -2(0xFFFE) : when a display output cannot be given due to picture
396 * -1(0xFFFF) : when there is no more output for display at the end of sequence
405 * -2 : indicates that no decoded output is generated because decoder meets EOS
407 * -1 : indicates that the decoder fails to decode a picture because there is no available
476 * 2 : main10 profile
485 u32 gop_preset_idx: 4; /* 0 - 9 */
486 u32 decoding_refresh_type: 2; /* 0=non-IRAP, 1=CRA, 2=IDR */
498 * - intra_ctu_refresh_mode (1) -> number of consecutive CTU rows
499 * - intra_ctu_refresh_mode (2) -> the number of consecutive CTU columns
500 * - intra_ctu_refresh_mode (3) -> step size in CTU
501 * - intra_ctu_refresh_mode (4) -> number of intra ct_us to be encoded in a picture
507 * 2 : boost mode (normal encoding speed, moderate picture quality)
510 u32 depend_slice_mode : 2;
512 u32 independ_slice_mode : 1; /* 0=no-multi-slice, 1=slice-in-ctu-number*/
514 u32 max_num_merge: 2;
534 u32 avc_idr_period; /* period of IDR picture (0 ~ 1024). 0 - implies an infinite period */
536 u32 intra_mb_refresh_mode: 2; /* 0=none, 1=row, 2=column, 3=step-size-in-mb */
540 * intra_mb_refresh_mode (1) -> number of consecutive MB rows
541 * intra_mb_refresh_mode (2) ->the number of consecutive MB columns
542 * intra_mb_refresh_mode (3) -> step size in MB
551 u32 avc_slice_mode: 1; /* 0=none, 1=slice-in-mb-number */
557 u32 disable_deblk: 1; /* disable in-loop deblocking filtering */
568 u32 mb_level_rc_enable: 1; /* enable MB-level rate control */
623 u32 pic_type: 2; /* <<vpuapi_h_pic_type>> */
646 PRESET_IDX_IPP = 2, /* consecutive P, cyclic gopsize = 1 */
648 PRESET_IDX_IBPBP = 4, /* gopsize = 2 */
724 struct vpu_buf vb_sub_sam_buf; /* sub-sampled buffer for ME */