| 1031 | } |
| 1032 | |
| 1033 | SwsContext *sws_alloc_context(void) |
| 1034 | { |
| 1035 | SwsInternal *c = av_mallocz(sizeof(*c) + SWSINTERNAL_ADDITIONAL_ASM_SIZE); |
| 1036 | if (!c) |
| 1037 | return NULL; |
| 1038 | |
| 1039 | c->opts.av_class = &ff_sws_context_class; |
| 1040 | av_opt_set_defaults(c); |
| 1041 | atomic_init(&c->stride_unaligned_warned, 0); |
| 1042 | atomic_init(&c->data_unaligned_warned, 0); |
| 1043 | |
| 1044 | return &c->opts; |
| 1045 | } |
| 1046 | |
| 1047 | static uint16_t * alloc_gamma_tbl(double e) |
| 1048 | { |