Home
last modified time | relevance | path

Searched refs:chroma_v_shift (Results 1 – 15 of 15) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dffv1dec.c321 const int chroma_height = AV_CEIL_RSHIFT(height, f->chroma_v_shift); in decode_slice()
323 const int cy = y >> f->chroma_v_shift; in decode_slice()
446 f->chroma_v_shift = get_symbol(c, state, 0); in read_extra_header()
452 if (f->chroma_h_shift > 4U || f->chroma_v_shift > 4U) { in read_extra_header()
454 f->chroma_h_shift, f->chroma_v_shift); in read_extra_header()
516 f->chroma_planes, f->chroma_h_shift, f->chroma_v_shift, in read_extra_header()
536 … int chroma_planes, chroma_h_shift, chroma_v_shift, transparency, colorspace, bits_per_raw_sample; in read_header() local
560 chroma_v_shift = get_symbol(c, state, 0); in read_header()
570 chroma_v_shift != f->chroma_v_shift || in read_header()
577 if (chroma_h_shift > 4U || chroma_v_shift > 4U) { in read_header()
[all …]
Dsnowdec.c42 int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in predict_slice_buffered()
329 s->chroma_v_shift= get_symbol(&s->c, s->header_state, 0); in decode_header()
331 if(s->chroma_h_shift == 1 && s->chroma_v_shift==1){ in decode_header()
333 }else if(s->chroma_h_shift == 0 && s->chroma_v_shift==0){ in decode_header()
335 }else if(s->chroma_h_shift == 2 && s->chroma_v_shift==2){ in decode_header()
338 …s, AV_LOG_ERROR, "unsupported color subsample mode %d %d\n", s->chroma_h_shift, s->chroma_v_shift); in decode_header()
339 s->chroma_h_shift = s->chroma_v_shift = 1; in decode_header()
346 s->chroma_h_shift = s->chroma_v_shift = 1; in decode_header()
396 s->avctx->height>>s->chroma_v_shift) >> (s->spatial_decomposition_count-1) <= 1){ in decode_header()
542 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in decode_frame()
Dmjpegenc_common.c195 int chroma_h_shift, chroma_v_shift; in ff_mjpeg_init_hvsample() local
198 &chroma_v_shift); in ff_mjpeg_init_hvsample()
212 vsample[1] = 2 >> chroma_v_shift; in ff_mjpeg_init_hvsample()
213 vsample[2] = 2 >> chroma_v_shift; in ff_mjpeg_init_hvsample()
Dsnowenc.c135 &s->chroma_v_shift); in encode_init()
260 …ut_picture->data[1] + ((x*block_w)>>s->chroma_h_shift) + ((y*uvstride*block_w)>>s->chroma_v_shift), in encode_q_branch()
261 …t_picture->data[2] + ((x*block_w)>>s->chroma_h_shift) + ((y*uvstride*block_w)>>s->chroma_v_shift)}; in encode_q_branch()
386 block_s= block_w*block_w>>(s->chroma_h_shift + s->chroma_v_shift); in encode_q_branch()
387 … sum = pix_sum(current_data[1], uvstride, block_w>>s->chroma_h_shift, block_w>>s->chroma_v_shift); in encode_q_branch()
390 … sum = pix_sum(current_data[2], uvstride, block_w>>s->chroma_h_shift, block_w>>s->chroma_v_shift); in encode_q_branch()
518 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in get_dc()
533 av_assert2(s->chroma_h_shift == s->chroma_v_shift); //obmc stuff above in get_dc()
613 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in get_block_rd()
636 …av_assert2(s->chroma_h_shift == s->chroma_v_shift); //obmc and square assumtions below chckinhg on… in get_block_rd()
[all …]
Dhuffyuv.h74 int chroma_v_shift; member
Dmjpegenc.c547 int chroma_h_shift, chroma_v_shift; in amv_encode_picture() local
549 av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift, &chroma_v_shift); in amv_encode_picture()
565 int vsample = i ? 2 >> chroma_v_shift : 2; in amv_encode_picture()
Dffv1.h90 int chroma_h_shift, chroma_v_shift; member
Dcfhdenc.c236 int chroma_v_shift; member
257 &s->chroma_v_shift); in cfhd_encode_init()
271 int height = i ? FFALIGN(avctx->height >> s->chroma_v_shift, 8) : in cfhd_encode_init()
272 FFALIGN(avctx->height >> s->chroma_v_shift, 8); in cfhd_encode_init()
Dffv1enc.c367 put_symbol(c, state, f->chroma_v_shift, 0); in write_header()
430 put_symbol(c, state, f->chroma_v_shift, 0); in write_extradata()
776 ret = av_pix_fmt_get_chroma_sub_sample (avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift); in encode_init()
875 int max_v_slices = AV_CEIL_RSHIFT(avctx->height, s->chroma_v_shift); in encode_init()
1082 const int chroma_height = AV_CEIL_RSHIFT(height, f->chroma_v_shift); in encode_slice()
1084 const int cy = y >> f->chroma_v_shift; in encode_slice()
Dsnow.c85 int offset = (EDGE_WIDTH >> (i ? s->chroma_v_shift : 0)) * in ff_snow_get_buffer()
387 av_assert2(s->chroma_h_shift == s->chroma_v_shift); // only one mv_scale in ff_snow_pred_block()
547 h = AV_CEIL_RSHIFT(h, s->chroma_v_shift); in ff_snow_common_init_after_header()
600 int h= is_chroma ? AV_CEIL_RSHIFT(s->avctx->height, s->chroma_v_shift) : s->avctx->height; in halfpel_interpol()
Dsnow.h153 int chroma_v_shift; member
412 int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in predict_slice()
419 av_assert2(s->chroma_h_shift == s->chroma_v_shift); // obmc params assume squares in predict_slice()
Dhuffyuvdec.c340 s->chroma_v_shift = (avctx->extradata[1] >> 2) & 3; in decode_init()
412 &s->chroma_v_shift); in decode_init()
414 …10) | (s->yuv<<9) | (s->alpha<<8) | ((s->bps-1)<<4) | s->chroma_h_shift | (s->chroma_v_shift<<2)) { in decode_init()
903 h >>= s->chroma_v_shift; in decode_slice()
1234 s->chroma_v_shift || in decode_frame()
Dhuffyuvenc.c244 &s->chroma_v_shift); in encode_init()
374 … ((uint8_t*)avctx->extradata)[1] = ((s->bps-1)<<4) | s->chroma_h_shift | (s->chroma_v_shift<<2); in encode_init()
952 h >>= s->chroma_v_shift; in encode_frame()
Dmjpegdec.c1421 int i, mb_x, mb_y, chroma_h_shift, chroma_v_shift, chroma_width, chroma_height; in mjpeg_decode_scan() local
1439 &chroma_v_shift); in mjpeg_decode_scan()
1441 chroma_height = AV_CEIL_RSHIFT(s->height, chroma_v_shift); in mjpeg_decode_scan()
/third_party/ffmpeg/doc/
Dsnow.txt55 chroma_v_shift u header_state
186 chroma_v_shift