Lines Matching refs:hsample
62 int hsample[3]) in jpeg_table_header()
101 put_bits(p, 16, (avctx->width-1)/(8*hsample[0]) + 1); in jpeg_table_header()
193 void ff_mjpeg_init_hvsample(AVCodecContext *avctx, int hsample[4], int vsample[4]) in ff_mjpeg_init_hvsample()
203 vsample[0] = hsample[0] = in ff_mjpeg_init_hvsample()
204 vsample[1] = hsample[1] = in ff_mjpeg_init_hvsample()
205 vsample[2] = hsample[2] = in ff_mjpeg_init_hvsample()
206 vsample[3] = hsample[3] = 1; in ff_mjpeg_init_hvsample()
209 hsample[0] = hsample[1] = hsample[2] = 1; in ff_mjpeg_init_hvsample()
214 hsample[0] = 2; in ff_mjpeg_init_hvsample()
215 hsample[1] = 2 >> chroma_h_shift; in ff_mjpeg_init_hvsample()
216 hsample[2] = 2 >> chroma_h_shift; in ff_mjpeg_init_hvsample()
226 int hsample[4], vsample[4]; in ff_mjpeg_encode_picture_header() local
233 ff_mjpeg_init_hvsample(avctx, hsample, vsample); in ff_mjpeg_encode_picture_header()
242 jpeg_table_header(avctx, pb, intra_scantable, luma_intra_matrix, chroma_intra_matrix, hsample); in ff_mjpeg_encode_picture_header()
263 put_bits(pb, 4, hsample[0]); /* H factor */ in ff_mjpeg_encode_picture_header()
269 put_bits(pb, 4, hsample[1]); /* H factor */ in ff_mjpeg_encode_picture_header()
275 put_bits(pb, 4, hsample[2]); /* H factor */ in ff_mjpeg_encode_picture_header()
281 put_bits(pb, 4, hsample[3]); /* H factor */ in ff_mjpeg_encode_picture_header()