MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_image_width

Function hb_image_width

libhb/handbrake/internal.h:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static inline int hb_image_width(int pix_fmt, int width, int plane)
231{
232 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
233
234 if (desc != NULL && (plane == 1 || plane == 2))
235 {
236 // The wacky arithmetic assures rounding up.
237 width = -((-width) >> desc->log2_chroma_w);
238 }
239
240 return width;
241}
242
243static inline int hb_image_height(int pix_fmt, int height, int plane)
244{

Callers 6

hb_detelecine_initFunction · 0.85
unsharp_init_threadFunction · 0.85
hb_buffer_init_planesFunction · 0.85
hb_image_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected