| 1138 | } |
| 1139 | |
| 1140 | static hb_buffer_t * cc_fill_buffer(hb_work_private_t *pv, uint8_t *cc, int size) |
| 1141 | { |
| 1142 | hb_buffer_t * buf = hb_buffer_init(size); |
| 1143 | |
| 1144 | memcpy(buf->data, cc, size); |
| 1145 | return buf; |
| 1146 | } |
| 1147 | |
| 1148 | // copy one video frame into an HB buf. If the frame isn't in our color space |
| 1149 | // or at least one of its dimensions is odd, use sws_scale to convert/rescale it. |
no test coverage detected