| 29 | #include "hwcontext.h" |
| 30 | |
| 31 | static void get_frame_defaults(AVFrame *frame) |
| 32 | { |
| 33 | memset(frame, 0, sizeof(*frame)); |
| 34 | |
| 35 | frame->pts = |
| 36 | frame->pkt_dts = AV_NOPTS_VALUE; |
| 37 | frame->best_effort_timestamp = AV_NOPTS_VALUE; |
| 38 | frame->duration = 0; |
| 39 | frame->time_base = (AVRational){ 0, 1 }; |
| 40 | frame->sample_aspect_ratio = (AVRational){ 0, 1 }; |
| 41 | frame->format = -1; /* unknown */ |
| 42 | frame->extended_data = frame->data; |
| 43 | frame->color_primaries = AVCOL_PRI_UNSPECIFIED; |
| 44 | frame->color_trc = AVCOL_TRC_UNSPECIFIED; |
| 45 | frame->colorspace = AVCOL_SPC_UNSPECIFIED; |
| 46 | frame->color_range = AVCOL_RANGE_UNSPECIFIED; |
| 47 | frame->chroma_location = AVCHROMA_LOC_UNSPECIFIED; |
| 48 | frame->alpha_mode = AVALPHA_MODE_UNSPECIFIED; |
| 49 | frame->flags = 0; |
| 50 | } |
| 51 | |
| 52 | AVFrame *av_frame_alloc(void) |
| 53 | { |
no outgoing calls
no test coverage detected