30 if (avctx->
width & 1) {
49 const AVFrame *pic,
int *got_packet)
51 int aligned_width = ((avctx->
width + 47) / 48) * 48;
52 int stride = aligned_width * 8 / 3;
53 int line_padding = stride - ((avctx->
width * 8 + 11) / 12) * 4;
55 const uint16_t *
y = (
const uint16_t*)pic->
data[0];
56 const uint16_t *
u = (
const uint16_t*)pic->
data[1];
57 const uint16_t *
v = (
const uint16_t*)pic->
data[2];
65 #define CLIP(v) av_clip(v, 4, 1019)
67 #define WRITE_PIXELS(a, b, c) \
70 val |= (CLIP(*b++) << 10) | \
72 bytestream2_put_le32u(&p, val); \
75 for (h = 0; h < avctx->
height; h++) {
77 for (w = 0; w < avctx->
width - 5; w += 6) {
83 if (w < avctx->
width - 1) {
87 if (w == avctx->
width - 2)
88 bytestream2_put_le32u(&p, val);
89 if (w < avctx->
width - 3) {
90 val |= (
CLIP(*
u++) << 10) | (
CLIP(*y++) << 20);
91 bytestream2_put_le32u(&p, val);
93 val =
CLIP(*v++) | (
CLIP(*y++) << 10);
94 bytestream2_put_le32u(&p, val);