Lines Matching refs:pict
391 static int encode_headers(AVCodecContext *avctx, const AVFrame *pict)
420 side_data = av_frame_get_side_data(pict, AV_FRAME_DATA_STEREO3D);
437 if (pict->color_primaries == AVCOL_PRI_BT709 &&
438 pict->color_trc == AVCOL_TRC_IEC61966_2_1) {
443 if (png_get_chrm(pict->color_primaries, s->buf))
445 if (png_get_gama(pict->color_trc, s->buf))
448 side_data = av_frame_get_side_data(pict, AV_FRAME_DATA_ICC_PROFILE);
459 palette = (uint32_t *)pict->data[1];
482 static int encode_frame(AVCodecContext *avctx, const AVFrame *pict)
486 const AVFrame *const p = pict;
494 row_size = (pict->width * s->bits_per_pixel + 7) >> 3;
521 pass_row_size = ff_png_pass_row_size(pass, s->bits_per_pixel, pict->width);
524 for (y = 0; y < pict->height; y++)
530 ptr, pict->width);
540 for (y = 0; y < pict->height; y++) {
576 static int add_icc_profile_size(AVCodecContext *avctx, const AVFrame *pict,
585 if (!pict)
587 sd = av_frame_get_side_data(pict, AV_FRAME_DATA_ICC_PROFILE);
605 const AVFrame *pict, int *got_packet)
620 if ((ret = add_icc_profile_size(avctx, pict, &max_packet_size)))
633 ret = encode_headers(avctx, pict);
637 ret = encode_frame(avctx, pict);
793 static int apng_encode_frame(AVCodecContext *avctx, const AVFrame *pict,
810 best_fctl_chunk->width = pict->width;
811 best_fctl_chunk->height = pict->height;
815 return encode_frame(avctx, pict);
822 diffFrame->format = pict->format;
823 diffFrame->width = pict->width;
824 diffFrame->height = pict->height;
853 diffFrame->width = pict->width;
854 diffFrame->height = pict->height;
869 diffFrame->width = pict->width;
870 diffFrame->height = pict->height;
877 if (apng_do_inverse_blend(diffFrame, pict, &fctl_chunk, bpp) < 0)
923 const AVFrame *pict, int *got_packet)
931 if (pict && s->color_type == PNG_COLOR_TYPE_PALETTE) {
932 uint32_t checksum = ~av_crc(av_crc_get_table(AV_CRC_32_IEEE_LE), ~0U, pict->data[1], 256 * sizeof(uint32_t));
951 if ((ret = add_icc_profile_size(avctx, pict, &max_packet_size)))
957 if (!pict)
964 ret = encode_headers(avctx, pict);
982 if (pict) {
993 ret = apng_encode_frame(avctx, pict, &fctl_chunk, &s->last_frame_fctl);
1028 if (pict) {
1039 s->prev_frame->format = pict->format;
1040 s->prev_frame->width = pict->width;
1041 s->prev_frame->height = pict->height;
1059 ret = av_frame_ref(s->last_frame, (AVFrame*)pict);