Home | History | Annotate | Download | only in enc

Lines Matching defs:picture

922   const WebPPicture* const picture = enc->pic_;
926 enc->histo_bits_ = GetHistoBits(config, picture);
934 const WebPPicture* const picture) {
937 WebPEncodingSetError(picture, VP8_ENC_ERROR_OUT_OF_MEMORY);
941 enc->pic_ = picture;
954 const WebPPicture* const picture,
958 const int width = picture->width;
959 const int height = picture->height;
960 VP8LEncoder* const enc = VP8LEncoderNew(config, picture);
992 picture->argb + y * picture->argb_stride,
1042 if (picture->stats != NULL) {
1043 WebPAuxStats* const stats = picture->stats;
1062 const WebPPicture* const picture) {
1070 if (picture == NULL) return 0;
1072 if (config == NULL || picture->argb == NULL) {
1074 WebPEncodingSetError(picture, err);
1078 width = picture->width;
1079 height = picture->height;
1085 if (!WebPReportProgress(picture, 1, &percent)) {
1091 if (picture->stats != NULL) {
1092 WebPAuxStats* const stats = picture->stats;
1102 if (!WriteImageSize(picture, &bw)) {
1107 has_alpha = WebPPictureHasTransparency(picture);
1114 if (!WebPReportProgress(picture, 5, &percent)) goto UserAbort;
1117 err = VP8LEncodeStream(config, picture, &bw);
1121 if (!WebPReportProgress(picture, 90, &percent)) goto UserAbort;
1124 err = WriteImage(picture, &bw, &coded_size);
1127 if (!WebPReportProgress(picture, 100, &percent)) goto UserAbort;
1130 if (picture->stats != NULL) {
1131 picture->stats->coded_size += (int)coded_size;
1132 picture->stats->lossless_size = (int)coded_size;
1135 if (picture->extra_info != NULL) {
1138 memset(picture->extra_info, 0, mb_w * mb_h * sizeof(*picture->extra_info));
1145 WebPEncodingSetError(picture, err);