/third_party/ffmpeg/libavcodec/ |
H A D | ffv1dec.c | 335 const int chroma_width = AV_CEIL_RSHIFT(width, f->chroma_h_shift); in decode_slice() 337 const int cx = x >> f->chroma_h_shift; in decode_slice() 460 f->chroma_h_shift = get_symbol(c, state, 0); in read_extra_header() 467 if (f->chroma_h_shift > 4U || f->chroma_v_shift > 4U) { in read_extra_header() 469 f->chroma_h_shift, f->chroma_v_shift); in read_extra_header() 536 f->chroma_planes, f->chroma_h_shift, f->chroma_v_shift, in read_extra_header() 556 int chroma_planes, chroma_h_shift, chroma_v_shift, transparency, colorspace, bits_per_raw_sample; in read_header() local 579 chroma_h_shift = get_symbol(c, state, 0); in read_header() 589 chroma_h_shift != f->chroma_h_shift || in read_header() [all...] |
H A D | snowdec.c | 38 int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size; in predict_slice_buffered() 40 const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_tab[s->block_max_depth]; in predict_slice_buffered() 41 int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size; in predict_slice_buffered() 325 s->chroma_h_shift= get_symbol(&s->c, s->header_state, 0); in decode_header() 328 if(s->chroma_h_shift == 1 && s->chroma_v_shift==1){ in decode_header() 330 }else if(s->chroma_h_shift == 0 && s->chroma_v_shift==0){ in decode_header() 332 }else if(s->chroma_h_shift == 2 && s->chroma_v_shift==2){ in decode_header() 335 av_log(s, AV_LOG_ERROR, "unsupported color subsample mode %d %d\n", s->chroma_h_shift, s->chroma_v_shift); in decode_header() 336 s->chroma_h_shift = s->chroma_v_shift = 1; in decode_header() 343 s->chroma_h_shift in decode_header() [all...] |
H A D | snow.h | 154 int chroma_h_shift; member 413 int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size; in predict_slice() 415 const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_tab[s->block_max_depth]; in predict_slice() 416 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size; in predict_slice() 421 av_assert2(s->chroma_h_shift == s->chroma_v_shift); // obmc params assume squares in predict_slice() 494 ((y*c->uvstride + x)>>s->chroma_h_shift), in init_ref() 495 ((y*c->uvstride + x)>>s->chroma_h_shift), in init_ref()
|
H A D | snowenc.c | 125 ret = av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, in encode_init() 251 s->input_picture->data[1] + ((x*block_w)>>s->chroma_h_shift) + ((y*uvstride*block_w)>>s->chroma_v_shift), in encode_q_branch() 252 s->input_picture->data[2] + ((x*block_w)>>s->chroma_h_shift) + ((y*uvstride*block_w)>>s->chroma_v_shift)}; in encode_q_branch() 383 block_s= block_w*block_w>>(s->chroma_h_shift + s->chroma_v_shift); in encode_q_branch() 384 sum = pix_sum(current_data[1], uvstride, block_w>>s->chroma_h_shift, block_w>>s->chroma_v_shift); in encode_q_branch() 387 sum = pix_sum(current_data[2], uvstride, block_w>>s->chroma_h_shift, block_w>>s->chroma_v_shift); in encode_q_branch() 514 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size; in get_dc() 516 const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_tab[s->block_max_depth]; in get_dc() 517 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size; in get_dc() 530 av_assert2(s->chroma_h_shift in get_dc() [all...] |
H A D | mjpegenc_common.c | 266 int chroma_h_shift, chroma_v_shift; in ff_mjpeg_init_hvsample() local 267 av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift, in ff_mjpeg_init_hvsample() 273 hsample[1] = 2 >> chroma_h_shift; in ff_mjpeg_init_hvsample() 274 hsample[2] = 2 >> chroma_h_shift; in ff_mjpeg_init_hvsample()
|
H A D | huffyuv.h | 73 int chroma_h_shift; member
|
H A D | ffv1.h | 85 int chroma_h_shift, chroma_v_shift; member
|
H A D | snow.c | 90 (EDGE_WIDTH >> (i ? s->chroma_h_shift : 0)); in ff_snow_get_buffer() 363 const int scale= plane_index ? (2*s->mv_scale)>>s->chroma_h_shift : 2*s->mv_scale; in ff_snow_pred_block() 381 av_assert2(s->chroma_h_shift == s->chroma_v_shift); // only one mv_scale in ff_snow_pred_block() 486 // dec += FFMAX(s->chroma_h_shift, s->chroma_v_shift); in ff_snow_common_init() 543 w = AV_CEIL_RSHIFT(w, s->chroma_h_shift); in ff_snow_common_init_after_header() 597 int w= is_chroma ? AV_CEIL_RSHIFT(s->avctx->width, s->chroma_h_shift) : s->avctx->width; in halfpel_interpol()
|
H A D | ffv1enc.c | 366 put_symbol(c, state, f->chroma_h_shift, 0); in write_header() 429 put_symbol(c, state, f->chroma_h_shift, 0); in write_extradata() 753 ret = av_pix_fmt_get_chroma_sub_sample (avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift); in encode_init() 851 int max_h_slices = AV_CEIL_RSHIFT(avctx->width , s->chroma_h_shift); in encode_init() 1058 const int chroma_width = AV_CEIL_RSHIFT(width, f->chroma_h_shift); in encode_slice() 1060 const int cx = x >> f->chroma_h_shift; in encode_slice()
|
H A D | mjpegenc.c | 598 int chroma_h_shift, chroma_v_shift; in amv_encode_picture() local 600 av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift, &chroma_v_shift); in amv_encode_picture()
|
H A D | cfhdenc.c | 235 int chroma_h_shift; member 256 &s->chroma_h_shift, in cfhd_encode_init() 270 int width = i ? avctx->width >> s->chroma_h_shift : avctx->width; in cfhd_encode_init()
|
H A D | huffyuvdec.c | 342 s->chroma_h_shift = avctx->extradata[1] & 3; in decode_init() 413 &s->chroma_h_shift, in decode_init() 416 switch ( (s->chroma<<10) | (s->yuv<<9) | (s->alpha<<8) | ((s->bps-1)<<4) | s->chroma_h_shift | (s->chroma_v_shift<<2)) { in decode_init() 896 w >>= s->chroma_h_shift; in decode_slice()
|
H A D | huffyuvenc.c | 233 &s->chroma_h_shift, in encode_init() 344 ((uint8_t*)avctx->extradata)[1] = ((s->bps-1)<<4) | s->chroma_h_shift | (s->chroma_v_shift<<2); in encode_init() 920 w >>= s->chroma_h_shift; in encode_frame()
|
H A D | mjpegdec.c | 1437 int i, mb_x, mb_y, chroma_h_shift, chroma_v_shift, chroma_width, chroma_height; in mjpeg_decode_scan() local 1454 av_pix_fmt_get_chroma_sub_sample(s->avctx->pix_fmt, &chroma_h_shift, in mjpeg_decode_scan() 1456 chroma_width = AV_CEIL_RSHIFT(s->width, chroma_h_shift); in mjpeg_decode_scan()
|