Home
last modified time | relevance | path

Searched refs:pu1_buf (Results 1 – 25 of 44) sorted by relevance

12

/external/libavc/test/encoder/
Dinput.c123 UWORD8 *pu1_buf; in read_input() local
133 pu1_buf = ps_raw_buf->apv_bufs[0]; in read_input()
137 bytes = fread(pu1_buf, sizeof(UWORD8), wd, fp); in read_input()
142 pu1_buf += strd; in read_input()
157 pu1_buf = ps_raw_buf->apv_bufs[comp]; in read_input()
161 bytes = fread(pu1_buf, sizeof(UWORD8), wd, fp); in read_input()
166 pu1_buf += strd; in read_input()
178 UWORD8 *pu1_buf; in dump_input() local
188 pu1_buf = ps_raw_buf->apv_bufs[0]; in dump_input()
192 bytes = fwrite(pu1_buf, sizeof(UWORD8), wd, fp); in dump_input()
[all …]
Drecon.c57 UWORD8 *pu1_buf; in write_recon() local
70 pu1_buf = ps_raw_buf->apv_bufs[comp]; in write_recon()
73 bytes = fwrite(pu1_buf, sizeof(UWORD8), wd, fp); in write_recon()
78 pu1_buf += wd; in write_recon()
93 UWORD8 *pu1_buf; in allocate_recon() local
105 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, pic_size); in allocate_recon()
106 if(NULL == pu1_buf) in allocate_recon()
113 ps_app_ctxt->as_recon_buf[i].pu1_buf = pu1_buf; in allocate_recon()
120 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, pic_size); in allocate_recon()
121 if(NULL == pu1_buf) in allocate_recon()
[all …]
Doutput.c49 IV_STATUS_T write_output(FILE *fp, UWORD8 *pu1_buf, WORD32 num_bytes) in write_output() argument
53 bytes = fwrite(pu1_buf, sizeof(UWORD8), num_bytes, fp); in write_output()
66 UWORD8 *pu1_buf; in allocate_output() local
77 pu1_buf = (UWORD8 *)ih264a_aligned_malloc(16, buf_size); in allocate_output()
78 if(NULL == pu1_buf) in allocate_output()
85 ps_app_ctxt->as_output_buf[i].pu1_buf = pu1_buf; in allocate_output()
104 ih264a_aligned_free(ps_app_ctxt->as_output_buf[i].pu1_buf); in free_output()
Dapp.h186 UWORD8 *pu1_buf; member
197 UWORD8 *pu1_buf; member
206 UWORD8 *pu1_buf; member
336 IV_STATUS_T write_output(FILE *fp, UWORD8 *pu1_buf, WORD32 num_bytes);
348 void init_raw_buf_descr(app_ctxt_t *ps_app_ctxt, iv_raw_buf_t *ps_raw_buf, UWORD8 *pu1_buf, IV_COLO…
Dmain.c1523 UWORD8 *pu1_buf = NULL; in synchronous_encode() local
1633 pu1_buf = ps_app_ctxt->as_input_buf[i].pu1_buf; in synchronous_encode()
1651 ps_video_encode_ip->pv_bufs = pu1_buf; in synchronous_encode()
1667 ps_inp_raw_buf->apv_bufs[0] = pu1_buf; in synchronous_encode()
1670 pu1_buf += ps_app_ctxt->u4_strd * ps_app_ctxt->u4_ht; in synchronous_encode()
1671 ps_inp_raw_buf->apv_bufs[1] = pu1_buf; in synchronous_encode()
1685 ps_inp_raw_buf->apv_bufs[0] = pu1_buf; in synchronous_encode()
1686 pu1_buf += (ps_app_ctxt->u4_wd) * ps_app_ctxt->u4_ht; in synchronous_encode()
1687 ps_inp_raw_buf->apv_bufs[1] = pu1_buf; in synchronous_encode()
1688 pu1_buf += (ps_app_ctxt->u4_wd >> 1) * (ps_app_ctxt->u4_ht >> 1); in synchronous_encode()
[all …]
/external/libmpeg2/common/
Dimpeg2_job_queue.c231 UWORD8 *pu1_buf; in impeg2_jobq_init() local
232 pu1_buf = (UWORD8 *)pv_buf; in impeg2_jobq_init()
234 ps_jobq = (jobq_t *)pu1_buf; in impeg2_jobq_init()
235 pu1_buf += sizeof(jobq_t); in impeg2_jobq_init()
238 ps_jobq->pv_mutex = pu1_buf; in impeg2_jobq_init()
239 pu1_buf += ithread_get_mutex_lock_size(); in impeg2_jobq_init()
247 ps_jobq->pv_buf_base = pu1_buf; in impeg2_jobq_init()
248 ps_jobq->pv_buf_wr = pu1_buf; in impeg2_jobq_init()
249 ps_jobq->pv_buf_rd = pu1_buf; in impeg2_jobq_init()
250 ps_jobq->pv_buf_end = pu1_buf + i4_buf_size; in impeg2_jobq_init()
[all …]
Dideint_debug.c97 UWORD8 *pu1_buf; in ideint_corrupt_pic() local
101 pu1_buf = ps_pic->apu1_buf[i]; in ideint_corrupt_pic()
105 memset(pu1_buf, val, wd); in ideint_corrupt_pic()
106 pu1_buf += strd; in ideint_corrupt_pic()
/external/libhevc/decoder/
Dihevcd_job_queue.c234 UWORD8 *pu1_buf; in ihevcd_jobq_init() local
235 pu1_buf = (UWORD8 *)pv_buf; in ihevcd_jobq_init()
237 ps_jobq = (jobq_t *)pu1_buf; in ihevcd_jobq_init()
238 pu1_buf += sizeof(jobq_t); in ihevcd_jobq_init()
241 ps_jobq->pv_mutex = pu1_buf; in ihevcd_jobq_init()
242 pu1_buf += ithread_get_mutex_lock_size(); in ihevcd_jobq_init()
250 ps_jobq->pv_buf_base = pu1_buf; in ihevcd_jobq_init()
251 ps_jobq->pv_buf_wr = pu1_buf; in ihevcd_jobq_init()
252 ps_jobq->pv_buf_rd = pu1_buf; in ihevcd_jobq_init()
253 ps_jobq->pv_buf_end = pu1_buf + buf_size; in ihevcd_jobq_init()
[all …]
Dihevcd_utils.c459 UWORD8 *pu1_buf; in ihevcd_pic_buf_mgr_add_bufs() local
482 pu1_buf = (UWORD8 *)ps_codec->pu1_ref_pic_buf_base; in ihevcd_pic_buf_mgr_add_bufs()
515 ps_pic_buf->pu1_luma = pu1_buf + ps_codec->i4_strd * PAD_TOP + PAD_LEFT; in ihevcd_pic_buf_mgr_add_bufs()
516 pu1_buf += luma_samples; in ihevcd_pic_buf_mgr_add_bufs()
518 ps_pic_buf->pu1_chroma = pu1_buf + ps_codec->i4_strd * (PAD_TOP / 2) + PAD_LEFT; in ihevcd_pic_buf_mgr_add_bufs()
519 pu1_buf += chroma_samples; in ihevcd_pic_buf_mgr_add_bufs()
525 UWORD8 *pu1_buf; in ihevcd_pic_buf_mgr_add_bufs() local
532 pu1_buf = ps_pic_buf->pu1_luma; in ihevcd_pic_buf_mgr_add_bufs()
535 pu1_buf[-1] = 0; in ihevcd_pic_buf_mgr_add_bufs()
536 pu1_buf[wd] = 0; in ihevcd_pic_buf_mgr_add_bufs()
[all …]
Dihevcd_api.c1154 UWORD8 *pu1_buf; in ihevcd_allocate_static_bufs() local
1299 pu1_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1300 RETURN_IF((NULL == pu1_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1304 ps_codec->as_process[i].s_sao_ctxt.pu1_tmp_buf_luma = (UWORD8 *)pu1_buf; in ihevcd_allocate_static_bufs()
1305 pu1_buf += 4 * MAX_CTB_SIZE * MAX_CTB_SIZE * sizeof(UWORD8); in ihevcd_allocate_static_bufs()
1307 ps_codec->as_process[i].s_sao_ctxt.pu1_tmp_buf_chroma = (UWORD8 *)pu1_buf; in ihevcd_allocate_static_bufs()
1308 pu1_buf += 4 * MAX_CTB_SIZE * MAX_CTB_SIZE * sizeof(UWORD8); in ihevcd_allocate_static_bufs()
1315 pu1_buf = pf_aligned_alloc(pv_mem_ctxt, 128, size); in ihevcd_allocate_static_bufs()
1316 RETURN_IF((NULL == pu1_buf), IV_FAIL); in ihevcd_allocate_static_bufs()
1317 memset(pu1_buf, 0, size); in ihevcd_allocate_static_bufs()
[all …]
Dihevcd_ilf_padding.c193 UWORD8 *pu1_buf; in ihevcd_ilf_pad_frame() local
200pu1_buf = ps_deblk_ctxt->pu1_cur_pic_luma + ps_codec->i4_strd * ps_sps->i2_pic_height_in_luma_samp… in ihevcd_ilf_pad_frame()
202 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_ilf_pad_frame()
204pu1_buf = ps_deblk_ctxt->pu1_cur_pic_chroma + ps_codec->i4_strd * (ps_sps->i2_pic_height_in_luma_s… in ihevcd_ilf_pad_frame()
205 …ihevc_pad_bottom(pu1_buf, ps_codec->i4_strd, ps_sps->i2_pic_width_in_luma_samples + PAD_WD, PAD_BO… in ihevcd_ilf_pad_frame()
Dihevcd_process_slice.c125 volatile UWORD8 *pu1_buf; in ihevcd_proc_map_check() local
144 pu1_buf = (ps_codec->pu1_proc_map + idx); in ihevcd_proc_map_check()
145 status = *pu1_buf & bit_mask; in ihevcd_proc_map_check()
159 pu1_buf = (ps_codec->pu1_proc_map + idx); in ihevcd_proc_map_check()
160 status = *pu1_buf & bit_mask; in ihevcd_proc_map_check()
168 pu1_buf = (ps_codec->pu1_proc_map + idx); in ihevcd_proc_map_check()
169 status = *pu1_buf & bit_mask; in ihevcd_proc_map_check()
210 UWORD8 *pu1_buf; in ihevcd_proc_map_update() local
213 pu1_buf = (ps_codec->pu1_proc_map + idx); in ihevcd_proc_map_update()
214 *pu1_buf = *pu1_buf | bit_mask; in ihevcd_proc_map_update()
[all …]
Dihevcd_nal.c96 WORD32 ihevcd_nal_search_start_code(UWORD8 *pu1_buf, WORD32 bytes_remaining) in ihevcd_nal_search_start_code() argument
110 if(pu1_buf[ofst] != 0) in ihevcd_nal_search_start_code()
118 (pu1_buf[ofst + 1] == START_CODE_PREFIX_BYTE) && in ihevcd_nal_search_start_code()
129 if((START_CODE_PREFIX_BYTE == pu1_buf[ofst]) && in ihevcd_nal_search_start_code()
Dihevcd_bitstream.c106 UWORD8 *pu1_buf, in ihevcd_bits_init() argument
114 pu4_buf = (UWORD32 *)pu1_buf; in ihevcd_bits_init()
121 ps_bitstrm->pu1_buf_base = pu1_buf; in ihevcd_bits_init()
126 ps_bitstrm->pu1_buf_max = pu1_buf + u4_numbytes + 8; in ihevcd_bits_init()
/external/libavc/decoder/
Dih264d_nal.c64 void ih264d_check_if_aud(UWORD8 *pu1_buf, in ih264d_check_if_aud() argument
72 u1_first_byte = pu1_buf[u4_cur_pos + 1]; in ih264d_check_if_aud()
82 WORD32 ih264d_find_start_code(UWORD8 *pu1_buf, in ih264d_find_start_code() argument
95 if(pu1_buf[u4_cur_pos] == 0) in ih264d_find_start_code()
97 else if(pu1_buf[u4_cur_pos] in ih264d_find_start_code()
117 if(pu1_buf[u4_cur_pos] == 0) in ih264d_find_start_code()
119 else if(pu1_buf[u4_cur_pos] in ih264d_find_start_code()
123 ih264d_check_if_aud(pu1_buf, u4_cur_pos, u4_max_ofst, in ih264d_find_start_code()
152 WORD32 ih264d_get_next_nal_unit(UWORD8 *pu1_buf, in ih264d_get_next_nal_unit() argument
163 ih264d_find_start_code(pu1_buf, u4_cur_pos, u4_max_ofst, in ih264d_get_next_nal_unit()
Dih264d_parse_islice.c1215 UWORD8 *pu1_buf; in ih264d_parse_ipcm_mb() local
1237 pu1_buf = ps_dec->pu1_left_nnz_y; in ih264d_parse_ipcm_mb()
1238 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_ipcm_mb()
1240 pu1_buf = ps_cur_mb_info->ps_curmb->pu1_nnz_y; in ih264d_parse_ipcm_mb()
1241 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_ipcm_mb()
1243 pu1_buf = ps_cur_mb_info->ps_curmb->pu1_nnz_uv; in ih264d_parse_ipcm_mb()
1244 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_ipcm_mb()
1246 pu1_buf = ps_dec->pu1_left_nnz_uv; in ih264d_parse_ipcm_mb()
1247 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_ipcm_mb()
1313 UWORD8 *pu1_buf; in ih264d_parse_ipcm_mb() local
[all …]
Dih264d_mb_utils.c485 UWORD8 *pu1_buf; in ih264d_get_mb_info_cabac_nonmbaff() local
487 pu1_buf = ps_dec->pu1_left_nnz_y; in ih264d_get_mb_info_cabac_nonmbaff()
488 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_get_mb_info_cabac_nonmbaff()
490 pu1_buf = ps_dec->pu1_left_nnz_uv; in ih264d_get_mb_info_cabac_nonmbaff()
491 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_get_mb_info_cabac_nonmbaff()
1173 UWORD8 *pu1_buf; in ih264d_update_mbaff_left_nnz() local
1176 pu1_buf = ps_dec->pu1_left_nnz_y; in ih264d_update_mbaff_left_nnz()
1177 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_update_mbaff_left_nnz()
1180 pu1_buf = ps_dec->pu1_left_nnz_uv; in ih264d_update_mbaff_left_nnz()
1181 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_update_mbaff_left_nnz()
[all …]
Dih264d_deblocking.c950 UWORD8 *pu1_buf; in ih264d_deblock_picture_mbaff() local
951 pu1_buf = ps_dec->ps_cur_pic->pu1_buf1 - PAD_LEN_Y_H; in ih264d_deblock_picture_mbaff()
952 pu1_buf += ps_dec->u2_pic_ht * ps_dec->u2_frm_wd_y; in ih264d_deblock_picture_mbaff()
953 ps_dec->pf_pad_bottom(pu1_buf, ps_dec->u2_frm_wd_y, ps_dec->u2_frm_wd_y, in ih264d_deblock_picture_mbaff()
955 pu1_buf = ps_dec->ps_cur_pic->pu1_buf2 - PAD_LEN_UV_H * YUV420SP_FACTOR; in ih264d_deblock_picture_mbaff()
956 pu1_buf += (ps_dec->u2_pic_ht >> 1) * ps_dec->u2_frm_wd_uv; in ih264d_deblock_picture_mbaff()
958 ps_dec->pf_pad_bottom(pu1_buf, ps_dec->u2_frm_wd_uv, in ih264d_deblock_picture_mbaff()
1087 UWORD8 *pu1_buf; in ih264d_deblock_picture_non_mbaff() local
1088 pu1_buf = ps_dec->ps_cur_pic->pu1_buf1 - PAD_LEN_Y_H; in ih264d_deblock_picture_non_mbaff()
1089 pu1_buf += ps_dec->u2_pic_ht * ps_dec->u2_frm_wd_y; in ih264d_deblock_picture_non_mbaff()
[all …]
Dih264d_parse_cabac.c1201 UWORD8 *pu1_buf; in ih264d_parse_residual4x4_cabac() local
1202 pu1_buf = ps_cur_mb_info->ps_top_mb->pu1_nnz_y; in ih264d_parse_residual4x4_cabac()
1203 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_residual4x4_cabac()
1206 pu1_buf = ps_cur_mb_info->ps_top_mb->pu1_nnz_uv; in ih264d_parse_residual4x4_cabac()
1207 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_residual4x4_cabac()
1217 UWORD8 *pu1_buf; in ih264d_parse_residual4x4_cabac() local
1220 pu1_buf = ps_dec->pu1_left_nnz_uv; in ih264d_parse_residual4x4_cabac()
1221 pu4_buf = (UWORD32 *)pu1_buf; in ih264d_parse_residual4x4_cabac()
1227 UWORD8 *pu1_buf; in ih264d_parse_residual4x4_cabac() local
1230 pu1_buf = ps_dec->pu1_left_nnz_uv; in ih264d_parse_residual4x4_cabac()
[all …]
/external/libavc/common/
Dih264_list.c257 UWORD8 *pu1_buf; in ih264_list_init() local
259 pu1_buf = (UWORD8 *)pv_buf; in ih264_list_init()
261 ps_list = (list_t *)pu1_buf; in ih264_list_init()
262 pu1_buf += sizeof(list_t); in ih264_list_init()
265 ps_list->pv_mutex = pu1_buf; in ih264_list_init()
266 pu1_buf += ithread_get_mutex_lock_size(); in ih264_list_init()
280 ps_list->pv_buf_base = pu1_buf; in ih264_list_init()
Dih264_buf_mgr.c240 UWORD8 *pu1_buf; in ih264_buf_mgr_init() local
242 pu1_buf = (UWORD8 *)pv_buf; in ih264_buf_mgr_init()
244 ps_buf_mgr = (buf_mgr_t *)pu1_buf; in ih264_buf_mgr_init()
245 pu1_buf += sizeof(buf_mgr_t); in ih264_buf_mgr_init()
247 ps_buf_mgr->pv_mutex = pu1_buf; in ih264_buf_mgr_init()
248 pu1_buf += ithread_get_mutex_lock_size(); in ih264_buf_mgr_init()
/external/libavc/encoder/
Dih264e_api.c3710 UWORD8 *pu1_buf = ps_mem_rec->pv_base; in ih264e_init_mem_rec() local
3717 (void *) (pu1_buf + size); in ih264e_init_mem_rec()
3723 (void *) (pu1_buf + size + max_mb_cols); in ih264e_init_mem_rec()
3731 ps_codec->as_process[i].s_entropy.ps_bitstrm = (void *) (pu1_buf in ih264e_init_mem_rec()
3738 (void *) (pu1_buf + size); in ih264e_init_mem_rec()
3744 (void *) (pu1_buf + size); in ih264e_init_mem_rec()
3754 UWORD8 *pu1_buf = ps_mem_rec->pv_base; in ih264e_init_mem_rec() local
3761 (void *) (pu1_buf + size); in ih264e_init_mem_rec()
3767 (void *) (pu1_buf + size + max_mb_cols); in ih264e_init_mem_rec()
3775 ps_codec->as_process[i].s_entropy.ps_bitstrm = (void *) (pu1_buf in ih264e_init_mem_rec()
[all …]
Dih264e_trace_support.h48 WORD8 * pu1_buf; member
57 void init_trace_support(WORD8 *pu1_buf, WORD32 i4_size);
Dirc_trace_support.h48 WORD8 * pu1_buf; member
57 void init_trace_support(WORD8 *pu1_buf, WORD32 i4_size);
Dih264e_utils.c789 UWORD8 *pu1_buf = (UWORD8 *) ps_codec->ps_pic_buf; in ih264e_pic_buf_mgr_add_bufs() local
793 pu1_buf += BUF_MGR_MAX_CNT * sizeof(pic_buf_t); in ih264e_pic_buf_mgr_add_bufs()
819 ps_pic_buf->pu1_luma = pu1_buf + ps_codec->i4_rec_strd * PAD_TOP in ih264e_pic_buf_mgr_add_bufs()
821 pu1_buf += luma_samples; in ih264e_pic_buf_mgr_add_bufs()
823 ps_pic_buf->pu1_chroma = pu1_buf in ih264e_pic_buf_mgr_add_bufs()
825 pu1_buf += chroma_samples; in ih264e_pic_buf_mgr_add_bufs()
835 pu1_buf += (HPEL_PLANES_CNT - 1) * (chroma_samples + luma_samples); in ih264e_pic_buf_mgr_add_bufs()
887 UWORD8 *pu1_buf = NULL; in ih264e_mv_buf_mgr_add_bufs() local
895 pu1_buf = ps_codec->pv_mv_bank_buf_base; in ih264e_mv_buf_mgr_add_bufs()
896 pu1_buf += BUF_MGR_MAX_CNT * sizeof(mv_buf_t); in ih264e_mv_buf_mgr_add_bufs()
[all …]

12