Searched +refs:frame +refs:width (Results 1 - 25 of 356) sorted by relevance

1234567891011>>

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/ffmpeg/libavcodec/
H A Daura.c30 AVFrame frame; member in struct:AuraDecodeContext
38 /* width needs to be divisible by 4 for this codec to work */
39 if (avctx->width & 0x3)
60 if (pkt->size != 48 + avctx->height * avctx->width) {
62 pkt->size, 48 + avctx->height * avctx->width);
69 if(s->frame.data[0])
70 avctx->release_buffer(avctx, &s->frame);
72 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
73 s->frame.reference = 0;
74 if(avctx->get_buffer(avctx, &s->frame) <
[all...]
H A Dcyuv.c41 int width, height; member in struct:CyuvDecodeContext
42 AVFrame frame; member in struct:CyuvDecodeContext
50 s->width = avctx->width;
51 /* width needs to be divisible by 4 for this codec to work */
52 if (s->width & 0x3)
92 * (3 * 16) + height * (width * 3 / 4) */
93 if (buf_size != 48 + s->height * (s->width * 3 / 4)) {
95 buf_size, 48 + s->height * (s->width * 3 / 4));
102 if (s->frame
[all...]
H A Dbethsoftvideo.c36 AVFrame frame; member in struct:BethsoftvidContext
42 vid->frame.reference = 1;
43 vid->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
49 static void set_palette(AVFrame * frame, const uint8_t * palette_buffer) argument
51 uint32_t * palette = (uint32_t *)frame->data[1];
56 frame->palette_has_changed = 1;
69 int remaining = avctx->width; // number of bytes remaining on a line
70 const int wrap_to_next_line = vid->frame.linesize[0] - avctx->width;
74 if (avctx->reget_buffer(avctx, &vid->frame)) {
[all...]
H A Deacmv.c36 AVFrame frame; ///< current member in struct:CmvContext
39 int width, height; member in struct:CmvContext
51 unsigned char *dst = s->frame.data[0];
54 for (i=0; i < s->avctx->height && buf+s->avctx->width<=buf_end; i++) {
55 memcpy(dst, buf, s->avctx->width);
56 dst += s->frame.linesize[0];
57 buf += s->avctx->width;
65 int width, int height){
71 if (i+xoffset>=0 && i+xoffset<width &&
81 const uint8_t *raw = buf + (s->avctx->width*
61 cmv_motcomp(unsigned char *dst, int dst_stride, const unsigned char *src, int src_stride, int x, int y, int xoffset, int yoffset, int width, int height) argument
[all...]
H A Dmsrle.c44 AVFrame frame; member in struct:MsrleContext
70 s->frame.data[0] = NULL;
82 int istride = FFALIGN(avctx->width*avctx->bits_per_coded_sample, 32) / 8;
87 s->frame.reference = 1;
88 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
89 if (avctx->reget_buffer(avctx, &s->frame)) {
96 memcpy(s->frame.data[1], s->avctx->palctrl->palette, AVPALETTE_SIZE);
98 s->frame.palette_has_changed = 1;
105 int linesize = avctx->width * avctx->bits_per_coded_sample / 8;
106 uint8_t *ptr = s->frame
[all...]
H A Daasc.c37 AVFrame frame; member in struct:AascContext
68 s->frame.reference = 1;
69 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
70 if (avctx->reget_buffer(avctx, &s->frame)) {
80 stride = (avctx->width * 3 + 3) & ~3;
82 memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf, avctx->width*3);
87 ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, buf - 4, buf_size + 4);
95 *(AVFrame*)data = s->frame;
[all...]
H A Drl2.c42 AVFrame frame; member in struct:Rl2Context
46 unsigned char* back_frame; ///< background frame
51 * Run Length Decode a single 320x200 frame
57 * @param video_base offset of the rle data inside the frame
61 int base_x = video_base % s->avctx->width;
62 int base_y = video_base / s->avctx->width;
63 int stride_adj = stride - s->avctx->width;
68 unsigned char* line_end = out + s->avctx->width;
70 /** copy start of the background frame */
73 memcpy(out,back_frame,s->avctx->width);
[all...]
H A Drawenc.c44 unsigned char *frame, int buf_size, void *data)
46 int ret = avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width,
47 avctx->height, frame, buf_size);
52 for(x = 1; x < avctx->height*avctx->width*2; x += 2)
53 frame[x] ^= 0x80;
43 raw_encode(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) argument
H A Danm.c31 AVFrame frame; member in struct:AnmContext
46 s->frame.reference = 1;
47 if (avctx->get_buffer(avctx, &s->frame) < 0) {
54 ((uint32_t*)s->frame.data[1])[i] = bytestream_get_le32(&buf);
66 * @param width Image width
77 int *x, int width, int linesize)
79 int remaining = width - *x;
92 *dst += linesize - width;
93 remaining = width;
74 op(uint8_t **dst, const uint8_t *dst_end, const uint8_t **buf, const uint8_t *buf_end, int pixel, int count, int *x, int width, int linesize) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/ffmpeg/libavcodec/
H A Daura.c30 AVFrame frame; member in struct:AuraDecodeContext
38 /* width needs to be divisible by 4 for this codec to work */
39 if (avctx->width & 0x3)
60 if (pkt->size != 48 + avctx->height * avctx->width) {
62 pkt->size, 48 + avctx->height * avctx->width);
69 if(s->frame.data[0])
70 avctx->release_buffer(avctx, &s->frame);
72 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
73 s->frame.reference = 0;
74 if(avctx->get_buffer(avctx, &s->frame) <
[all...]
H A Dcyuv.c41 int width, height; member in struct:CyuvDecodeContext
42 AVFrame frame; member in struct:CyuvDecodeContext
50 s->width = avctx->width;
51 /* width needs to be divisible by 4 for this codec to work */
52 if (s->width & 0x3)
92 * (3 * 16) + height * (width * 3 / 4) */
93 if (buf_size != 48 + s->height * (s->width * 3 / 4)) {
95 buf_size, 48 + s->height * (s->width * 3 / 4));
102 if (s->frame
[all...]
H A Dbethsoftvideo.c36 AVFrame frame; member in struct:BethsoftvidContext
42 vid->frame.reference = 1;
43 vid->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
49 static void set_palette(AVFrame * frame, const uint8_t * palette_buffer) argument
51 uint32_t * palette = (uint32_t *)frame->data[1];
56 frame->palette_has_changed = 1;
69 int remaining = avctx->width; // number of bytes remaining on a line
70 const int wrap_to_next_line = vid->frame.linesize[0] - avctx->width;
74 if (avctx->reget_buffer(avctx, &vid->frame)) {
[all...]
H A Deacmv.c36 AVFrame frame; ///< current member in struct:CmvContext
39 int width, height; member in struct:CmvContext
51 unsigned char *dst = s->frame.data[0];
54 for (i=0; i < s->avctx->height && buf+s->avctx->width<=buf_end; i++) {
55 memcpy(dst, buf, s->avctx->width);
56 dst += s->frame.linesize[0];
57 buf += s->avctx->width;
65 int width, int height){
71 if (i+xoffset>=0 && i+xoffset<width &&
81 const uint8_t *raw = buf + (s->avctx->width*
61 cmv_motcomp(unsigned char *dst, int dst_stride, const unsigned char *src, int src_stride, int x, int y, int xoffset, int yoffset, int width, int height) argument
[all...]
H A Dmsrle.c44 AVFrame frame; member in struct:MsrleContext
70 s->frame.data[0] = NULL;
82 int istride = FFALIGN(avctx->width*avctx->bits_per_coded_sample, 32) / 8;
87 s->frame.reference = 1;
88 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
89 if (avctx->reget_buffer(avctx, &s->frame)) {
96 memcpy(s->frame.data[1], s->avctx->palctrl->palette, AVPALETTE_SIZE);
98 s->frame.palette_has_changed = 1;
105 int linesize = avctx->width * avctx->bits_per_coded_sample / 8;
106 uint8_t *ptr = s->frame
[all...]
H A Daasc.c37 AVFrame frame; member in struct:AascContext
68 s->frame.reference = 1;
69 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
70 if (avctx->reget_buffer(avctx, &s->frame)) {
80 stride = (avctx->width * 3 + 3) & ~3;
82 memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf, avctx->width*3);
87 ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, buf - 4, buf_size + 4);
95 *(AVFrame*)data = s->frame;
[all...]
H A Drl2.c42 AVFrame frame; member in struct:Rl2Context
46 unsigned char* back_frame; ///< background frame
51 * Run Length Decode a single 320x200 frame
57 * @param video_base offset of the rle data inside the frame
61 int base_x = video_base % s->avctx->width;
62 int base_y = video_base / s->avctx->width;
63 int stride_adj = stride - s->avctx->width;
68 unsigned char* line_end = out + s->avctx->width;
70 /** copy start of the background frame */
73 memcpy(out,back_frame,s->avctx->width);
[all...]
H A Drawenc.c44 unsigned char *frame, int buf_size, void *data)
46 int ret = avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width,
47 avctx->height, frame, buf_size);
52 for(x = 1; x < avctx->height*avctx->width*2; x += 2)
53 frame[x] ^= 0x80;
43 raw_encode(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) argument
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/ffmpeg/libavcodec/
H A Daura.c30 AVFrame frame; member in struct:AuraDecodeContext
38 /* width needs to be divisible by 4 for this codec to work */
39 if (avctx->width & 0x3)
60 if (pkt->size != 48 + avctx->height * avctx->width) {
62 pkt->size, 48 + avctx->height * avctx->width);
69 if(s->frame.data[0])
70 avctx->release_buffer(avctx, &s->frame);
72 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
73 s->frame.reference = 0;
74 if(avctx->get_buffer(avctx, &s->frame) <
[all...]
H A Dcyuv.c41 int width, height; member in struct:CyuvDecodeContext
42 AVFrame frame; member in struct:CyuvDecodeContext
50 s->width = avctx->width;
51 /* width needs to be divisible by 4 for this codec to work */
52 if (s->width & 0x3)
92 * (3 * 16) + height * (width * 3 / 4) */
93 if (buf_size != 48 + s->height * (s->width * 3 / 4)) {
95 buf_size, 48 + s->height * (s->width * 3 / 4));
102 if (s->frame
[all...]
H A Dbethsoftvideo.c36 AVFrame frame; member in struct:BethsoftvidContext
42 vid->frame.reference = 1;
43 vid->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
49 static void set_palette(AVFrame * frame, const uint8_t * palette_buffer) argument
51 uint32_t * palette = (uint32_t *)frame->data[1];
56 frame->palette_has_changed = 1;
69 int remaining = avctx->width; // number of bytes remaining on a line
70 const int wrap_to_next_line = vid->frame.linesize[0] - avctx->width;
74 if (avctx->reget_buffer(avctx, &vid->frame)) {
[all...]
H A Deacmv.c36 AVFrame frame; ///< current member in struct:CmvContext
39 int width, height; member in struct:CmvContext
51 unsigned char *dst = s->frame.data[0];
54 for (i=0; i < s->avctx->height && buf+s->avctx->width<=buf_end; i++) {
55 memcpy(dst, buf, s->avctx->width);
56 dst += s->frame.linesize[0];
57 buf += s->avctx->width;
65 int width, int height){
71 if (i+xoffset>=0 && i+xoffset<width &&
81 const uint8_t *raw = buf + (s->avctx->width*
61 cmv_motcomp(unsigned char *dst, int dst_stride, const unsigned char *src, int src_stride, int x, int y, int xoffset, int yoffset, int width, int height) argument
[all...]
H A Dmsrle.c44 AVFrame frame; member in struct:MsrleContext
70 s->frame.data[0] = NULL;
82 int istride = FFALIGN(avctx->width*avctx->bits_per_coded_sample, 32) / 8;
87 s->frame.reference = 1;
88 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
89 if (avctx->reget_buffer(avctx, &s->frame)) {
96 memcpy(s->frame.data[1], s->avctx->palctrl->palette, AVPALETTE_SIZE);
98 s->frame.palette_has_changed = 1;
105 int linesize = avctx->width * avctx->bits_per_coded_sample / 8;
106 uint8_t *ptr = s->frame
[all...]
H A Daasc.c37 AVFrame frame; member in struct:AascContext
68 s->frame.reference = 1;
69 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
70 if (avctx->reget_buffer(avctx, &s->frame)) {
80 stride = (avctx->width * 3 + 3) & ~3;
82 memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf, avctx->width*3);
87 ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, buf - 4, buf_size + 4);
95 *(AVFrame*)data = s->frame;
[all...]
H A Drl2.c42 AVFrame frame; member in struct:Rl2Context
46 unsigned char* back_frame; ///< background frame
51 * Run Length Decode a single 320x200 frame
57 * @param video_base offset of the rle data inside the frame
61 int base_x = video_base % s->avctx->width;
62 int base_y = video_base / s->avctx->width;
63 int stride_adj = stride - s->avctx->width;
68 unsigned char* line_end = out + s->avctx->width;
70 /** copy start of the background frame */
73 memcpy(out,back_frame,s->avctx->width);
[all...]
H A Drawenc.c44 unsigned char *frame, int buf_size, void *data)
46 int ret = avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width,
47 avctx->height, frame, buf_size);
52 for(x = 1; x < avctx->height*avctx->width*2; x += 2)
53 frame[x] ^= 0x80;
43 raw_encode(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) argument

Completed in 220 milliseconds

1234567891011>>