Home
last modified time | relevance | path

Searched refs:pict (Results 1 – 25 of 56) sorted by relevance

123

/third_party/ffmpeg/libavcodec/
Dpngenc.c345 static int encode_headers(AVCodecContext *avctx, const AVFrame *pict) in encode_headers() argument
373 side_data = av_frame_get_side_data(pict, AV_FRAME_DATA_STEREO3D); in encode_headers()
390 if (pict->color_primaries == AVCOL_PRI_BT709 && in encode_headers()
391 pict->color_trc == AVCOL_TRC_IEC61966_2_1) { in encode_headers()
396 if (png_get_chrm(pict->color_primaries, s->buf)) in encode_headers()
398 if (png_get_gama(pict->color_trc, s->buf)) in encode_headers()
408 palette = (uint32_t *)pict->data[1]; in encode_headers()
431 static int encode_frame(AVCodecContext *avctx, const AVFrame *pict) in encode_frame() argument
434 const AVFrame *const p = pict; in encode_frame()
442 row_size = (pict->width * s->bits_per_pixel + 7) >> 3; in encode_frame()
[all …]
Dasvenc.c210 const AVFrame *pict, int *got_packet) in encode_frame() argument
216 if (pict->width % 16 || pict->height % 16) { in encode_frame()
222 clone->format = pict->format; in encode_frame()
223 clone->width = FFALIGN(pict->width, 16); in encode_frame()
224 clone->height = FFALIGN(pict->height, 16); in encode_frame()
231 ret = av_frame_copy(clone, pict); in encode_frame()
239 int w = AV_CEIL_RSHIFT(pict->width, !!i); in encode_frame()
240 int h = AV_CEIL_RSHIFT(pict->height, !!i); in encode_frame()
266 dct_get(a, pict, mb_x, mb_y); in encode_frame()
274 dct_get(a, pict, mb_x, mb_y); in encode_frame()
[all …]
Dh263dec.c430 AVFrame *pict = data; in ff_h263_decode_frame() local
436 if ((ret = av_frame_ref(pict, s->next_picture_ptr->f)) < 0) in ff_h263_decode_frame()
694 if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0) in ff_h263_decode_frame()
696 ff_print_debug_info(s, s->current_picture_ptr, pict); in ff_h263_decode_frame()
697 ff_mpv_export_qp_table(s, pict, s->current_picture_ptr, FF_QSCALE_TYPE_MPEG1); in ff_h263_decode_frame()
699 if ((ret = av_frame_ref(pict, s->last_picture_ptr->f)) < 0) in ff_h263_decode_frame()
701 ff_print_debug_info(s, s->last_picture_ptr, pict); in ff_h263_decode_frame()
702 ff_mpv_export_qp_table(s, pict, s->last_picture_ptr, FF_QSCALE_TYPE_MPEG1); in ff_h263_decode_frame()
706 if ( pict->format == AV_PIX_FMT_YUV420P in ff_h263_decode_frame()
709 av_frame_make_writable(pict); in ff_h263_decode_frame()
[all …]
Drpzaenc.c549 static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) in rpza_encode_stream() argument
566 uint16_t *src_pixels = (uint16_t *)pict->data[0]; in rpza_encode_stream()
574 bi.rowstride = pict->linesize[0] / 2; in rpza_encode_stream()
785 const AVFrame *pict = frame; in rpza_encode_frame() local
799 s->prev_frame->format = pict->format; in rpza_encode_frame()
800 s->prev_frame->width = pict->width; in rpza_encode_frame()
801 s->prev_frame->height = pict->height; in rpza_encode_frame()
809 rpza_encode_stream(s, pict); in rpza_encode_frame()
Dfitsenc.c38 const AVFrame *pict, int *got_packet) in fits_encode_frame() argument
40 AVFrame * const p = (AVFrame *)pict; in fits_encode_frame()
Drv10.c601 AVFrame *pict = data; in rv10_decode_frame() local
662 if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0) in rv10_decode_frame()
664 ff_print_debug_info(s, s->current_picture_ptr, pict); in rv10_decode_frame()
665 ff_mpv_export_qp_table(s, pict, s->current_picture_ptr, FF_QSCALE_TYPE_MPEG1); in rv10_decode_frame()
667 if ((ret = av_frame_ref(pict, s->last_picture_ptr->f)) < 0) in rv10_decode_frame()
669 ff_print_debug_info(s, s->last_picture_ptr, pict); in rv10_decode_frame()
670 ff_mpv_export_qp_table(s, pict,s->last_picture_ptr, FF_QSCALE_TYPE_MPEG1); in rv10_decode_frame()
Dproresenc_anatoliy.c720 const AVFrame *pict, int *got_packet) in prores_encode_frame() argument
748 …if (pict->top_field_first || !pict->interlaced_frame) { /* tff frame or progressive frame interpre… in prores_encode_frame()
762 …*buf++ = ff_int_from_list_or_default(avctx, "frame color primaries", pict->color_primaries, valid_… in prores_encode_frame()
763 *buf++ = ff_int_from_list_or_default(avctx, "frame color trc", pict->color_trc, valid_trc, 0); in prores_encode_frame()
764 …*buf++ = ff_int_from_list_or_default(avctx, "frame colorspace", pict->colorspace, valid_colorspace… in prores_encode_frame()
780 pic_size = prores_encode_picture(avctx, pict, buf, in prores_encode_frame()
788 pic_size = prores_encode_picture(avctx, pict, pkt->data + compress_frame_size, in prores_encode_frame()
Dgif.c476 const AVFrame *pict, int *got_packet) in gif_encode_frame() argument
489 palette = (uint32_t*)pict->data[1]; in gif_encode_frame()
501 pict->data[0], pict->linesize[0], pkt); in gif_encode_frame()
510 ret = av_frame_ref(s->last_frame, (AVFrame*)pict); in gif_encode_frame()
Dmpegutils.c103 void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_table, in ff_print_debug_info2() argument
180 … sd = av_frame_new_side_data(pict, AV_FRAME_DATA_MOTION_VECTORS, mbcount * sizeof(AVMotionVector)); in ff_print_debug_info2()
200 av_get_picture_type_char(pict->pict_type)); in ff_print_debug_info2()
Dbmpenc.c67 const AVFrame *pict, int *got_packet) in bmp_encode_frame() argument
69 const AVFrame * const p = pict; in bmp_encode_frame()
Dqtrleenc.c367 const AVFrame *pict, int *got_packet) in qtrle_encode_frame() argument
384 pkt->size = encode_frame(s, pict, pkt->data); in qtrle_encode_frame()
388 ret = av_frame_ref(s->previous_frame, pict); in qtrle_encode_frame()
Dxwdenc.c34 const AVFrame *pict, int *got_packet) in xwd_encode_frame() argument
43 AVFrame * const p = (AVFrame *)pict; in xwd_encode_frame()
Dxsubdec.c144 rect->pict.data[j] = rect->data[j]; in decode_frame()
145 rect->pict.linesize[j] = rect->linesize[j]; in decode_frame()
Dxsubenc.c141 rect->data[j] = rect->pict.data[j]; in xsub_encode()
142 rect->linesize[j] = rect->pict.linesize[j]; in xsub_encode()
Dsnowenc.c1489 static int ratecontrol_1pass(SnowContext *s, AVFrame *pict) in ratecontrol_1pass() argument
1524 if(pict->pict_type == AV_PICTURE_TYPE_I){ in ratecontrol_1pass()
1532 pict->quality= ff_rate_estimate_qscale(&s->m, 1); in ratecontrol_1pass()
1533 if (pict->quality < 0) in ratecontrol_1pass()
1535 s->lambda= pict->quality * 3/2; in ratecontrol_1pass()
1536 delta_qlog= qscale2qlog(pict->quality) - s->qlog; in ratecontrol_1pass()
1568 const AVFrame *pict, int *got_packet) in encode_frame() argument
1590 &pict->data[i][y * pict->linesize[i]], in encode_frame()
1600 pic->pict_type = pict->pict_type; in encode_frame()
1601 pic->quality = pict->quality; in encode_frame()
[all …]
Dljpegenc.c228 const AVFrame *pict, int *got_packet) in ljpeg_encode_frame() argument
262 ret = ljpeg_encode_bgr(avctx, &pb, pict); in ljpeg_encode_frame()
264 ret = ljpeg_encode_yuv(avctx, &pb, pict); in ljpeg_encode_frame()
Dflashsvenc.c202 const AVFrame *pict, int *got_packet) in flashsv_encode_frame() argument
205 const AVFrame * const p = pict; in flashsv_encode_frame()
Dintrax8.h112 int ff_intrax8_decode_picture(IntraX8Context *w, Picture *pict,
/third_party/skia/gm/
Ddistantclip.cpp43 sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); in onDraw() local
46 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw()
47 pict->cullRect().height())); in onDraw()
/third_party/flutter/skia/gm/
Ddistantclip.cpp45 sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); in onDraw() local
48 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw()
49 pict->cullRect().height(), in onDraw()
Dpathopsskpclip.cpp50 sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); in onDraw() local
54 canvas->drawPicture(pict); in onDraw()
60 canvas->drawPicture(pict); in onDraw()
/third_party/ffmpeg/doc/examples/
Dmuxing.c452 static void fill_yuv_image(AVFrame *pict, int frame_index, in fill_yuv_image() argument
462 pict->data[0][y * pict->linesize[0] + x] = x + y + i * 3; in fill_yuv_image()
467 pict->data[1][y * pict->linesize[1] + x] = 128 + y + i * 2; in fill_yuv_image()
468 pict->data[2][y * pict->linesize[2] + x] = 64 + x + i * 5; in fill_yuv_image()
/third_party/gstreamer/gstplugins_bad/gst/dvbsuboverlay/
Ddvb-sub.c1234 rect->pict.rowstride = region->width; in _dvb_sub_parse_end_of_display_set()
1235 rect->pict.palette_bits_count = region->depth; in _dvb_sub_parse_end_of_display_set()
1257 …rect->pict.palette = g_malloc ((1 << region->depth) * sizeof (guint32)); /* FIXME: Can we use G… in _dvb_sub_parse_end_of_display_set()
1258 memcpy (rect->pict.palette, clut_table, in _dvb_sub_parse_end_of_display_set()
1262 (guint8 *) rect->pict.palette, (1 << region->depth) * sizeof (guint32)); in _dvb_sub_parse_end_of_display_set()
1264 rect->pict.data = g_malloc (region->buf_size); /* FIXME: Can we use GSlice here? */ in _dvb_sub_parse_end_of_display_set()
1265 memcpy (rect->pict.data, region->pbuf, region->buf_size); in _dvb_sub_parse_end_of_display_set()
1270 GST_MEMDUMP ("rect->pict.data content", rect->pict.data, region->buf_size); in _dvb_sub_parse_end_of_display_set()
1300 g_free (sub->rects[i].pict.palette); in dvb_subtitles_free()
1301 g_free (sub->rects[i].pict.data); in dvb_subtitles_free()
Ddvb-sub.h66 DVBSubtitlePicture pict; member
/third_party/ffmpeg/libavformat/
Doggparsevorbis.c156 char *pict = av_malloc(len); in ff_vorbis_comment() local
158 if (!pict) { in ff_vorbis_comment()
164 ret = av_base64_decode(pict, ct, len); in ff_vorbis_comment()
168 ret = ff_flac_parse_picture(as, pict, ret, 0); in ff_vorbis_comment()
169 av_freep(&pict); in ff_vorbis_comment()

123