| 349 | } |
| 350 | |
| 351 | void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height) |
| 352 | { |
| 353 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt); |
| 354 | int chroma_shift = desc->log2_chroma_w; |
| 355 | int linesize_align[AV_NUM_DATA_POINTERS]; |
| 356 | int align; |
| 357 | |
| 358 | avcodec_align_dimensions2(s, width, height, linesize_align); |
| 359 | align = FFMAX(linesize_align[0], linesize_align[3]); |
| 360 | linesize_align[1] <<= chroma_shift; |
| 361 | linesize_align[2] <<= chroma_shift; |
| 362 | align = FFMAX3(align, linesize_align[1], linesize_align[2]); |
| 363 | *width = FFALIGN(*width, align); |
| 364 | } |
| 365 | |
| 366 | int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, |
| 367 | enum AVSampleFormat sample_fmt, const uint8_t *buf, |
nothing calls this directly
no test coverage detected