Searched refs:sw_frame (Results 1 – 3 of 3) sorted by relevance
/third_party/ffmpeg/doc/examples/ |
D | qsvdec.c | 91 AVFrame *frame, AVFrame *sw_frame, in decode_packet() argument 116 ret = av_hwframe_transfer_data(sw_frame, frame, 0); in decode_packet() 122 for (i = 0; i < FF_ARRAY_ELEMS(sw_frame->data) && sw_frame->data[i]; i++) in decode_packet() 123 for (j = 0; j < (sw_frame->height >> (i > 0)); j++) in decode_packet() 124 … avio_write(output_ctx, sw_frame->data[i] + j * sw_frame->linesize[i], sw_frame->width); in decode_packet() 127 av_frame_unref(sw_frame); in decode_packet() 145 AVFrame *frame = NULL, *sw_frame = NULL; in main() local 229 sw_frame = av_frame_alloc(); in main() 230 if (!frame || !sw_frame) { in main() 242 ret = decode_packet(&decode, decoder_ctx, frame, sw_frame, &pkt, output_ctx); in main() [all …]
|
D | vaapi_encode.c | 106 AVFrame *sw_frame = NULL, *hw_frame = NULL; in main() local 167 if (!(sw_frame = av_frame_alloc())) { in main() 172 sw_frame->width = width; in main() 173 sw_frame->height = height; in main() 174 sw_frame->format = AV_PIX_FMT_NV12; in main() 175 if ((err = av_frame_get_buffer(sw_frame, 0)) < 0) in main() 177 if ((err = fread((uint8_t*)(sw_frame->data[0]), size, 1, fin)) <= 0) in main() 179 if ((err = fread((uint8_t*)(sw_frame->data[1]), size/2, 1, fin)) <= 0) in main() 194 if ((err = av_hwframe_transfer_data(hw_frame, sw_frame, 0)) < 0) { in main() 205 av_frame_free(&sw_frame); in main() [all …]
|
D | hw_decode.c | 79 AVFrame *frame = NULL, *sw_frame = NULL; in decode_write() local 92 if (!(frame = av_frame_alloc()) || !(sw_frame = av_frame_alloc())) { in decode_write() 101 av_frame_free(&sw_frame); in decode_write() 110 if ((ret = av_hwframe_transfer_data(sw_frame, frame, 0)) < 0) { in decode_write() 114 tmp_frame = sw_frame; in decode_write() 142 av_frame_free(&sw_frame); in decode_write()
|