MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_update_block_index

Function ff_update_block_index

libavcodec/mpegvideo.h:335–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 const qpel_mc_func (*qpix_op)[16]);
334
335static inline void ff_update_block_index(MpegEncContext *s, int bits_per_raw_sample,
336 int lowres, int chroma_x_shift)
337{
338 const int bytes_per_pixel = 1 + (bits_per_raw_sample > 8);
339 const int block_size = (8 * bytes_per_pixel) >> lowres;
340
341 s->block_index[0]+=2;
342 s->block_index[1]+=2;
343 s->block_index[2]+=2;
344 s->block_index[3]+=2;
345 s->block_index[4]++;
346 s->block_index[5]++;
347 s->dest[0]+= 2*block_size;
348 s->dest[1] += (2 >> chroma_x_shift) * block_size;
349 s->dest[2] += (2 >> chroma_x_shift) * block_size;
350}
351
352#endif /* AVCODEC_MPEGVIDEO_H */

Callers 7

rv10_decode_packetFunction · 0.85
decode_sliceFunction · 0.85
update_block_indexFunction · 0.85
ff_h261_reorder_mb_indexFunction · 0.85
encode_threadFunction · 0.85
mpeg4_decode_partition_aFunction · 0.85
mpeg4_decode_partition_bFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected